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

Method _state_path

examples/memory/file_session.py:89–90  ·  view source on GitHub ↗
(self, session_id: str)

Source from the content-addressed store, hash-verified

87 return self._dir / f"{session_id}.json"
88
89 def _state_path(self, session_id: str) -> Path:
90 return self._dir / f"{session_id}-state.json"
91
92 async def _read_items(self, session_id: str) -> list[Any]:
93 file_path = self._items_path(session_id)

Callers 3

clear_sessionMethod · 0.95
load_state_jsonMethod · 0.95
save_state_jsonMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected