Skip to content

Commit 39d7058

Browse files
inherit from SessionABC
1 parent c78e9d6 commit 39d7058

File tree

2 files changed

+1927
-1922
lines changed

2 files changed

+1927
-1922
lines changed

src/agents/memory/providers/redis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import json
44
import time
55
from typing import TYPE_CHECKING
6+
from agents.memory.session import SessionABC
67

78
try:
89
import redis.asyncio as redis
@@ -13,7 +14,7 @@
1314
raise ImportError("redis and openai-agents packages are required") from err
1415

1516

16-
class RedisSession:
17+
class RedisSession(SessionABC):
1718
"""Redis-based implementation of session storage.
1819
1920
This implementation stores conversation history in Redis using lists and hashes.

0 commit comments

Comments
 (0)