---
type: email
from: Luke Wriglesworth <notifications@github.com>
subject: [openai/openai-agents-python] Docs: Improve example for custom

 Session class implementation. (PR #1582)
received: 2026-03-06 07:14:20
date_header: Mon, 25 Aug 2025 10:44:09 -0700
priority: normal
status: awaiting_approval
uid: 28643
---

## Email Content

**From:** Luke Wriglesworth <notifications@github.com>
**Subject:** [openai/openai-agents-python] Docs: Improve example for custom

 Session class implementation. (PR #1582)
**Date:** Mon, 25 Aug 2025 10:44:09 -0700

### Body (preview)

### Summary



- Removes the unused import of Session

- Update type annotations of MyCustomSession to match the Session protocol



### Test plan



This is a documentation only change.



### Checks



- [ ] I&#39;ve added new tests (if relevant)

- [x] I&#39;ve added/updated the relevant documentation

- [x] I&#39;ve run `make lint` and `make format`

- [x] I&#39;ve made sure tests pass

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



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



-- Commit Summary --



  * Improve example for custom Session class implementation.



-- File Changes --



    M docs/sessions.md (8)



-- Patch Links --



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

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



-- 

Reply to this email directly or view it on GitHub:

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

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



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

---

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