Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/sessions.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ result2 = await Runner.run(

You can implement your own session memory by creating a class that follows the [`Session`][agents.memory.session.Session] protocol:

````python
```python
from agents.memory import Session
from typing import List

Expand Down Expand Up @@ -206,6 +206,7 @@ result = await Runner.run(
"Hello",
session=MyCustomSession("my_session")
)
```

## Session management

Expand Down Expand Up @@ -245,7 +246,7 @@ result2 = await Runner.run(
"What are my charges?",
session=session
)
````
```

## Complete example

Expand Down