distributed-a2a 0.1.9rc13__py3-none-any.whl → 0.1.9rc14__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.
@@ -126,7 +126,7 @@ class RoutingAgentExecutor(AgentExecutor):
126
126
 
127
127
 
128
128
  class RoutingExecutor(AgentExecutor):
129
- def __init__(self, router_config: RouterConfig) -> None:
129
+ def __init__(self, router_config: RouterConfig, routing_tool: BaseTool) -> None:
130
130
  super().__init__()
131
131
  api_key = os.environ.get(router_config.router.llm.api_key_env)
132
132
  if api_key is None:
@@ -138,7 +138,7 @@ class RoutingExecutor(AgentExecutor):
138
138
  name=router_config.router.card.name,
139
139
  api_key=api_key,
140
140
  is_routing=True,
141
- tools=[]
141
+ tools=[routing_tool]
142
142
  )
143
143
 
144
144
  async def cancel(self, context: RequestContext, event_queue: EventQueue) -> None:
distributed_a2a/router.py CHANGED
@@ -34,6 +34,7 @@ def load_router(router_dic: dict[str, Any]) -> FastAPI:
34
34
 
35
35
  executor = RoutingExecutor(
36
36
  router_config=router_config,
37
+ routing_tool=AgentRegistryLookup(router_config.router.registry.agent.url).as_tool()
37
38
  )
38
39
 
39
40
  return A2ARESTFastAPIApplication(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: distributed_a2a
3
- Version: 0.1.9rc13
3
+ Version: 0.1.9rc14
4
4
  Summary: A library for building A2A agents with routing capabilities
5
5
  Home-page: https://github.com/Barra-Technologies/distributed-a2a
6
6
  Author: Fabian Bell
@@ -1,13 +1,13 @@
1
1
  distributed_a2a/__init__.py,sha256=gO8sTT20O6XvDRzj7B322O9v6HxV-_eIlJD1wMlPYoI,171
2
2
  distributed_a2a/agent.py,sha256=qY775N3Br2YMuaHLALU4t6MO47syuEoTtFLLPRr8TyA,2910
3
3
  distributed_a2a/client.py,sha256=3tEBqu3HKEQyOFk5vsO1YiuKP2pZx-n6SCzsJUYNcyc,4601
4
- distributed_a2a/executors.py,sha256=CBjCZiM2YNSZslyZPqdHLDNFLbqeCNDYDSnVm6GJ3wY,9476
4
+ distributed_a2a/executors.py,sha256=Poj3CDo8MpTG5GDXkTTLAPZGqoh3nh0-MwJCNWG8o9U,9512
5
5
  distributed_a2a/model.py,sha256=rW9jY0OIR8L_I77zz47JQMd-ucQQnnfNw_HIS-YvrcM,3533
6
6
  distributed_a2a/registry.py,sha256=lTXdS3PHXXMPXNjZDxyNRJjhJ1uZJOxgOgpokQp7boc,2050
7
- distributed_a2a/router.py,sha256=Uk8TQdcwbH5a30lfDm0iA0B1usQg3x6A4BnK-UbDy4A,1742
7
+ distributed_a2a/router.py,sha256=l1kDn5_iYNq6QZj8JsouLC6zz5vdK-qGSpj4KODwXY8,1834
8
8
  distributed_a2a/server.py,sha256=-__c-BKzJWSXpW21NOp6faUIdjWV_o32jqv42_lPi2g,3352
9
- distributed_a2a-0.1.9rc13.dist-info/licenses/LICENSE,sha256=Btzdu2kIoMbdSp6OyCLupB1aRgpTCJ_szMimgEnpkkE,1056
10
- distributed_a2a-0.1.9rc13.dist-info/METADATA,sha256=2AIngK6hTX74qrOP_UrigWCfYAeO70_tc-SdZnX9Bso,3244
11
- distributed_a2a-0.1.9rc13.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
12
- distributed_a2a-0.1.9rc13.dist-info/top_level.txt,sha256=23qJ8n5k7796BHDK7a58uuO-X4GV0EgUWcGi8NIn-0k,16
13
- distributed_a2a-0.1.9rc13.dist-info/RECORD,,
9
+ distributed_a2a-0.1.9rc14.dist-info/licenses/LICENSE,sha256=Btzdu2kIoMbdSp6OyCLupB1aRgpTCJ_szMimgEnpkkE,1056
10
+ distributed_a2a-0.1.9rc14.dist-info/METADATA,sha256=DJTOqjTCwMXBWREB5vLhOsNXWNldg_h2PmRtdkngjRU,3244
11
+ distributed_a2a-0.1.9rc14.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
12
+ distributed_a2a-0.1.9rc14.dist-info/top_level.txt,sha256=23qJ8n5k7796BHDK7a58uuO-X4GV0EgUWcGi8NIn-0k,16
13
+ distributed_a2a-0.1.9rc14.dist-info/RECORD,,