distributed-a2a 0.1.5rc17__tar.gz → 0.1.5rc18__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.5rc17/distributed_a2a.egg-info → distributed_a2a-0.1.5rc18}/PKG-INFO +2 -1
- {distributed_a2a-0.1.5rc17 → distributed_a2a-0.1.5rc18}/distributed_a2a/agent.py +13 -2
- {distributed_a2a-0.1.5rc17 → distributed_a2a-0.1.5rc18}/distributed_a2a/server.py +0 -1
- distributed_a2a-0.1.5rc18/distributed_a2a/tool_registry_test.py +6 -0
- {distributed_a2a-0.1.5rc17 → distributed_a2a-0.1.5rc18/distributed_a2a.egg-info}/PKG-INFO +2 -1
- {distributed_a2a-0.1.5rc17 → distributed_a2a-0.1.5rc18}/distributed_a2a.egg-info/SOURCES.txt +1 -0
- {distributed_a2a-0.1.5rc17 → distributed_a2a-0.1.5rc18}/distributed_a2a.egg-info/requires.txt +1 -0
- {distributed_a2a-0.1.5rc17 → distributed_a2a-0.1.5rc18}/pyproject.toml +1 -1
- {distributed_a2a-0.1.5rc17 → distributed_a2a-0.1.5rc18}/requirements.txt +2 -1
- {distributed_a2a-0.1.5rc17 → distributed_a2a-0.1.5rc18}/LICENSE +0 -0
- {distributed_a2a-0.1.5rc17 → distributed_a2a-0.1.5rc18}/MANIFEST.in +0 -0
- {distributed_a2a-0.1.5rc17 → distributed_a2a-0.1.5rc18}/README.md +0 -0
- {distributed_a2a-0.1.5rc17 → distributed_a2a-0.1.5rc18}/distributed_a2a/__init__.py +0 -0
- {distributed_a2a-0.1.5rc17 → distributed_a2a-0.1.5rc18}/distributed_a2a/client.py +0 -0
- {distributed_a2a-0.1.5rc17 → distributed_a2a-0.1.5rc18}/distributed_a2a/executors.py +0 -0
- {distributed_a2a-0.1.5rc17 → distributed_a2a-0.1.5rc18}/distributed_a2a/model.py +0 -0
- {distributed_a2a-0.1.5rc17 → distributed_a2a-0.1.5rc18}/distributed_a2a/registry.py +0 -0
- {distributed_a2a-0.1.5rc17 → distributed_a2a-0.1.5rc18}/distributed_a2a.egg-info/dependency_links.txt +0 -0
- {distributed_a2a-0.1.5rc17 → distributed_a2a-0.1.5rc18}/distributed_a2a.egg-info/top_level.txt +0 -0
- {distributed_a2a-0.1.5rc17 → distributed_a2a-0.1.5rc18}/setup.cfg +0 -0
- {distributed_a2a-0.1.5rc17 → distributed_a2a-0.1.5rc18}/setup.py +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.5rc18
|
|
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
|
|
@@ -23,6 +23,7 @@ Requires-Dist: langchain>=0.1.0
|
|
|
23
23
|
Requires-Dist: langchain-core>=0.1.0
|
|
24
24
|
Requires-Dist: langchain-openai>=0.0.5
|
|
25
25
|
Requires-Dist: langgraph>=0.0.20
|
|
26
|
+
Requires-Dist: langgraph-dynamodb-checkpoint>=0.2.6.4
|
|
26
27
|
Requires-Dist: pydantic>=2.0.0
|
|
27
28
|
Requires-Dist: boto3>=1.28.0
|
|
28
29
|
Requires-Dist: a2a>=0.1.0
|
|
@@ -5,6 +5,7 @@ from langchain.agents import create_agent
|
|
|
5
5
|
from langchain_core.runnables import RunnableConfig
|
|
6
6
|
from langchain_core.tools import BaseTool
|
|
7
7
|
from langgraph.checkpoint.memory import MemorySaver
|
|
8
|
+
from langgraph_dynamodb_checkpoint import DynamoDBSaver
|
|
8
9
|
from pydantic import BaseModel, Field
|
|
9
10
|
|
|
10
11
|
from .model import get_model, AgentConfig, LLMConfig
|
|
@@ -20,29 +21,39 @@ class AgentResponse(BaseModel):
|
|
|
20
21
|
)
|
|
21
22
|
)
|
|
22
23
|
|
|
24
|
+
|
|
23
25
|
class RoutingResponse(AgentResponse):
|
|
24
26
|
agent_card: str = Field(description="The stringified json of the agent card to be returned to the user")
|
|
25
27
|
|
|
28
|
+
|
|
26
29
|
class StringResponse(AgentResponse):
|
|
27
30
|
response: str = Field(description="The main response to be returned to the user")
|
|
28
31
|
|
|
29
32
|
|
|
30
33
|
class StatusAgent[ResponseT: AgentResponse]:
|
|
31
34
|
|
|
32
|
-
def __init__(self, llm_config: LLMConfig, name: str, system_prompt: str, api_key: str, is_routing: bool,
|
|
35
|
+
def __init__(self, llm_config: LLMConfig, name: str, system_prompt: str, api_key: str, is_routing: bool,
|
|
36
|
+
tools: list[BaseTool]):
|
|
33
37
|
response_format: type[AgentResponse]
|
|
34
38
|
if is_routing:
|
|
35
39
|
response_format = RoutingResponse
|
|
36
40
|
else:
|
|
37
41
|
response_format = StringResponse
|
|
38
42
|
|
|
43
|
+
|
|
44
|
+
saver = DynamoDBSaver(
|
|
45
|
+
table_name="your-dynamodb-table-name",
|
|
46
|
+
max_read_request_units=20, ## TODO find correct value for app
|
|
47
|
+
max_write_request_units=20, ## TODO find correct value for app
|
|
48
|
+
ttl_seconds=86400
|
|
49
|
+
)
|
|
39
50
|
self.agent = create_agent(
|
|
40
51
|
get_model(api_key=api_key,
|
|
41
52
|
model=llm_config.model,
|
|
42
53
|
base_url=llm_config.base_url,
|
|
43
54
|
reasoning_effort=llm_config.reasoning_effort),
|
|
44
55
|
tools=tools,
|
|
45
|
-
checkpointer=
|
|
56
|
+
checkpointer=saver,
|
|
46
57
|
system_prompt=system_prompt,
|
|
47
58
|
response_format=response_format,
|
|
48
59
|
name=name
|
|
@@ -77,7 +77,6 @@ def load_app(agent_config: dict[str, Any]) -> FastAPI:
|
|
|
77
77
|
asyncio.create_task(heart_beat(name=agent_card.name, agent_card_table=AGENT_CARD_TABLE, agent_card=agent_card))
|
|
78
78
|
yield
|
|
79
79
|
|
|
80
|
-
|
|
81
80
|
return A2ARESTFastAPIApplication(
|
|
82
81
|
agent_card=agent_card,
|
|
83
82
|
http_handler=DefaultRequestHandler(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: distributed_a2a
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.5rc18
|
|
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
|
|
@@ -23,6 +23,7 @@ Requires-Dist: langchain>=0.1.0
|
|
|
23
23
|
Requires-Dist: langchain-core>=0.1.0
|
|
24
24
|
Requires-Dist: langchain-openai>=0.0.5
|
|
25
25
|
Requires-Dist: langgraph>=0.0.20
|
|
26
|
+
Requires-Dist: langgraph-dynamodb-checkpoint>=0.2.6.4
|
|
26
27
|
Requires-Dist: pydantic>=2.0.0
|
|
27
28
|
Requires-Dist: boto3>=1.28.0
|
|
28
29
|
Requires-Dist: a2a>=0.1.0
|
{distributed_a2a-0.1.5rc17 → distributed_a2a-0.1.5rc18}/distributed_a2a.egg-info/SOURCES.txt
RENAMED
|
@@ -11,6 +11,7 @@ distributed_a2a/executors.py
|
|
|
11
11
|
distributed_a2a/model.py
|
|
12
12
|
distributed_a2a/registry.py
|
|
13
13
|
distributed_a2a/server.py
|
|
14
|
+
distributed_a2a/tool_registry_test.py
|
|
14
15
|
distributed_a2a.egg-info/PKG-INFO
|
|
15
16
|
distributed_a2a.egg-info/SOURCES.txt
|
|
16
17
|
distributed_a2a.egg-info/dependency_links.txt
|
|
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.5rc17 → distributed_a2a-0.1.5rc18}/distributed_a2a.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|