Pass exception to the content

Signed-off-by: Casper Guldbech Nielsen <scni@novonordisk.com>
This commit is contained in:
Casper Guldbech Nielsen 2025-05-03 23:13:32 +02:00
parent 37d3b79d44
commit fc383a1c5d
No known key found for this signature in database
GPG Key ID: B004583B52B9A446
1 changed files with 1 additions and 2 deletions

View File

@ -400,12 +400,11 @@ class AssistantAgent(AgentWorkflowBase):
except (ToolError, AgentToolExecutorError) as e:
logger.info(f"####### '{e}'")
logger.info(f"####### '{result}'")
workflow_tool_message = {
"tool_call_id": tool_call.get("id"),
"function_name": function_name,
"function_args": function_args,
"content": str(result),
"content": str(e),
}
# Update workflow state and agent tool history
await self.update_workflow_state(