distributed-a2a 0.1.3__tar.gz → 0.1.4__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.
- {distributed_a2a-0.1.3/distributed_a2a.egg-info → distributed_a2a-0.1.4}/PKG-INFO +11 -40
- {distributed_a2a-0.1.3 → distributed_a2a-0.1.4}/README.md +10 -39
- {distributed_a2a-0.1.3 → distributed_a2a-0.1.4/distributed_a2a.egg-info}/PKG-INFO +11 -40
- {distributed_a2a-0.1.3 → distributed_a2a-0.1.4}/pyproject.toml +1 -1
- {distributed_a2a-0.1.3 → distributed_a2a-0.1.4}/setup.py +1 -1
- {distributed_a2a-0.1.3 → distributed_a2a-0.1.4}/LICENSE +0 -0
- {distributed_a2a-0.1.3 → distributed_a2a-0.1.4}/MANIFEST.in +0 -0
- {distributed_a2a-0.1.3 → distributed_a2a-0.1.4}/distributed_a2a/__init__.py +0 -0
- {distributed_a2a-0.1.3 → distributed_a2a-0.1.4}/distributed_a2a/agent.py +0 -0
- {distributed_a2a-0.1.3 → distributed_a2a-0.1.4}/distributed_a2a/client.py +0 -0
- {distributed_a2a-0.1.3 → distributed_a2a-0.1.4}/distributed_a2a/executors.py +0 -0
- {distributed_a2a-0.1.3 → distributed_a2a-0.1.4}/distributed_a2a/model.py +0 -0
- {distributed_a2a-0.1.3 → distributed_a2a-0.1.4}/distributed_a2a/registry.py +0 -0
- {distributed_a2a-0.1.3 → distributed_a2a-0.1.4}/distributed_a2a/server.py +0 -0
- {distributed_a2a-0.1.3 → distributed_a2a-0.1.4}/distributed_a2a.egg-info/SOURCES.txt +0 -0
- {distributed_a2a-0.1.3 → distributed_a2a-0.1.4}/distributed_a2a.egg-info/dependency_links.txt +0 -0
- {distributed_a2a-0.1.3 → distributed_a2a-0.1.4}/distributed_a2a.egg-info/requires.txt +0 -0
- {distributed_a2a-0.1.3 → distributed_a2a-0.1.4}/distributed_a2a.egg-info/top_level.txt +0 -0
- {distributed_a2a-0.1.3 → distributed_a2a-0.1.4}/requirements.txt +0 -0
- {distributed_a2a-0.1.3 → distributed_a2a-0.1.4}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: distributed_a2a
|
|
3
|
-
Version: 0.1.
|
|
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
|
-
|
|
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
|
|
82
|
+
from uuid import uuid4
|
|
105
83
|
|
|
106
|
-
|
|
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
|
-
|
|
116
|
-
|
|
117
|
-
```python
|
|
118
|
-
from distributed_a2a import DynamoDbRegistryLookup
|
|
86
|
+
if __name__ == "__main__":
|
|
87
|
+
import asyncio
|
|
119
88
|
|
|
120
|
-
|
|
121
|
-
|
|
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
|
|
@@ -18,6 +18,7 @@ pip install distributed-a2a
|
|
|
18
18
|
|
|
19
19
|
## Quick Start
|
|
20
20
|
|
|
21
|
+
1. Start a server with your agent application:
|
|
21
22
|
```python
|
|
22
23
|
from distributed_a2a import load_app
|
|
23
24
|
from a2a.types import AgentSkill
|
|
@@ -43,49 +44,19 @@ app = load_app(
|
|
|
43
44
|
)
|
|
44
45
|
```
|
|
45
46
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
### StatusAgent
|
|
49
|
-
|
|
50
|
-
A base agent class that provides status tracking and structured responses:
|
|
51
|
-
|
|
52
|
-
```python
|
|
53
|
-
from distributed_a2a import StatusAgent, StringResponse
|
|
54
|
-
|
|
55
|
-
agent = StatusAgent[StringResponse](
|
|
56
|
-
system_prompt="Your system prompt",
|
|
57
|
-
name="AgentName",
|
|
58
|
-
api_key="your-api-key",
|
|
59
|
-
is_routing=False,
|
|
60
|
-
tools=[]
|
|
61
|
-
)
|
|
62
|
-
|
|
63
|
-
response = await agent("User message", context_id="context-123")
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
### RoutingAgentExecutor
|
|
67
|
-
|
|
68
|
-
An executor that can handle requests directly or route them to specialized agents:
|
|
69
|
-
|
|
47
|
+
2. Send a request with the client
|
|
70
48
|
```python
|
|
71
|
-
from
|
|
49
|
+
from uuid import uuid4
|
|
72
50
|
|
|
73
|
-
|
|
74
|
-
api_key="your-api-key",
|
|
75
|
-
system_prompt="Your system prompt",
|
|
76
|
-
routing_tool=routing_tool
|
|
77
|
-
)
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
### DynamoDB Registry
|
|
51
|
+
from distributed_a2a import RoutingA2AClient
|
|
81
52
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
```python
|
|
85
|
-
from distributed_a2a import DynamoDbRegistryLookup
|
|
53
|
+
if __name__ == "__main__":
|
|
54
|
+
import asyncio
|
|
86
55
|
|
|
87
|
-
|
|
88
|
-
|
|
56
|
+
request = "Tell me the weather in Bonn"
|
|
57
|
+
client = RoutingA2AClient("http://localhost:8000")
|
|
58
|
+
response: str = asyncio.run(client.send_message(request, str(uuid4())))
|
|
59
|
+
print(response)
|
|
89
60
|
```
|
|
90
61
|
|
|
91
62
|
## Requirements
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: distributed_a2a
|
|
3
|
-
Version: 0.1.
|
|
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
|
-
|
|
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
|
|
82
|
+
from uuid import uuid4
|
|
105
83
|
|
|
106
|
-
|
|
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
|
-
|
|
116
|
-
|
|
117
|
-
```python
|
|
118
|
-
from distributed_a2a import DynamoDbRegistryLookup
|
|
86
|
+
if __name__ == "__main__":
|
|
87
|
+
import asyncio
|
|
119
88
|
|
|
120
|
-
|
|
121
|
-
|
|
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
|
|
@@ -8,7 +8,7 @@ with open("requirements.txt", "r", encoding="utf-8") as fh:
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name="distributed_a2a",
|
|
11
|
-
version="0.1.
|
|
11
|
+
version="0.1.4",
|
|
12
12
|
author="Fabian Bell",
|
|
13
13
|
author_email="fabian.bell@barrabytes.com",
|
|
14
14
|
description="A library for building A2A agents with routing capabilities",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{distributed_a2a-0.1.3 → distributed_a2a-0.1.4}/distributed_a2a.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|