samples-python
samples-python copied to clipboard
[Feature Request] Add OpenAI Agents Memory Examples
Is your feature request related to a problem? Please describe.
Add samples based on OpenAI Agents SDK memory examples.
Describe the solution you'd like
- Wrap
sqlalchemy_session_example.py. Run it in an activity and add transactional protections to ensure idempotence. - Native PostgreSQL implementation similar to
advanced_sqlite_session_example.py. - OpenAI Conversations implementation similar to
openai_session_example.py. We should be able to useconversation_id, which was added recently, to make this more efficient.
Additional context
Preliminary work is on the branch openai/session