agentkit-sdk-python 0.7.6__py3-none-any.whl → 0.7.7__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.
- agentkit/frameworks/langgraph.py +5 -2
- agentkit/version.py +1 -1
- {agentkit_sdk_python-0.7.6.dist-info → agentkit_sdk_python-0.7.7.dist-info}/METADATA +1 -1
- {agentkit_sdk_python-0.7.6.dist-info → agentkit_sdk_python-0.7.7.dist-info}/RECORD +8 -8
- {agentkit_sdk_python-0.7.6.dist-info → agentkit_sdk_python-0.7.7.dist-info}/WHEEL +0 -0
- {agentkit_sdk_python-0.7.6.dist-info → agentkit_sdk_python-0.7.7.dist-info}/entry_points.txt +0 -0
- {agentkit_sdk_python-0.7.6.dist-info → agentkit_sdk_python-0.7.7.dist-info}/licenses/LICENSE +0 -0
- {agentkit_sdk_python-0.7.6.dist-info → agentkit_sdk_python-0.7.7.dist-info}/top_level.txt +0 -0
agentkit/frameworks/langgraph.py
CHANGED
|
@@ -37,6 +37,7 @@ from agentkit.frameworks._common import (
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
LANGGRAPH_PENDING_INTERRUPT_STATE_KEY = "agentkit:langgraph:pending_interrupt"
|
|
40
|
+
_OUTPUT_FIELD_KEYS = ("answer", "output", "final", "response", "text", "messages")
|
|
40
41
|
|
|
41
42
|
|
|
42
43
|
def _method_kwargs(method: Any, kwargs: dict[str, Any]) -> dict[str, Any]:
|
|
@@ -96,7 +97,7 @@ def _update_output_text(data: Any) -> str:
|
|
|
96
97
|
if not isinstance(data, dict):
|
|
97
98
|
return chunk_to_text(data)
|
|
98
99
|
|
|
99
|
-
for key in
|
|
100
|
+
for key in _OUTPUT_FIELD_KEYS:
|
|
100
101
|
if key in data:
|
|
101
102
|
text = chunk_to_text(data[key])
|
|
102
103
|
if text:
|
|
@@ -106,7 +107,7 @@ def _update_output_text(data: Any) -> str:
|
|
|
106
107
|
for value in data.values():
|
|
107
108
|
if not isinstance(value, dict):
|
|
108
109
|
continue
|
|
109
|
-
for key in
|
|
110
|
+
for key in _OUTPUT_FIELD_KEYS:
|
|
110
111
|
if key in value:
|
|
111
112
|
text = chunk_to_text(value[key])
|
|
112
113
|
if text:
|
|
@@ -325,6 +326,8 @@ class LangGraphAgentkitBridge(BaseAgent):
|
|
|
325
326
|
elif isinstance(item, dict) and isinstance(item.get("type"), str):
|
|
326
327
|
mode = item["type"]
|
|
327
328
|
data = item.get("data")
|
|
329
|
+
elif isinstance(item, dict):
|
|
330
|
+
mode = "updates"
|
|
328
331
|
|
|
329
332
|
if mode == "messages":
|
|
330
333
|
message = data[0] if isinstance(data, tuple) and data else data
|
agentkit/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: agentkit-sdk-python
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.7
|
|
4
4
|
Summary: Python SDK for transforming any AI agent into a production-ready application. Framework-agnostic primitives for runtime, memory, authentication, and tools with volcengine-managed infrastructure.
|
|
5
5
|
Author-email: Xiangrui Cheng <innsdcc@gmail.com>, Yumeng Bao <baoyumeng.123@gmail.com>, Yaozheng Fang <fangyozheng@gmail.com>, Guodong Li <cu.eric.lee@gmail.com>
|
|
6
6
|
License: Apache License
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
agentkit/__init__.py,sha256=l27ZMDslc3VhmmnPZJyrqVvTDoZ0LqhCtM5hw0caHcU,1021
|
|
2
2
|
agentkit/errors.py,sha256=UWlXv0ZsXd_oLTMlxuf4u9-XkTdRYeVZueE--Z3JsHU,1214
|
|
3
|
-
agentkit/version.py,sha256=
|
|
3
|
+
agentkit/version.py,sha256=aY0LbH3uWPVe2OXWCa9W7LLbRNa4t_a7XqmwB7dpKlw,653
|
|
4
4
|
agentkit/apps/__init__.py,sha256=-oXTjxV3gejpJ8pffTUcUAXw0LfxKCYZJk-_hIJhtLM,1921
|
|
5
5
|
agentkit/apps/base_app.py,sha256=3hZZExL1wyTGWveJEZZoqXN086MzmkVS_WU1vyulIWg,754
|
|
6
6
|
agentkit/apps/utils.py,sha256=IzimIDmT6FS6PV9MLimPh46mq5zT-EjVmnYPxBdyEq0,1934
|
|
@@ -43,7 +43,7 @@ agentkit/client/base_service_client.py,sha256=zpPUidGMDRAMDnSVjrX7BwuOp4BQdAEk0b
|
|
|
43
43
|
agentkit/frameworks/__init__.py,sha256=cfUdMeixph0xAo6B5qGQBBdm8LeQbWZIl1vmO9cEL3E,971
|
|
44
44
|
agentkit/frameworks/_common.py,sha256=0L0cyBQxtlOdi3GbQ_UgaOoHWwenztlKrxUsyvV3hXw,3859
|
|
45
45
|
agentkit/frameworks/langchain.py,sha256=Tcy2HGYqKmcugDSn3OMaD_6uxhsJtZI3o5E8Rw7UJrg,5947
|
|
46
|
-
agentkit/frameworks/langgraph.py,sha256=
|
|
46
|
+
agentkit/frameworks/langgraph.py,sha256=FQ3O9RDYFWXizvsg3-e-rpCpjbnQEWqVfcUQSKUp5TQ,14292
|
|
47
47
|
agentkit/frameworks/migration.py,sha256=j8MxFvAFKkDsTy_e1l5bN-B276AE7rwxLrHuBodNcfc,4385
|
|
48
48
|
agentkit/frameworks/serving/__init__.py,sha256=EaR0jzP6np8v1gyD6CYlaRoIY1KgBaFosqCmRUgMc2E,302
|
|
49
49
|
agentkit/frameworks/serving/fastapi_mount.py,sha256=LV6gJunwd7aU8MFdDYSxeaIUYWvYwMl2Am1J07ddP0A,1958
|
|
@@ -241,9 +241,9 @@ agentkit/utils/redact.py,sha256=RAtiggxH74eb1Da6Gg0G5SLTVWRaIE5RqYnCozSZozQ,2167
|
|
|
241
241
|
agentkit/utils/request.py,sha256=1IGxPS3BSCKk1K1_j862_v34xzLEx04CIvrLVb1MsGQ,1625
|
|
242
242
|
agentkit/utils/template_utils.py,sha256=Qjg9V6dEpjAd_yYezIIPwuDsDeeMmp6XTMn5ZECifNc,6336
|
|
243
243
|
agentkit/utils/ve_sign.py,sha256=JfKig7zni8KvdhgbLJXm3Zy_ttyzKrYGUmBY_82_A4Q,12762
|
|
244
|
-
agentkit_sdk_python-0.7.
|
|
245
|
-
agentkit_sdk_python-0.7.
|
|
246
|
-
agentkit_sdk_python-0.7.
|
|
247
|
-
agentkit_sdk_python-0.7.
|
|
248
|
-
agentkit_sdk_python-0.7.
|
|
249
|
-
agentkit_sdk_python-0.7.
|
|
244
|
+
agentkit_sdk_python-0.7.7.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
245
|
+
agentkit_sdk_python-0.7.7.dist-info/METADATA,sha256=A046DqMlx-7fFuSloq8mRpGmwv2EAW-EQwmNkmhxDZE,21144
|
|
246
|
+
agentkit_sdk_python-0.7.7.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
|
|
247
|
+
agentkit_sdk_python-0.7.7.dist-info/entry_points.txt,sha256=fhzZUsvsLXeB4mPaa0SBQiTBqFT404uDAKPaePAOUAE,58
|
|
248
|
+
agentkit_sdk_python-0.7.7.dist-info/top_level.txt,sha256=ipy8JF-QQ-V0C1oRFLxsyaW8zwrasfJ-zjAh9vgOc7U,9
|
|
249
|
+
agentkit_sdk_python-0.7.7.dist-info/RECORD,,
|
|
File without changes
|
{agentkit_sdk_python-0.7.6.dist-info → agentkit_sdk_python-0.7.7.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{agentkit_sdk_python-0.7.6.dist-info → agentkit_sdk_python-0.7.7.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|