distributed-a2a 0.1.3__py3-none-any.whl → 0.1.4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: distributed_a2a
3
- Version: 0.1.3
3
+ Version: 0.1.4
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
@@ -51,6 +51,7 @@ pip install distributed-a2a
51
51
 
52
52
  ## Quick Start
53
53
 
54
+ 1. Start a server with your agent application:
54
55
  ```python
55
56
  from distributed_a2a import load_app
56
57
  from a2a.types import AgentSkill
@@ -76,49 +77,19 @@ app = load_app(
76
77
  )
77
78
  ```
78
79
 
79
- ## Components
80
-
81
- ### StatusAgent
82
-
83
- A base agent class that provides status tracking and structured responses:
84
-
85
- ```python
86
- from distributed_a2a import StatusAgent, StringResponse
87
-
88
- agent = StatusAgent[StringResponse](
89
- system_prompt="Your system prompt",
90
- name="AgentName",
91
- api_key="your-api-key",
92
- is_routing=False,
93
- tools=[]
94
- )
95
-
96
- response = await agent("User message", context_id="context-123")
97
- ```
98
-
99
- ### RoutingAgentExecutor
100
-
101
- An executor that can handle requests directly or route them to specialized agents:
102
-
80
+ 2. Send a request with the client
103
81
  ```python
104
- from distributed_a2a import RoutingAgentExecutor
82
+ from uuid import uuid4
105
83
 
106
- executor = RoutingAgentExecutor(
107
- api_key="your-api-key",
108
- system_prompt="Your system prompt",
109
- routing_tool=routing_tool
110
- )
111
- ```
112
-
113
- ### DynamoDB Registry
84
+ from distributed_a2a import RoutingA2AClient
114
85
 
115
- Dynamic agent registry with automatic heartbeat and expiration:
116
-
117
- ```python
118
- from distributed_a2a import DynamoDbRegistryLookup
86
+ if __name__ == "__main__":
87
+ import asyncio
119
88
 
120
- registry = DynamoDbRegistryLookup(agent_card_tabel="agent-cards")
121
- tool = registry.as_tool()
89
+ request = "Tell me the weather in Bonn"
90
+ client = RoutingA2AClient("http://localhost:8000")
91
+ response: str = asyncio.run(client.send_message(request, str(uuid4())))
92
+ print(response)
122
93
  ```
123
94
 
124
95
  ## Requirements
@@ -5,8 +5,8 @@ distributed_a2a/executors.py,sha256=xXiJydbb4modTdn7XmDflJ4QZ6v_SBeiIrLlcNErc9M,
5
5
  distributed_a2a/model.py,sha256=I-e0V1cqxbRNi2LdSZW8XPkgqncy9zX_dOXAusuqPrQ,331
6
6
  distributed_a2a/registry.py,sha256=197eZVR6TW0isOUE0VjWSWs7aCqbWqnBzcV8EVXAxrI,677
7
7
  distributed_a2a/server.py,sha256=C83rt-T3_EGQbDfPmncSvpa9PYbJxweHc5tKFmTOnvI,2601
8
- distributed_a2a-0.1.3.dist-info/licenses/LICENSE,sha256=Btzdu2kIoMbdSp6OyCLupB1aRgpTCJ_szMimgEnpkkE,1056
9
- distributed_a2a-0.1.3.dist-info/METADATA,sha256=D0xe5WxwE8nfTlR8ZDoIP_b2FEFlkJDcqpKe6apr09c,3604
10
- distributed_a2a-0.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
- distributed_a2a-0.1.3.dist-info/top_level.txt,sha256=23qJ8n5k7796BHDK7a58uuO-X4GV0EgUWcGi8NIn-0k,16
12
- distributed_a2a-0.1.3.dist-info/RECORD,,
8
+ distributed_a2a-0.1.4.dist-info/licenses/LICENSE,sha256=Btzdu2kIoMbdSp6OyCLupB1aRgpTCJ_szMimgEnpkkE,1056
9
+ distributed_a2a-0.1.4.dist-info/METADATA,sha256=I1WcpEIDKNQ5tfKVXlelAwvUAweNiDCIzr9EqgWb9e4,3047
10
+ distributed_a2a-0.1.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
+ distributed_a2a-0.1.4.dist-info/top_level.txt,sha256=23qJ8n5k7796BHDK7a58uuO-X4GV0EgUWcGi8NIn-0k,16
12
+ distributed_a2a-0.1.4.dist-info/RECORD,,