Idea: Portable Experience Memory for OpenAI Python SDK #3597
Kaushalt2004
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I’d like to propose an optional experience-memory interface for the OpenAI Python SDK.
The OpenAI APIs make it possible to build agents and long-running applications, but developers still need to build their own layer for preserving and reusing useful experience from previous tasks.
I think there is an interesting distinction between conversation history and experience.
Conversation history answers:
"What happened in the previous interaction?"
Experience answers:
"What did the system learn from completing that task that could help with a future task?"
For example, an application may use the OpenAI API to solve a difficult coding problem:
A future request could retrieve that experience before execution.
A simple abstraction could look conceptually like:
The SDK would not need to implement a specific database or memory vendor. Instead, it could expose a small interface/protocol that developers and third-party memory systems can implement.
The experience record could contain things such as:
For example:
The important part is that this would NOT require storing hidden chain-of-thought or transferring model weights. The transferable object would be structured, user-visible information derived from completed work.
Why this could be useful
This would allow experience to move beyond a single conversation or application instance.
For example:
This could be particularly useful for:
The underlying OpenAI model remains unchanged. The experience layer simply gives future requests access to relevant, validated lessons from previous work.
I have been experimenting with this concept in CogniCore, an open-source cognitive infrastructure project for AI agents:
https://github.com/cognicore-dev/cognicore-my-openenv
The project explores episodic, semantic, and procedural memory, reflection, and experience reuse.
I'm not suggesting that the OpenAI Python SDK should become a complete memory database. Rather, I think a small, provider-agnostic interface or extension point could make it much easier for applications to add portable experience memory while allowing different implementations underneath.
I'd be interested in hearing whether the community sees value in a standardized experience-memory interface at the SDK/application layer, and what the most appropriate API design would look like.
All reactions