---
type: email
from: Hassan Abu Alhaj <notifications@github.com>
subject: Re: [openai/openai-agents-python] Add SQLAlchemy session backend for

 conversation history management (PR #1357)
received: 2026-03-05 10:13:37
date_header: Thu, 21 Aug 2025 07:05:30 -0700
priority: normal
status: awaiting_approval
uid: 28291
---

## Email Content

**From:** Hassan Abu Alhaj <notifications@github.com>
**Subject:** Re: [openai/openai-agents-python] Add SQLAlchemy session backend for

 conversation history management (PR #1357)
**Date:** Thu, 21 Aug 2025 07:05:30 -0700

### Body (preview)

@habema commented on this pull request.







> +        Parameters

+        ----------

+        session_id

+            Conversation ID.

+        url

+            Any SQLAlchemy async URL – e.g. ``"postgresql+asyncpg://user:pass@host/db"``.

+        engine_kwargs

+            Additional kwargs forwarded to :pyfunc:`sqlalchemy.ext.asyncio.create_async_engine`.

+        kwargs

+            Forwarded to the main constructor (``create_tables``, custom table names, …).

+        """

+        engine_kwargs = engine_kwargs or {}

+        engine = create_async_engine(url, **engine_kwargs)

+        return cls(session_id, engine=engine, **kwargs)

+

+    def _serialize_item(self, item: TResponseInputItem) -> str:



that makes sense, done



-- 

Reply to this email directly or view it on GitHub:

https://github.com/openai/openai-agents-python/pull/1357#discussion_r2291179208

You are receiving this because you are subscribed to this thread.



Message ID: <openai/openai-agents-python/pull/1357/review/3140848731@github.com>

---

## Suggested Actions
- [ ] Reply
- [ ] Archive
- [ ] Escalate
