A ready-to-run example is available here!
Pausing Execution
Pause the agent from another thread or after a delay usingconversation.pause(), and
Resume the paused conversation after performing operations by calling conversation.run() again.
Ready-to-run Example
This example is available on GitHub: examples/01_standalone_sdk/09_pause_example.py
conversation.pause():
examples/01_standalone_sdk/09_pause_example.py
The model name should follow the LiteLLM convention:
provider/model_name (e.g., anthropic/claude-sonnet-4-5-20250929, openai/gpt-4o).
The LLM_API_KEY should be the API key for your chosen provider.Next Steps
- Persistence - Save and restore conversation state
- Send Message While Processing - Interrupt running agents

