Update docs/en/samples/pre_post_processing/python/adk/agent.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
Twisha Bansal
2026-02-09 11:22:51 +05:30
committed by GitHub
parent 3665b78a4b
commit b0947b2adc

View File

@@ -25,7 +25,7 @@ SYSTEM_PROMPT = """
# Pre processing
async def before_tool_callback(
tool: ToolboxTool, args: Dict[str, Any], tool_context: ToolContext
) -> Dict[str, Any]:
) -> Optional[Dict[str, Any]]:
"""
Callback fired before a tool is executed.
Enforces business logic: Max stay duration is 14 days.