Skip to content

Support for short‑term and long‑term memory in Agents SDK #887

Open
@dauvannam1804

Description

@dauvannam1804

Description

I’m exploring how the openai-agents-python framework handles memory management for agents.
In particular, I’d like to understand whether the SDK provides built‑in support for:

  1. Short‑term memory

    • An abstraction or helper to buffer, filter, or automatically summarize recent conversation history before sending prompts to the LLM (similar to LangGraph’s session window).
    • Best practices or recommended patterns for integrating a short‑term memory module (e.g., sliding window, summary chaining).
  2. Long‑term memory

    • A mechanism to persist and retrieve agent memory across multiple sessions or restarts (e.g., vector DB, SQLiteSession).
    • Any existing or planned extensions/plugins that enable long‑term memory the way LangGraph supports both short‑ and long‑term storage.

Context

Questions

  • Is there a roadmap or official plan to add native “memory management” (both short‑term and long‑term) to the SDK?
  • Are there any example integrations or sample extensions (e.g., with a vector database or LangGraph‑style memory layers) that I can reference?
  • If not, what guidance would you offer for implementing a memory solution and contributing it back to the project?

Thank you for any pointers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion about using the SDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions