langgraph-agent-common 2.0.0__tar.gz → 2.0.1__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.
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/PKG-INFO +1 -1
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/pyproject.toml +1 -1
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_a2a_api/adaptor/agent_executor.py +9 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_a2a_api/resources/static/js/app.js +3 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_agent_common.egg-info/PKG-INFO +1 -1
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/README.md +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/setup.cfg +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_a2a_api/__init__.py +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_a2a_api/adaptor/__init__.py +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_a2a_api/adaptor/conversion.py +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_a2a_api/adaptor/sanitize_messages_for_llm.py +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_a2a_api/fastapi_application.py +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_a2a_api/langgraph/__init__.py +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_a2a_api/langgraph/checkpointer.py +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_a2a_api/langgraph/graph.py +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_a2a_api/langgraph/store.py +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_a2a_api/langgraph/validator.py +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_a2a_api/resources/openapi_schema.json +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_a2a_api/resources/static/css/style.css +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_a2a_api/resources/static/index.html +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_a2a_api/server.py +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_a2a_api/tasks/__init__.py +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_a2a_api/tasks/push_notification_config_store.py +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_a2a_api/tasks/task_store.py +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_a2a_api/utils/__init__.py +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_a2a_api/utils/lock.py +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_a2a_api/utils/types.py +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_agent_common.egg-info/SOURCES.txt +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_agent_common.egg-info/dependency_links.txt +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_agent_common.egg-info/requires.txt +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_agent_common.egg-info/top_level.txt +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_aux/__init__.py +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_aux/callbacks/__init__.py +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_aux/callbacks/talos_callback_handler.py +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_aux/utils/__init__.py +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_aux/utils/stream_output.py +0 -0
- {langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/test/test_deepagents_a2a_server.py +0 -0
|
@@ -4,6 +4,7 @@ from typing import Any, Union
|
|
|
4
4
|
from pydantic import BaseModel
|
|
5
5
|
import asyncio
|
|
6
6
|
import uuid
|
|
7
|
+
from dataclasses import asdict
|
|
7
8
|
from datetime import datetime, timezone
|
|
8
9
|
|
|
9
10
|
from google.protobuf.json_format import MessageToDict
|
|
@@ -175,6 +176,10 @@ class GraphAgentExecutor(AgentExecutor):
|
|
|
175
176
|
parts.append(langgraph_part_to_a2a({"type": "non_standard", "value": part}))
|
|
176
177
|
elif isinstance(part, BaseModel):
|
|
177
178
|
parts.append(langgraph_part_to_a2a({"type": "non_standard", "value": part.model_dump()}))
|
|
179
|
+
elif hasattr(part, "DESCRIPTOR"):
|
|
180
|
+
parts.append(langgraph_part_to_a2a({"type": "non_standard", "value": MessageToDict(part)}))
|
|
181
|
+
elif hasattr(type(part), "__dataclass_fields__"):
|
|
182
|
+
parts.append(langgraph_part_to_a2a({"type": "non_standard", "value": asdict(part)}))
|
|
178
183
|
else:
|
|
179
184
|
raise ValueError(f"Unsupported type of artifact part {part}.")
|
|
180
185
|
if k in appended_artifacts:
|
|
@@ -185,6 +190,10 @@ class GraphAgentExecutor(AgentExecutor):
|
|
|
185
190
|
parts = [langgraph_part_to_a2a({"type": "non_standard", "value": v})]
|
|
186
191
|
elif isinstance(v, BaseModel):
|
|
187
192
|
parts = [langgraph_part_to_a2a({"type": "non_standard", "value": v.model_dump()})]
|
|
193
|
+
elif hasattr(v, "DESCRIPTOR"):
|
|
194
|
+
parts = [langgraph_part_to_a2a({"type": "non_standard", "value": MessageToDict(v)})]
|
|
195
|
+
elif hasattr(type(v), "__dataclass_fields__"):
|
|
196
|
+
parts = [langgraph_part_to_a2a({"type": "non_standard", "value": asdict(v)})]
|
|
188
197
|
else:
|
|
189
198
|
raise ValueError(f"Unsupported type of artifact: {k}:{v}")
|
|
190
199
|
|
|
@@ -290,6 +290,9 @@
|
|
|
290
290
|
}
|
|
291
291
|
const status = event.statusUpdate?.status || event.task?.status;
|
|
292
292
|
if (status?.message?.parts) {
|
|
293
|
+
if (status.message.role === 'ROLE_USER') {
|
|
294
|
+
return event;
|
|
295
|
+
}
|
|
293
296
|
const displayParts = status.message.parts.filter(p => !(p.data && p.data.type === 'tool_result') && !p.url && !p.raw);
|
|
294
297
|
const text = displayParts.map(p => p.text || (p.data && JSON.stringify(p.data, null, 2)) || '').filter(Boolean).join('\n');
|
|
295
298
|
if (text) updateLoadingMessage(text);
|
|
File without changes
|
|
File without changes
|
{langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_a2a_api/__init__.py
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_a2a_api/server.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_a2a_api/utils/lock.py
RENAMED
|
File without changes
|
{langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_a2a_api/utils/types.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/src/langgraph_aux/utils/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{langgraph_agent_common-2.0.0 → langgraph_agent_common-2.0.1}/test/test_deepagents_a2a_server.py
RENAMED
|
File without changes
|