0

Conversation Management

awesome-llm-apps4_2_conversation_management

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 SQLiteSession for memory management
  • Conversation Context: Maintaining state across multiple turns
  • Thread Management: Different approaches to conversation flow

๐Ÿš€ Quick Start

  1. Install OpenAI Agents SDK:

    pip install openai-agents
    
  2. Set up environment:

    cp ../env.example .env
    # Edit .env and add your OpenAI API key
    
  3. 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

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)