MCPcopy Index your code
hub / github.com/openai/openai-agents-python / get_items

Method get_items

examples/memory/file_session.py:46–51  ·  view source on GitHub ↗
(self, limit: int | None = None)

Source from the content-addressed store, hash-verified

44 return await self._ensure_session_id()
45
46 async def get_items(self, limit: int | None = None) -> list[Any]:
47 session_id = await self._ensure_session_id()
48 items = await self._read_items(session_id)
49 if limit is not None and limit >= 0:
50 return items[-limit:]
51 return items
52
53 async def add_items(self, items: list[Any]) -> None:
54 if not items:

Callers 5

mainFunction · 0.45
demonstrate_multi_storeFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
run_scenario_stepFunction · 0.45

Calls 2

_ensure_session_idMethod · 0.95
_read_itemsMethod · 0.95

Tested by

no test coverage detected