Tools

Configure team and member tools, tool hooks, tool choice, and call limits.

ExampleDescription
Post Hook OutputDemonstrates output validation and transformation post-hooks for team runs.
Pre Hook InputDemonstrates input validation and transformation pre-hooks for team runs.
Stream HookDemonstrates post-hook notifications after team response generation.
Async ToolsDemonstrates async team execution with mixed research and scraping tools.
Custom ToolsDemonstrates a team using a custom FAQ tool plus web-search fallback.
Member Tool HooksDemonstrates permission-aware tool hooks that gate member delegation.
Tool HooksDemonstrates team/member tool hooks for logging delegation and tool execution timing.
Async Toolkit ContextDemonstrates that async-only toolkit functions are correctly included in the team system message when add_member_tools_to_context=True.
Member InformationDemonstrates enabling the get_member_information_tool capability on a Team.
Message History In Tool HooksAccess the current run's message history inside tool hooks in a team via run_context.messages.
Tool Call LimitDemonstrates constraining how many tool calls a Team can make in a single run.
Tool ChoiceDemonstrates using tool_choice to force the Team to execute a specific tool.