Skip to content

Commit b6a038c

Browse files
committed
fix tool call for async to be same as sync
1 parent b611da3 commit b6a038c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • sdk/ai/azure-ai-agents/azure/ai/agents/models

sdk/ai/azure-ai-agents/azure/ai/agents/models/_patch.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1344,7 +1344,8 @@ async def execute_tool_calls(self, tool_calls: List[Any]) -> Any:
13441344
}
13451345
tool_outputs.append(tool_output)
13461346
except Exception as e: # pylint: disable=broad-exception-caught
1347-
logging.error("Failed to execute tool call %s: %s", tool_call, e)
1347+
tool_output = {"tool_call_id": tool_call.id, "output": str(e)}
1348+
tool_outputs.append(tool_output)
13481349

13491350
return tool_outputs
13501351

0 commit comments

Comments
 (0)