distributed-a2a 0.1.6rc1__tar.gz → 0.1.6rc3__tar.gz

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.
Files changed (21) hide show
  1. {distributed_a2a-0.1.6rc1/distributed_a2a.egg-info → distributed_a2a-0.1.6rc3}/PKG-INFO +1 -1
  2. {distributed_a2a-0.1.6rc1 → distributed_a2a-0.1.6rc3}/distributed_a2a/router.py +16 -11
  3. {distributed_a2a-0.1.6rc1 → distributed_a2a-0.1.6rc3/distributed_a2a.egg-info}/PKG-INFO +1 -1
  4. {distributed_a2a-0.1.6rc1 → distributed_a2a-0.1.6rc3}/pyproject.toml +1 -1
  5. {distributed_a2a-0.1.6rc1 → distributed_a2a-0.1.6rc3}/LICENSE +0 -0
  6. {distributed_a2a-0.1.6rc1 → distributed_a2a-0.1.6rc3}/MANIFEST.in +0 -0
  7. {distributed_a2a-0.1.6rc1 → distributed_a2a-0.1.6rc3}/README.md +0 -0
  8. {distributed_a2a-0.1.6rc1 → distributed_a2a-0.1.6rc3}/distributed_a2a/__init__.py +0 -0
  9. {distributed_a2a-0.1.6rc1 → distributed_a2a-0.1.6rc3}/distributed_a2a/agent.py +0 -0
  10. {distributed_a2a-0.1.6rc1 → distributed_a2a-0.1.6rc3}/distributed_a2a/client.py +0 -0
  11. {distributed_a2a-0.1.6rc1 → distributed_a2a-0.1.6rc3}/distributed_a2a/executors.py +0 -0
  12. {distributed_a2a-0.1.6rc1 → distributed_a2a-0.1.6rc3}/distributed_a2a/model.py +0 -0
  13. {distributed_a2a-0.1.6rc1 → distributed_a2a-0.1.6rc3}/distributed_a2a/registry.py +0 -0
  14. {distributed_a2a-0.1.6rc1 → distributed_a2a-0.1.6rc3}/distributed_a2a/server.py +0 -0
  15. {distributed_a2a-0.1.6rc1 → distributed_a2a-0.1.6rc3}/distributed_a2a.egg-info/SOURCES.txt +0 -0
  16. {distributed_a2a-0.1.6rc1 → distributed_a2a-0.1.6rc3}/distributed_a2a.egg-info/dependency_links.txt +0 -0
  17. {distributed_a2a-0.1.6rc1 → distributed_a2a-0.1.6rc3}/distributed_a2a.egg-info/requires.txt +0 -0
  18. {distributed_a2a-0.1.6rc1 → distributed_a2a-0.1.6rc3}/distributed_a2a.egg-info/top_level.txt +0 -0
  19. {distributed_a2a-0.1.6rc1 → distributed_a2a-0.1.6rc3}/requirements.txt +0 -0
  20. {distributed_a2a-0.1.6rc1 → distributed_a2a-0.1.6rc3}/setup.cfg +0 -0
  21. {distributed_a2a-0.1.6rc1 → distributed_a2a-0.1.6rc3}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: distributed_a2a
3
- Version: 0.1.6rc1
3
+ Version: 0.1.6rc3
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
@@ -3,13 +3,13 @@ from typing import Any
3
3
  from a2a.server.apps import A2ARESTFastAPIApplication
4
4
  from a2a.server.request_handlers import DefaultRequestHandler
5
5
  from a2a.server.tasks import InMemoryTaskStore
6
- from a2a.types import AgentCard
6
+ from a2a.types import AgentCard, AgentSkill
7
7
  from fastapi import FastAPI
8
8
 
9
- from distributed_a2a.distributed_a2a.executors import RoutingExecutor
10
- from distributed_a2a.distributed_a2a.model import RouterConfig
11
- from distributed_a2a.distributed_a2a.registry import DynamoDbRegistryLookup
12
- from distributed_a2a.distributed_a2a.server import CAPABILITIES, AGENT_CARD_TABLE
9
+ from .executors import RoutingExecutor
10
+ from .model import RouterConfig
11
+ from .registry import DynamoDbRegistryLookup
12
+ from .server import CAPABILITIES, AGENT_CARD_TABLE
13
13
 
14
14
 
15
15
  def load_router(router_dic: dict[str, Any]) -> FastAPI:
@@ -17,12 +17,17 @@ def load_router(router_dic: dict[str, Any]) -> FastAPI:
17
17
  agent_card = AgentCard(
18
18
  name="Router",
19
19
  description="Agent to redirect to the best matching agent based on the agent card",
20
- url="",
20
+ url=router_config.router.card.url,
21
21
  version="1.0.0",
22
- default_input_modes=router_config.agent.card.default_input_modes,
23
- default_output_modes=router_config.agent.card.default_output_modes,
24
- skills=[],
25
- preferred_transport=router_config.agent.card.preferred_transport_protocol,
22
+ default_input_modes=router_config.router.card.default_input_modes,
23
+ default_output_modes=router_config.router.card.default_output_modes,
24
+ skills=[AgentSkill(
25
+ id='routing',
26
+ name='Agent routing',
27
+ description='Identifies the most suitable agent for the given task and returns the agent card',
28
+ tags=['agent', 'routing']
29
+ )],
30
+ preferred_transport=router_config.router.card.preferred_transport_protocol,
26
31
  capabilities=CAPABILITIES
27
32
  )
28
33
  executor = RoutingExecutor(
@@ -38,4 +43,4 @@ def load_router(router_dic: dict[str, Any]) -> FastAPI:
38
43
  task_store=InMemoryTaskStore() # TODO replace with dynamodb store
39
44
 
40
45
  )).build(title=agent_card.name,
41
- root_path=f"/{router_config.agent.card.name}")
46
+ root_path=f"/{router_config.agent.card.name}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: distributed_a2a
3
- Version: 0.1.6rc1
3
+ Version: 0.1.6rc3
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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "distributed_a2a"
7
- version = "0.1.6rc1"
7
+ version = "0.1.6rc3"
8
8
  description = "A library for building A2A agents with routing capabilities"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"