pub enum RawTraceEventPayload {
Show 25 variants
RolloutStarted {
trace_id: String,
root_thread_id: AgentThreadId,
},
RolloutEnded {
status: RolloutStatus,
},
ThreadStarted {
thread_id: AgentThreadId,
agent_path: String,
metadata_payload: Option<RawPayloadRef>,
},
ThreadEnded {
thread_id: AgentThreadId,
status: RolloutStatus,
},
CodexTurnStarted {
codex_turn_id: CodexTurnId,
thread_id: AgentThreadId,
},
CodexTurnEnded {
codex_turn_id: CodexTurnId,
status: ExecutionStatus,
},
InferenceStarted {
inference_call_id: InferenceCallId,
thread_id: AgentThreadId,
codex_turn_id: CodexTurnId,
model: String,
provider_name: String,
request_payload: RawPayloadRef,
},
InferenceCompleted {
inference_call_id: InferenceCallId,
response_id: Option<String>,
upstream_request_id: Option<String>,
response_payload: RawPayloadRef,
},
InferenceFailed {
inference_call_id: InferenceCallId,
upstream_request_id: Option<String>,
error: String,
partial_response_payload: Option<RawPayloadRef>,
},
InferenceCancelled {
inference_call_id: InferenceCallId,
upstream_request_id: Option<String>,
reason: String,
partial_response_payload: Option<RawPayloadRef>,
},
ToolCallStarted {
tool_call_id: ToolCallId,
model_visible_call_id: Option<String>,
code_mode_runtime_tool_id: Option<String>,
requester: RawToolCallRequester,
kind: ToolCallKind,
summary: ToolCallSummary,
invocation_payload: Option<RawPayloadRef>,
},
McpToolCallCorrelationAssigned {
tool_call_id: ToolCallId,
mcp_call_id: McpCallId,
},
ToolCallRuntimeStarted {
tool_call_id: ToolCallId,
runtime_payload: RawPayloadRef,
},
ToolCallRuntimeEnded {
tool_call_id: ToolCallId,
status: ExecutionStatus,
runtime_payload: RawPayloadRef,
},
ToolCallEnded {
tool_call_id: ToolCallId,
status: ExecutionStatus,
result_payload: Option<RawPayloadRef>,
},
CodeCellStarted {
runtime_cell_id: String,
model_visible_call_id: ModelVisibleCallId,
source_js: String,
},
CodeCellInitialResponse {
runtime_cell_id: String,
status: CodeCellRuntimeStatus,
response_payload: Option<RawPayloadRef>,
},
CodeCellEnded {
runtime_cell_id: String,
status: CodeCellRuntimeStatus,
response_payload: Option<RawPayloadRef>,
},
CompactionRequestStarted {
compaction_id: CompactionId,
compaction_request_id: CompactionRequestId,
thread_id: AgentThreadId,
codex_turn_id: CodexTurnId,
model: String,
provider_name: String,
request_payload: RawPayloadRef,
},
CompactionRequestCompleted {
compaction_id: CompactionId,
compaction_request_id: CompactionRequestId,
response_payload: RawPayloadRef,
},
CompactionRequestFailed {
compaction_id: CompactionId,
compaction_request_id: CompactionRequestId,
error: String,
},
CompactionInstalled {
compaction_id: CompactionId,
checkpoint_payload: RawPayloadRef,
},
AgentResultObserved {
edge_id: EdgeId,
child_thread_id: AgentThreadId,
child_codex_turn_id: CodexTurnId,
parent_thread_id: AgentThreadId,
message: String,
carried_payload: Option<RawPayloadRef>,
},
ProtocolEventObserved {
event_type: String,
event_payload: RawPayloadRef,
},
Other {
kind: String,
summary: String,
payloads: Vec<RawPayloadRef>,
metadata: Value,
},
}Expand description
Typed payload for one raw trace event. Typed payload for a raw trace event.
Variants§
RolloutStarted
RolloutEnded
Fields
status: RolloutStatusThreadStarted
ThreadEnded
CodexTurnStarted
CodexTurnEnded
InferenceStarted
Fields
inference_call_id: InferenceCallIdthread_id: AgentThreadIdcodex_turn_id: CodexTurnIdrequest_payload: RawPayloadRefInferenceCompleted
InferenceFailed
Fields
inference_call_id: InferenceCallIdupstream_request_id: Option<String>Provider transport request id, such as x-request-id, when the
provider returned one before the stream failed.
partial_response_payload: Option<RawPayloadRef>Partial response payload, when stream events arrived before failure.
InferenceCancelled
Fields
inference_call_id: InferenceCallIdupstream_request_id: Option<String>Provider transport request id, such as x-request-id, when observed
before Codex stopped consuming the stream.
partial_response_payload: Option<RawPayloadRef>Completed output items observed before cancellation, if any.
ToolCallStarted
Fields
tool_call_id: ToolCallIdmodel_visible_call_id: Option<String>Protocol/model call ID when this runtime call came from model output.
code_mode_runtime_tool_id: Option<String>Code-mode runtime bridge ID when model-authored code issued this call.
requester: RawToolCallRequesterRuntime requester that caused this tool lifecycle.
kind: ToolCallKindsummary: ToolCallSummaryinvocation_payload: Option<RawPayloadRef>McpToolCallCorrelationAssigned
Bridge correlation UUID assigned only when a tool reaches an MCP backend.
ToolCallRuntimeStarted
Fields
tool_call_id: ToolCallIdruntime_payload: RawPayloadRefRuntime/protocol observation for how Codex began executing the tool.
ToolCallRuntimeEnded
Fields
tool_call_id: ToolCallIdstatus: ExecutionStatusruntime_payload: RawPayloadRefRuntime/protocol observation for how Codex finished executing the tool.
ToolCallEnded
CodeCellStarted
Fields
model_visible_call_id: ModelVisibleCallIdCustom tool call id on the model-visible exec item.
CodeCellInitialResponse
CodeCellEnded
CompactionRequestStarted
Fields
compaction_id: CompactionIdcompaction_request_id: CompactionRequestIdthread_id: AgentThreadIdcodex_turn_id: CodexTurnIdrequest_payload: RawPayloadRefCompactionRequestCompleted
Fields
compaction_id: CompactionIdcompaction_request_id: CompactionRequestIdresponse_payload: RawPayloadRefCompactionRequestFailed
CompactionInstalled
Checkpoint installation event for remote-compacted replacement history.
Fields
compaction_id: CompactionIdcheckpoint_payload: RawPayloadRefTrace-only checkpoint payload. Do not route this through public UI protocol.
AgentResultObserved
Multi-agent v2 child-to-parent completion delivery.
Fields
child_thread_id: AgentThreadIdchild_codex_turn_id: CodexTurnIdparent_thread_id: AgentThreadIdcarried_payload: Option<RawPayloadRef>Raw notification payload. This is evidence for the runtime delivery, not the parent-side model-visible item.
ProtocolEventObserved
Existing UI/protocol event wrapped into trace format.
Other
Structured payload for early instrumentation before a dedicated variant exists.
Trait Implementations§
Source§impl Clone for RawTraceEventPayload
impl Clone for RawTraceEventPayload
Source§fn clone(&self) -> RawTraceEventPayload
fn clone(&self) -> RawTraceEventPayload
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RawTraceEventPayload
impl Debug for RawTraceEventPayload
Source§impl<'de> Deserialize<'de> for RawTraceEventPayload
impl<'de> Deserialize<'de> for RawTraceEventPayload
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for RawTraceEventPayload
impl PartialEq for RawTraceEventPayload
Source§impl Serialize for RawTraceEventPayload
impl Serialize for RawTraceEventPayload
impl StructuralPartialEq for RawTraceEventPayload
Auto Trait Implementations§
impl Freeze for RawTraceEventPayload
impl RefUnwindSafe for RawTraceEventPayload
impl Send for RawTraceEventPayload
impl Sync for RawTraceEventPayload
impl Unpin for RawTraceEventPayload
impl UnsafeUnpin for RawTraceEventPayload
impl UnwindSafe for RawTraceEventPayload
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more