fix tool execution step from tool response

This commit is contained in:
Xi Yan 2025-02-20 21:36:50 -08:00
parent 97f9580b1a
commit 9c40529e93

View file

@ -289,7 +289,7 @@ class ChatAgent(ShieldRunnerMixin):
tool_name=x.tool_name,
content=x.content,
)
for x in in_progress_tool_call_step.tool_responses
for x in request.tool_responses
],
completed_at=datetime.now(),
started_at=(in_progress_tool_call_step.started_at if in_progress_tool_call_step else datetime.now()),