cookbook/02_agents/04_tools/README.md
Examples for callable tool factories, tool choice, and tool call limits.
01_callable_tools.py - Vary the toolset per user role using callable factories.02_session_state_tools.py - Use session_state directly as a parameter with caching disabled.03_team_callable_members.py - Assemble team members dynamically.04_tools_with_literal_type_param.py - Use typing.Literal for tool parameters with predefined values.tool_call_limit.py - Limit the number of tool calls per run.tool_choice.py - Control which tool the agent selects.direnv allow (including OPENAI_API_KEY)../scripts/demo_setup.sh, then run cookbooks with .venvs/demo/bin/python..venvs/demo/bin/python cookbook/02_agents/04_tools/<file>.py