-
Notifications
You must be signed in to change notification settings - Fork 488
Update sample agent GitHub agent #398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: sample
Are you sure you want to change the base?
Update sample agent GitHub agent #398
Conversation
This PR adds a collection of .NET samples demonstrating various A2A
communication patterns and use cases, from basic echo agents to
AI-powered intelligent agents using Microsoft Semantic Kernel.
What's Added
- BasicA2ADemo - Foundation Samples
- A2ACliDemo - Command-Line Interface
- A2ASemanticKernelDemo - AI-Powered Agents
Folder Structure
samples/dotnet/
├── README.md # Overview and getting started guide
├── BasicA2ADemo/ # Foundation A2A patterns
│ ├── EchoServer/ # Simple echo agent
│ ├── CalculatorServer/ # Math operations agent
│ ├── SimpleClient/ # Basic A2A client
│ └── A2ADotnetSample.sln # Visual Studio solution
├── A2ACliDemo/ # CLI-focused samples
│ ├── CLIServer/ # Command-line agent
│ └── CLIClient/ # Interactive CLI client
└── A2ASemanticKernelDemo/ # AI-powered agents
├── AIServer/ # Semantic Kernel agent
└── AIClient/ # AI interaction client
Note on the Prerelease A2A dependency: All project files explicitly
specify [Version="0.1.0-preview.2"] for A2A packages, preventing NuGet
from failing to find prereleased package.
Fixes a2aproject/a2a-dotnet#84
# Description Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [x] Follow the [`CONTRIBUTING` Guide](https://github.com/a2aproject/a2a-samples/blob/main/CONTRIBUTING.md). Fixes #<issue_number_goes_here> 🦕
# Description This PR adds a multi-transport sample using the A2A Java SDK. The server agent supports both gRPC and JSON-RPC, with gRPC being the preferred transport. The client supports both as well so the gRPC will be the selected transport. - [x] Follow the [`CONTRIBUTING` Guide](https://github.com/a2aproject/a2a-samples/blob/main/CONTRIBUTING.md).
…project#373) # Description This PR explicitly sets the Gemini chat model to use for the Java agents. The agents were previously relying on `gemini-1.5.-flash`, the [default Gemini chat model](quarkiverse/quarkus-langchain4j#1819) set by Quarkus LangChain4j, but this chat model has been discontinued so updating these agents to use a newer chat model instead. Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [x] Follow the [`CONTRIBUTING` Guide](https://github.com/a2aproject/a2a-samples/blob/main/CONTRIBUTING.md). Fixes #<issue_number_goes_here> 🦕
…aproject#371) # Description This PRs removes a dependency that isn't actually needed for the `weather_mcp` Java agent: Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [x] Follow the [`CONTRIBUTING` Guide](https://github.com/a2aproject/a2a-samples/blob/main/CONTRIBUTING.md).
…a2aproject#370) This proposal extends the A2A protocol with a lightweight "Secure Passport" feature, enabling calling agents to share verified information (e.g., user preferences, session history, tool access permissions ..) with contacted agents. This enhances agent interactions from anonymous transactions to trusted, context-aware partnerships, improving reliability and personalization within the agent ecosystem. A reference implementation is provided. Go Link: [go/a2a-secure-passport](http://goto.google.com/a2a-secure-passport) --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: Holt Skinner <[email protected]>
…a2aproject#381) This PR introduces the Agent Gateway Protocol (AGP) as an architectural enhancement layer designed to solve scalability and policy-enforcement challenges in large, distributed A2A systems. The AGP shifts routing from a flat mesh to a hierarchical model, using central Gateway Agents to manage specialized Autonomous Squads (ASqs). Key Innovation: Policy-Based Routing (PBR) The core code implements PBR logic, verifying that routing decisions are driven by compliance before cost, as verified by the unit tests: 1. Policy Enforcement: The Gateway successfully routes Intents based on strict policy constraints (requires_PII: True), filtering out cheaper, non-compliant vendor routes in favor of secure internal squads. 2. Economic Optimization: When multiple routes are compliant, the Gateway correctly selects the option with the lowest announced cost. 3. Meta-Intent Coverage: The tests cover complex decomposition (e.g., breaking a single HR request into Payroll, Hardware, and Legal sub-intents).
…ver security for all three transports with the A2A Java SDK (a2aproject#390) # Description This PR adds a new sample that demonstrates how to secure an A2A server with Keycloak using bearer token authentication and it shows how to configure an A2A client to specify the token when sending requests. The agent is written using Quarkus LangChain4j and makes use of the [A2A Java](https://github.com/a2aproject/a2a-java) SDK. - [x] Follow the [`CONTRIBUTING` Guide](https://github.com/a2aproject/a2a-samples/blob/main/CONTRIBUTING.md).
…ner README and update the URL for the UI (a2aproject#393) # Description Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [x] Follow the [`CONTRIBUTING` Guide](https://github.com/a2aproject/a2a-samples/blob/main/CONTRIBUTING.md).
# Description Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [x] Follow the [`CONTRIBUTING` Guide](https://github.com/a2aproject/a2a-samples/blob/main/CONTRIBUTING.md).
# Add Koog Framework Examples to Samples This PR introduces comprehensive examples demonstrating A2A protocol implementation using [Koog](https://koog.ai/), JetBrains' open-source agentic framework for building enterprise-ready AI agents, targeting JVM backend, Android, iOS, JS, and WasmJS. ## What's Added Two progressive examples showing different A2A communication patterns: ### 1. Simple Joke Agent (`simplejoke`) - Basic message-based A2A communication - Direct request-response pattern using `sendMessage()` - Demonstrates minimal A2A server setup with AgentCard and message storage ### 2. Advanced Joke Agent (`advancedjoke`) - Full task-based A2A workflow implementation - Graph-based agent architecture using Koog's `GraphAIAgent` - Complete task lifecycle: Submitted → Working → InputRequired → Completed - Interactive clarifications via InputRequired state - Streaming task events and artifact delivery - Structured LLM outputs with type-safe parsing ## Key Features Demonstrated - **A2A Protocol Integration**: Both simple message-based and advanced task-based workflows - **Graph-based Agent Design**: Maintainable, visual agent logic using nodes and edges - **Koog's Prompt DSL**: Type-safe prompt building with automatic context management ## Why Koog? Adds diversity to A2A samples by showcasing: - JVM/Kotlin ecosystem representation - Type-safe agent development with compile-time guarantees - Multi-platform deployment options beyond Node.js/Python Each example includes detailed inline documentation and runnable Gradle tasks for immediate testing.
|
Warning Gemini encountered an error creating the summary. You can try again by commenting |
|
/gemini summary |
Summary of ChangesThis pull request significantly expands the Highlights
Changelog
Ignored Files
Activity
|
Description
This PR fixes the issue of outdated README and missing dependency when running the sample for github agent
What's Added
Fixes #397 🦕