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

Method get_session_id

examples/memory/file_session.py:42–44  ·  view source on GitHub ↗

Return the session id, creating one if needed.

(self)

Source from the content-addressed store, hash-verified

40 return self.session_id
41
42 async def get_session_id(self) -> str:
43 """Return the session id, creating one if needed."""
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()

Callers 2

mainFunction · 0.95

Calls 1

_ensure_session_idMethod · 0.95

Tested by

no test coverage detected