Skip to main content
This example mirrors the advanced workflow in our Cookbook. Steps covered:
  • Tool planning and selection
  • Multi-step execution with intermediate state
  • Error handling and retries
Open the linked file for the full runnable script.

Kickoff request (pattern)

The assistant will orchestrate multiple tools in sequence; send back function_call_result blocks as each step completes.
View source on GitHub → 4_advanced_workflow.py