Demonstrates manual conversation threading with to_input_list() and automatic management with Sessions.
Sign in to save downloads to your library and vote.
Preview
Conversation Management
Demonstrates manual conversation threading with to_input_list() and automatic management with Sessions.
๐ฏ What This Demonstrates
- Manual Threading: Using
result.to_input_list()for conversation history - Automatic Sessions: Using
SQLiteSessionfor memory management - Conversation Context: Maintaining state across multiple turns
- Thread Management: Different approaches to conversation flow
๐ Quick Start
-
Install OpenAI Agents SDK:
pip install openai-agents -
Set up environment:
cp ../env.example .env # Edit .env and add your OpenAI API key -
Run the agent:
import asyncio from agent import manual_conversation_example, session_conversation_example # Test manual conversation management asyncio.run(manual_conversation_example())
๐ก Key Concepts
- to_input_list(): Manual conversation history management
- SQLiteSession: Automatic conversation persistence
- Context Preservation: Maintaining conversation state
- Session Storage: In-memory vs persistent storage
๐ Next Steps
- Execution Methods - Basic execution patterns
- Streaming Events - Real-time processing
Ingestion metadata
- Source catalog
- awesome-llm-apps
- Repository
- Shubhamsaboo/awesome-llm-apps ยท main
- File path
- ai_agent_framework_crash_course/openai_sdk_crash_course/4_running_agents/4_2_conversation_management/README.md
- Last refreshed
- 7/23/2026, 10:39:09 PM (4h ago)
- Refresh schedule
- Daily ยท 03:00 UTC
- Dedupe status
- Unique ยท deduped by (source, url)