agentscope-runtime 1.0.0b1__py3-none-any.whl → 1.0.0b2__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.
@@ -252,9 +252,41 @@ async def adapt_agentscope_message_stream(
252
252
  call_id = element.get("id")
253
253
 
254
254
  if last:
255
- plugin_call_message = tool_use_messages_dict[
256
- call_id
257
- ]
255
+ plugin_call_message = tool_use_messages_dict.get(
256
+ call_id,
257
+ )
258
+
259
+ if plugin_call_message is None:
260
+ # Only one tool use message yields, we fake
261
+ # Build a new tool call message
262
+ plugin_call_message = Message(
263
+ type=MessageType.PLUGIN_CALL,
264
+ role="assistant",
265
+ )
266
+
267
+ data_delta_content = DataContent(
268
+ index=index,
269
+ data=FunctionCall(
270
+ call_id=element.get("id"),
271
+ name=element.get("name"),
272
+ arguments="",
273
+ ).model_dump(),
274
+ delta=True,
275
+ )
276
+
277
+ plugin_call_message = _update_obj_attrs(
278
+ plugin_call_message,
279
+ metadata=metadata,
280
+ usage=usage,
281
+ )
282
+ yield plugin_call_message.in_progress()
283
+ data_delta_content = (
284
+ plugin_call_message.add_delta_content(
285
+ new_content=data_delta_content,
286
+ )
287
+ )
288
+ yield data_delta_content
289
+
258
290
  json_str = json.dumps(element.get("input"))
259
291
  data_delta_content = DataContent(
260
292
  index=index,
@@ -460,9 +460,6 @@ class SandboxManager:
460
460
 
461
461
  config = SandboxRegistry.get_config_by_type(target_sandbox_type)
462
462
 
463
- print(target_sandbox_type)
464
- print(config)
465
-
466
463
  if not config:
467
464
  logger.warning(
468
465
  f"Not found sandbox {target_sandbox_type}, " f"using default",
@@ -1,2 +1,2 @@
1
1
  # -*- coding: utf-8 -*-
2
- __version__ = "v1.0.0b1"
2
+ __version__ = "v1.0.0b2"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentscope-runtime
3
- Version: 1.0.0b1
3
+ Version: 1.0.0b2
4
4
  Summary: A production-ready runtime framework for agent applications, providing secure sandboxed execution environments and scalable deployment solutions with multi-framework support.
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -1,9 +1,9 @@
1
1
  agentscope_runtime/__init__.py,sha256=LMAUeUpPo2qzqh3zyZ-JJwc8GrsiT9b-yNhQMxlKmfE,84
2
- agentscope_runtime/version.py,sha256=yOMzjiBgCTJn4No0P10fQG-RDeZO0V-e17TXnO4tDT8,49
2
+ agentscope_runtime/version.py,sha256=hgie0jkmrUKvruOn51H4rrCOC1w8NeJLz9hMspmajRE,49
3
3
  agentscope_runtime/adapters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  agentscope_runtime/adapters/agentscope/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  agentscope_runtime/adapters/agentscope/message.py,sha256=cq7O8A0wkAaibfWk8ULCywnPnUKATPfkb719I1DYZKs,20330
6
- agentscope_runtime/adapters/agentscope/stream.py,sha256=ht0A5PckYXlCZNl9jXqXu-KQrbtEglsffJpa2KPiu6U,19669
6
+ agentscope_runtime/adapters/agentscope/stream.py,sha256=pghgNYzTmndb5G9XjU3bCa_QZ7L_KD0UGBVmNoTikH0,21258
7
7
  agentscope_runtime/adapters/agentscope/long_term_memory/__init__.py,sha256=Hg4ghENb8u49svojY_q89HEjKImvLjKMQwmL8Y3wGgE,135
8
8
  agentscope_runtime/adapters/agentscope/long_term_memory/_long_term_memory_adapter.py,sha256=dwUS6-xvn9g4VlVcHL89gCbHjdw-VWKEBNpVkmzUAgE,7873
9
9
  agentscope_runtime/adapters/agentscope/memory/__init__.py,sha256=zqVxvsJv1t1mjJKdOjtP6dUGNOrc0LLwZx_yZCNq7Xs,137
@@ -173,7 +173,7 @@ agentscope_runtime/sandbox/custom/__init__.py,sha256=wpu0DlzdLohYzOVM9yZloIWid3w
173
173
  agentscope_runtime/sandbox/custom/custom_sandbox.py,sha256=ZKE7otTimLZ2-ZV9PMVLRA6P1hH0a4fT-d_K4Ga59og,1008
174
174
  agentscope_runtime/sandbox/custom/example.py,sha256=iU5G7Vb-oq3wsJ_Kl8oFAwi0HNbt5V_8fWAAyiQ8RuY,964
175
175
  agentscope_runtime/sandbox/manager/__init__.py,sha256=KNHc1uDaUWBH_ZnWjH5NHRBiQM_zDyi9B2xKVNtAWIg,98
176
- agentscope_runtime/sandbox/manager/sandbox_manager.py,sha256=S89Ho6QhCHVT79oYiwgKmFOUiwXRL-z8FJDgMPzojJs,28016
176
+ agentscope_runtime/sandbox/manager/sandbox_manager.py,sha256=EWrccNdodFHr_w4jkhZUIGJ5RrhpKA-hdYuXklRQXlM,27958
177
177
  agentscope_runtime/sandbox/manager/server/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
178
178
  agentscope_runtime/sandbox/manager/server/app.py,sha256=Qa6443dBuqg41hslqw14SsN7UPQJ-CqI3z5DU5Xpf3c,13641
179
179
  agentscope_runtime/sandbox/manager/server/config.py,sha256=yXiricKpA_r2zoMF7YpRgIxtJck89rzN9iwaVVLhK60,4451
@@ -232,9 +232,9 @@ agentscope_runtime/tools/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
232
232
  agentscope_runtime/tools/utils/api_key_util.py,sha256=xIIUsvWgSt4etgYP7lS0WnqVIhZ-REzrBLwzAT-TrVI,1210
233
233
  agentscope_runtime/tools/utils/crypto_utils.py,sha256=Wqq4cn3FHQge-2Q1zGSMUyKh4V4A2baiZm8ZNhMqhPo,3382
234
234
  agentscope_runtime/tools/utils/mcp_util.py,sha256=n3GGKBEQPJ-fiNXdYnBx_90GVKWvm9eaNbR2G0q2lOw,905
235
- agentscope_runtime-1.0.0b1.dist-info/licenses/LICENSE,sha256=3MckDTgiTJ0E6cxo8FeamFVEFiwz3XJWsriuTtRJzxY,11337
236
- agentscope_runtime-1.0.0b1.dist-info/METADATA,sha256=mdCU34pRctP839liDy3SSYTm3mc_r1ytuTDrmhjbk94,35222
237
- agentscope_runtime-1.0.0b1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
238
- agentscope_runtime-1.0.0b1.dist-info/entry_points.txt,sha256=iYzbpqpPc42a0HzEZ9JR96jlPOXND7Wg2XFJheRg2oo,380
239
- agentscope_runtime-1.0.0b1.dist-info/top_level.txt,sha256=0YHketA7WcMmRmF-3lUzedeTOnP7iL77h-ekb-iG720,19
240
- agentscope_runtime-1.0.0b1.dist-info/RECORD,,
235
+ agentscope_runtime-1.0.0b2.dist-info/licenses/LICENSE,sha256=3MckDTgiTJ0E6cxo8FeamFVEFiwz3XJWsriuTtRJzxY,11337
236
+ agentscope_runtime-1.0.0b2.dist-info/METADATA,sha256=8T1b3SjBKTDC5gvP54eMh7T4gf_fpYqP8hDXDNG95S4,35222
237
+ agentscope_runtime-1.0.0b2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
238
+ agentscope_runtime-1.0.0b2.dist-info/entry_points.txt,sha256=iYzbpqpPc42a0HzEZ9JR96jlPOXND7Wg2XFJheRg2oo,380
239
+ agentscope_runtime-1.0.0b2.dist-info/top_level.txt,sha256=0YHketA7WcMmRmF-3lUzedeTOnP7iL77h-ekb-iG720,19
240
+ agentscope_runtime-1.0.0b2.dist-info/RECORD,,