---
type: email
from: Muhammad Abdullah <notifications@github.com>
subject: [openai/openai-agents-python] Improve SQLiteSession documentation

 with a runnable async example (PR #1431)
received: 2026-03-05 10:03:08
date_header: Tue, 12 Aug 2025 06:00:29 -0700
priority: normal
status: awaiting_approval
uid: 27343
---

## Email Content

**From:** Muhammad Abdullah <notifications@github.com>
**Subject:** [openai/openai-agents-python] Improve SQLiteSession documentation

 with a runnable async example (PR #1431)
**Date:** Tue, 12 Aug 2025 06:00:29 -0700

### Body (preview)

This update improves the SQLiteSession usage example in the documentation by making it a fully runnable script.

Changes include:

- Wrapped async calls inside an `async def main()` function.

- Used `asyncio.run()` for proper async execution.

- Added `if __name__ == &quot;__main__&quot;:` guard for clarity.

- Added comments to guide users and make the snippet beginner-friendly.



This makes it easier for developers (especially those new to async in Python) to run and understand the example without additional setup.



You can view, comment on, or merge this pull request online at:



  https://github.com/openai/openai-agents-python/pull/1431



-- Commit Summary --



  * added instructions to get started with UV

  * docs: make SQLiteSession example runnable with asyncio

  * Merge branch &#39;main&#39; of https://github.com/MuhammadAbdullah95/openai-agents-python

  * docs: make SQLiteSession example runnable with asyncio

  * docs: make SQLiteSession example runnable with asyncio

  * docs: make SQLiteSession example runnable with asyncio

  * docs: make SQLiteSession example runnable with asyncio



-- File Changes --



    M README.md (12)

    M docs/sessions.md (41)



-- Patch Links --



https://github.com/openai/openai-agents-python/pull/1431.patch

https://github.com/openai/openai-agents-python/pull/1431.diff



-- 

Reply to this email directly or view it on GitHub:

https://github.com/openai/openai-agents-python/pull/1431

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



Message ID: &lt;openai/openai-agents-python/pull/1431@github.com&gt;

---

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