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 503a6ea commit b2cc08aCopy full SHA for b2cc08a
src/agents/tool.py
@@ -456,6 +456,13 @@ async def _on_invoke_tool(ctx: ToolContext[Any], input: str) -> Any:
456
},
457
)
458
459
+ if _debug.DONT_LOG_TOOL_DATA:
460
+ logger.debug(f"Tool {schema.name} failed")
461
+ else:
462
+ logger.error(
463
+ f"Tool {schema.name} failed: {input} {e}",
464
+ exc_info=e,
465
+ )
466
return result
467
468
return FunctionTool(
0 commit comments