mirror of https://github.com/dapr/dapr-agents.git
Pass exception to the content
Signed-off-by: Casper Guldbech Nielsen <scni@novonordisk.com>
This commit is contained in:
parent
37d3b79d44
commit
fc383a1c5d
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue