Log the start of a tool invocation with the current redaction policy.
(*, tool_name: str, input_json: str)
| 1599 | |
| 1600 | |
| 1601 | def _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 | |
| 1609 | def default_tool_error_function(ctx: RunContextWrapper[Any], error: Exception) -> str: |
no outgoing calls
no test coverage detected