Skip to content

Commit 7e6f945

Browse files
committed
fix
1 parent 8d23f28 commit 7e6f945

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/agents/memory/openai_session.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from token import OP
12
from typing import Optional
23

34
from openai import AsyncOpenAI
@@ -65,7 +66,7 @@ async def add_items(self, items: list[TResponseInputItem]) -> None:
6566
items=items,
6667
)
6768

68-
async def pop_item(self) -> TResponseInputItem | None:
69+
async def pop_item(self) -> Optional[TResponseInputItem]:
6970
await self._ensure_session_id()
7071
items = await self.get_items(limit=1)
7172
if not items:

0 commit comments

Comments
 (0)