How manifoldailearning/a2a-samples works
The visible product is an A2A host demo: users manage agents and settings, create conversations, send messages, and inspect resulting tasks and events. The UI calls a FastAPI conversation service, which delegates to a selected application manager; the ADK manager provides the agent-hosting path, while an in-memory manager supplies canned responses. A separate AGP extension demonstrates capability announcements and policy-based route selection. The graph reflects the supplied tree and excerpts; some page and manager wiring is unsampled, so uncertain links are omitted.
Main entry points: pages UI pages · server.py Conversation API · application_manager.py Manager interface · host_agent_service.py Host client helpers
Components 18
Demo UI
- UI entry
demo/ui/main.py - UI pages
demo/ui/pages - UI components
demo/ui/components - UI state
demo/ui/state/state.py - Host client helpers
demo/ui/state/host_agent_service.py - Form interaction
demo/ui/components/form_render.py
Conversation host
- Conversation client
demo/ui/service/client/client.py - Conversation API
demo/ui/service/server/server.py - API types
demo/ui/service/types.py - Manager interface
demo/ui/service/server/application_manager.py - ADK host manager
demo/ui/service/server/adk_host_manager.py - Canned manager
demo/ui/service/server/in_memory_manager.py
AGP routing
- AGP simulation
extensions/agp/agp_run.py - Gateway routing
extensions/agp/src/agp_protocol/__init__.py - Route table
extensions/agp/src/agp_protocol/__init__.py
Other components
- User
- Remote A2A agents
- Intent requester
Connections 16
- User → UI entry: uses UI
- UI entry → UI pages: renders pages
- UI pages → UI components: renders widgets
- UI pages → UI state: reads state
- UI pages → Host client helpers: requests host actions
- Form interaction → Host client helpers: sends form reply
- Host client helpers → Conversation client: calls API
- Conversation client → Conversation API: posts requests
- Conversation API → API types: uses message types
- Conversation API → Manager interface: delegates operations
- Manager interface → ADK host manager: implemented by
- Manager interface → Canned manager: implemented by
- ADK host manager → Remote A2A agents: communicates with
- AGP simulation → Gateway routing: announces and routes
- Intent requester → AGP simulation: submits intents
- Gateway routing → Route table: updates and reads