Required. Python code which will be invoked in tool fake mode.
Expected Python function signature -
To catch all tool calls:
def fake_tool_call(tool: Tool, input: dict[str, Any],
callback_context: CallbackContext) -> Optional[dict[str, Any]]:
To catch a specific tool call:
def fake_{tool_id}(tool: Tool, input: dict[str, Any],
callback_context: CallbackContext) -> Optional[dict[str, Any]]:
If the function returns None, the real tool will be invoked instead.
Required. Python code which will be invoked in tool fake mode.
Expected Python function signature -
To catch all tool calls:
def fake_tool_call(tool: Tool, input: dict[str, Any],
callback_context: CallbackContext) -> Optional[dict[str, Any]]:
To catch a specific tool call:
def fake_{tool_id}(tool: Tool, input: dict[str, Any],
callback_context: CallbackContext) -> Optional[dict[str, Any]]:
If the function returns None, the real tool will be invoked instead.
Required. Python code which will be invoked in tool fake mode.
Expected Python function signature -
To catch all tool calls:
def fake_tool_call(tool: Tool, input: dict[str, Any],
callback_context: CallbackContext) -> Optional[dict[str, Any]]:
To catch a specific tool call:
def fake_{tool_id}(tool: Tool, input: dict[str, Any],
callback_context: CallbackContext) -> Optional[dict[str, Any]]:
If the function returns None, the real tool will be invoked instead.
Required. Python code which will be invoked in tool fake mode.
Expected Python function signature -
To catch all tool calls:
def fake_tool_call(tool: Tool, input: dict[str, Any],
callback_context: CallbackContext) -> Optional[dict[str, Any]]:
To catch a specific tool call:
def fake_{tool_id}(tool: Tool, input: dict[str, Any],
callback_context: CallbackContext) -> Optional[dict[str, Any]]:
If the function returns None, the real tool will be invoked instead.
Required. Python code which will be invoked in tool fake mode.
Expected Python function signature -
To catch all tool calls:
def fake_tool_call(tool: Tool, input: dict[str, Any],
callback_context: CallbackContext) -> Optional[dict[str, Any]]:
To catch a specific tool call:
def fake_{tool_id}(tool: Tool, input: dict[str, Any],
callback_context: CallbackContext) -> Optional[dict[str, Any]]:
If the function returns None, the real tool will be invoked instead.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-06-17 UTC."],[],[]]