distributed-a2a 0.1.6rc3__py3-none-any.whl → 0.1.6rc5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- distributed_a2a/executors.py +3 -3
- distributed_a2a/router.py +2 -0
- {distributed_a2a-0.1.6rc3.dist-info → distributed_a2a-0.1.6rc5.dist-info}/METADATA +1 -1
- {distributed_a2a-0.1.6rc3.dist-info → distributed_a2a-0.1.6rc5.dist-info}/RECORD +7 -7
- {distributed_a2a-0.1.6rc3.dist-info → distributed_a2a-0.1.6rc5.dist-info}/WHEEL +0 -0
- {distributed_a2a-0.1.6rc3.dist-info → distributed_a2a-0.1.6rc5.dist-info}/licenses/LICENSE +0 -0
- {distributed_a2a-0.1.6rc3.dist-info → distributed_a2a-0.1.6rc5.dist-info}/top_level.txt +0 -0
distributed_a2a/executors.py
CHANGED
|
@@ -83,11 +83,11 @@ class RoutingAgentExecutor(AgentExecutor):
|
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
class RoutingExecutor(AgentExecutor):
|
|
86
|
-
def __init__(self, router_config: RouterConfig, routing_tool: BaseTool):
|
|
86
|
+
def __init__(self, router_config: RouterConfig, routing_tool: BaseTool) -> None:
|
|
87
87
|
super().__init__()
|
|
88
|
-
api_key = os.environ.get(router_config.
|
|
88
|
+
api_key = os.environ.get(router_config.router.llm.api_key_env)
|
|
89
89
|
self.routing_agent = StatusAgent[RoutingResponse](
|
|
90
|
-
llm_config=router_config.
|
|
90
|
+
llm_config=router_config.router.llm,
|
|
91
91
|
system_prompt=ROUTING_SYSTEM_PROMPT,
|
|
92
92
|
name=router_config.router.card.name,
|
|
93
93
|
api_key=api_key,
|
distributed_a2a/router.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import os
|
|
1
2
|
from typing import Any
|
|
2
3
|
|
|
3
4
|
from a2a.server.apps import A2ARESTFastAPIApplication
|
|
@@ -30,6 +31,7 @@ def load_router(router_dic: dict[str, Any]) -> FastAPI:
|
|
|
30
31
|
preferred_transport=router_config.router.card.preferred_transport_protocol,
|
|
31
32
|
capabilities=CAPABILITIES
|
|
32
33
|
)
|
|
34
|
+
|
|
33
35
|
executor = RoutingExecutor(
|
|
34
36
|
router_config=router_config,
|
|
35
37
|
routing_tool=DynamoDbRegistryLookup(agent_card_tabel=AGENT_CARD_TABLE).as_tool()
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
distributed_a2a/__init__.py,sha256=gO8sTT20O6XvDRzj7B322O9v6HxV-_eIlJD1wMlPYoI,171
|
|
2
2
|
distributed_a2a/agent.py,sha256=ZI6sFISU5nELEqzVXbZaf7osqVH095raxjmrFzipoDA,2858
|
|
3
3
|
distributed_a2a/client.py,sha256=2974Uw8YUuyBytwxxJJKYsWXCpEaIbGmMUHDraITxJ0,4149
|
|
4
|
-
distributed_a2a/executors.py,sha256=
|
|
4
|
+
distributed_a2a/executors.py,sha256=PV9WvbicBjAENhAK4yRGjNWg8Y9O7rFAjxzdUCIabWs,6666
|
|
5
5
|
distributed_a2a/model.py,sha256=S6o56cQysSp1Nq3-gbawa2xsvMWd4hHYUj6aW3yWwTA,2962
|
|
6
6
|
distributed_a2a/registry.py,sha256=197eZVR6TW0isOUE0VjWSWs7aCqbWqnBzcV8EVXAxrI,677
|
|
7
|
-
distributed_a2a/router.py,sha256=
|
|
7
|
+
distributed_a2a/router.py,sha256=UlYMJ4BT9xAo452eBfYn9U10_1QuEk_3yZagiJ18hlg,1789
|
|
8
8
|
distributed_a2a/server.py,sha256=eVccqBos4nMQqe9feyglGlMmUYIGz2t5jmBbMVt-NGE,3085
|
|
9
|
-
distributed_a2a-0.1.
|
|
10
|
-
distributed_a2a-0.1.
|
|
11
|
-
distributed_a2a-0.1.
|
|
12
|
-
distributed_a2a-0.1.
|
|
13
|
-
distributed_a2a-0.1.
|
|
9
|
+
distributed_a2a-0.1.6rc5.dist-info/licenses/LICENSE,sha256=Btzdu2kIoMbdSp6OyCLupB1aRgpTCJ_szMimgEnpkkE,1056
|
|
10
|
+
distributed_a2a-0.1.6rc5.dist-info/METADATA,sha256=rg1qaBK6HhF4PC1EXKBw62qIjzS46IjfWG4RRYU1RrM,3160
|
|
11
|
+
distributed_a2a-0.1.6rc5.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
|
|
12
|
+
distributed_a2a-0.1.6rc5.dist-info/top_level.txt,sha256=23qJ8n5k7796BHDK7a58uuO-X4GV0EgUWcGi8NIn-0k,16
|
|
13
|
+
distributed_a2a-0.1.6rc5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|