Skip to content

Commit d956ddb

Browse files
zhilingluoXGenerationLabCopilot
authored
hotfix on agentscope_agent (#194)
## Description hotfix on agentscope_agent **Related Issue:** Fixes #[issue_number] or Relates to #[issue_number] **Security Considerations:** [If applicable, especially for sandbox changes] ## Type of Change - [x] Bug fix - [ ] New feature - [ ] Breaking change - [ ] Documentation - [ ] Refactoring ## Component(s) Affected - [x] Engine - [ ] Sandbox - [ ] Documentation - [ ] Tests - [ ] CI/CD ## Checklist - [x] Pre-commit hooks pass - [x] Tests pass locally - [x] Documentation updated (if needed) - [x] Ready for review ## Testing [How to test these changes] ## Additional Notes [Optional: any other context] --------- Co-authored-by: Bruce <godot.lzl@alibaba-inc.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a10fab5 commit d956ddb

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/agentscope_runtime/engine/agents/agentscope_agent.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,11 +394,15 @@ async def run_async(
394394
index = None
395395

396396
elif element.get("type") == "tool_result":
397-
json_str = json.dumps(element.get("output"))
397+
json_str = json.dumps(
398+
element.get("output"),
399+
ensure_ascii=False,
400+
)
398401
data_delta_content = DataContent(
399402
index=index,
400403
data=FunctionCallOutput(
401404
call_id=element.get("id"),
405+
name=element.get("name"),
402406
output=json_str,
403407
).model_dump(),
404408
)

0 commit comments

Comments
 (0)