Result
ConversationState
Bases: dict[str, Any]
Conversation history through a completed or interrupted turn, ready to resume.
Source code in src/openai_agents/codex/result.py
codex_revision
property
Codex commit that produced this snapshot, or None for older snapshots.
to_json
from_json
classmethod
from_json(data: str | bytes) -> ConversationState
Load a snapshot. The engine validates the history when resuming.
Source code in src/openai_agents/codex/result.py
RunResult
dataclass
Output of one completed turn.
Source code in src/openai_agents/codex/result.py
final_output
instance-attribute
The final assistant message, if the turn produced one.
new_items
instance-attribute
Completed items from this turn, in stream order.
state
class-attribute
instance-attribute
state: ConversationState = field(repr=False)
Snapshot through the end of this turn, ready to pass to another run.