9
9
10
10
To execute this script simply run:
11
11
```bash
12
- uv run examples/agents/a2a/orchestrator_client .py
12
+ uv run examples/agents/a2a/run_orchestrator .py
13
13
```
14
14
"""
15
15
24
24
import threading
25
25
26
26
from agent_orchestrator import AgentOrchestrator , ResultsSumarizationPromptInput , RoutingPromptInput
27
- from flight_agent import FlightPromptInput
28
- from flight_agent import agent as flight_agent
29
- from hotel_agent import HotelPromptInput
30
- from hotel_agent import agent as hotel_agent
27
+ from flight_agent import FlightPromptInput , flight_agent
28
+ from hotel_agent import HotelPromptInput , hotel_agent
31
29
from uvicorn import Server
32
30
33
31
from ragbits .agents .a2a .server import create_agent_server
@@ -49,7 +47,7 @@ class RoutingPrompt(Prompt[RoutingPromptInput]):
49
47
Each task must include:
50
48
- agent_url: The base URL of the agent that should handle the task.
51
49
- tool: The name of the skill/tool to call on that agent.
52
- - parameters: A dictionary of arguments needed for that tool .
50
+ - parameters: A dictionary with input argument which is just the task for the agent to answer .
53
51
54
52
Currently available agents and their tools:
55
53
{{ agents }}
@@ -66,12 +64,12 @@ class RoutingPrompt(Prompt[RoutingPromptInput]):
66
64
{
67
65
"agent_url": "http://weather-agent:8000",
68
66
"tool": "get_weather",
69
- "parameters": { "location ": "Paris" }
67
+ "parameters": { "input ": "What is the weather in Paris? " }
70
68
},
71
69
{
72
70
"agent_url": "http://news-agent:8001",
73
71
"tool": "get_news_summary",
74
- "parameters": { "region ": "France" }
72
+ "parameters": { "input ": "What are the news in France? " }
75
73
}
76
74
]
77
75
"""
0 commit comments