We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3fe4f4 commit 9bcf081Copy full SHA for 9bcf081
src/agents/tool.py
@@ -645,6 +645,13 @@ async def _on_invoke_tool(ctx: ToolContext[Any], input: str) -> Any:
645
},
646
)
647
648
+ if _debug.DONT_LOG_TOOL_DATA:
649
+ logger.debug(f"Tool {schema.name} failed")
650
+ else:
651
+ logger.error(
652
+ f"Tool {schema.name} failed: {input} {e}",
653
+ exc_info=e,
654
+ )
655
return result
656
657
return FunctionTool(
0 commit comments