Skip to content

Commit e21b078

Browse files
authored
Bump version to 1.0.1a2 (#271)
1 parent ebcbe80 commit e21b078

File tree

3 files changed

+16
-25
lines changed

3 files changed

+16
-25
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "agentscope-runtime"
3-
version = "1.0.1a1"
3+
version = "1.0.1a2"
44
description = "A production-ready runtime framework for agent applications, providing secure sandboxed execution environments and scalable deployment solutions with multi-framework support."
55
readme = "README.md"
66
requires-python = ">=3.10"

src/agentscope_runtime/adapters/agentscope/stream.py

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -276,14 +276,14 @@ async def adapt_agentscope_message_stream(
276276
)
277277

278278
data_delta_content = DataContent(
279-
index=index,
279+
index=0,
280280
data=fc_cls(
281281
call_id=element.get("id"),
282282
name=element.get("name"),
283283
arguments="",
284284
**fc_kwargs,
285285
).model_dump(),
286-
delta=True,
286+
delta=False,
287287
)
288288

289289
plugin_call_message = _update_obj_attrs(
@@ -292,28 +292,24 @@ async def adapt_agentscope_message_stream(
292292
usage=usage,
293293
)
294294
yield plugin_call_message.in_progress()
295-
data_delta_content = (
296-
plugin_call_message.add_delta_content(
297-
new_content=data_delta_content,
298-
)
299-
)
300-
yield data_delta_content
295+
yield data_delta_content.in_progress()
301296

302-
json_str = json.dumps(element.get("input"))
297+
json_str = json.dumps(
298+
element.get("input"),
299+
ensure_ascii=False,
300+
)
303301
data_delta_content = DataContent(
304-
index=index,
302+
index=None, # Will be set by `add_content`
305303
data=fc_cls(
306304
call_id=element.get("id"),
307305
name=element.get("name"),
308306
arguments=json_str,
309307
**fc_kwargs,
310308
).model_dump(),
311-
delta=True,
309+
delta=False,
312310
)
313-
data_delta_content = (
314-
plugin_call_message.add_delta_content(
315-
new_content=data_delta_content,
316-
)
311+
plugin_call_message.add_content(
312+
new_content=data_delta_content,
317313
)
318314
yield data_delta_content.completed()
319315
plugin_call_message = _update_obj_attrs(
@@ -334,14 +330,14 @@ async def adapt_agentscope_message_stream(
334330
)
335331

336332
data_delta_content = DataContent(
337-
index=index,
333+
index=0,
338334
data=fc_cls(
339335
call_id=element.get("id"),
340336
name=element.get("name"),
341337
arguments="",
342338
**fc_kwargs,
343339
).model_dump(),
344-
delta=True,
340+
delta=False,
345341
)
346342

347343
plugin_call_message = _update_obj_attrs(
@@ -350,12 +346,7 @@ async def adapt_agentscope_message_stream(
350346
usage=usage,
351347
)
352348
yield plugin_call_message.in_progress()
353-
data_delta_content = (
354-
plugin_call_message.add_delta_content(
355-
new_content=data_delta_content,
356-
)
357-
)
358-
yield data_delta_content
349+
yield data_delta_content.in_progress()
359350

360351
tool_use_messages_dict[
361352
call_id

src/agentscope_runtime/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# -*- coding: utf-8 -*-
2-
__version__ = "v1.0.1a1"
2+
__version__ = "v1.0.1a2"

0 commit comments

Comments
 (0)