---
type: email
from: Aidan <notifications@github.com>
subject: Re: [openai/openai-agents-python] Initial pass at PostgreSQL session

 management (PR #1163)
received: 2026-03-05 09:56:26
date_header: Sat, 09 Aug 2025 21:28:57 -0700
priority: normal
status: awaiting_approval
uid: 27008
---

## Email Content

**From:** Aidan <notifications@github.com>
**Subject:** Re: [openai/openai-agents-python] Initial pass at PostgreSQL session

 management (PR #1163)
**Date:** Sat, 09 Aug 2025 21:28:57 -0700

### Body (preview)

@artificial-aidan commented on this pull request.







> +    message_data: TResponseInputItem

+

+

+class PostgreSQLSession(Session):

+    """PostgreSQL-based implementation of session storage.

+

+    This implementation stores conversation history in a PostgreSQL database.

+    Requires psycopg to be installed.

+    """

+

+    pool: AsyncConnectionPool

+

+    def __init__(

+        self,

+        session_id: str,

+        pool: AsyncConnectionPool,



How could it be created? That was the intention of the `from_connection_string` classmethod



-- 

Reply to this email directly or view it on GitHub:

https://github.com/openai/openai-agents-python/pull/1163#discussion_r2265108736

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



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

---

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