D3: ADK Tools & Callbacks
Google Cloud Professional Agentic Architect exam practice questions · 11 flashcards
Question
What is a FunctionTool?
1 / 11
Tip: Space flips the card, ← / → navigate.
Show all 11 ADK Tools & Callbacks practice questions and answers
- What is a FunctionTool?A Python function exposed as a tool; its docstring and signature describe it to the model.
- What is an AgentTool?Wraps another agent so it can be called like a tool.
- Sub-agent transfer vs AgentTool?Transfer hands control to the sub-agent; AgentTool calls it and returns the result to the caller.
- Built-in ADK tools examples?Google Search grounding and code execution.
- What is MCPToolset?Connects an ADK agent to tools exposed by an MCP server.
- What is OpenAPIToolset?Generates tools from an OpenAPI specification.
- What are callbacks?Hooks before/after agent, model and tool calls to inspect, modify or block behavior.
- Use case for before_tool_callback?Validate arguments or block disallowed actions.
- Use case for after_model_callback?Filter or reformat model output.
- What is a long-running function tool?A tool for operations that take time or require human approval.
- Why write good tool docstrings?The model chooses and calls tools based on them.