MCPcopy Index your code
hub / github.com/openai/openai-agents-python / _log_function_tool_invocation

Function _log_function_tool_invocation

src/agents/tool.py:1601–1606  ·  view source on GitHub ↗

Log the start of a tool invocation with the current redaction policy.

(*, tool_name: str, input_json: str)

Source from the content-addressed store, hash-verified

1599
1600
1601def _log_function_tool_invocation(*, tool_name: str, input_json: str) -> None:
1602 """Log the start of a tool invocation with the current redaction policy."""
1603 if _debug.DONT_LOG_TOOL_DATA:
1604 logger.debug(f"Invoking tool {tool_name}")
1605 else:
1606 logger.debug(f"Invoking tool {tool_name} with input {input_json}")
1607
1608
1609def default_tool_error_function(ctx: RunContextWrapper[Any], error: Exception) -> str:

Callers 2

_run_agent_implMethod · 0.85
_on_invoke_tool_implFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected