Skip to main content

RawTraceEventPayload

Enum RawTraceEventPayload 

Source
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

Fields

§trace_id: String
§root_thread_id: AgentThreadId
§

RolloutEnded

Fields

§

ThreadStarted

Fields

§thread_id: AgentThreadId
§agent_path: String

Stable agent path.

§metadata_payload: Option<RawPayloadRef>
§

ThreadEnded

Fields

§thread_id: AgentThreadId
§

CodexTurnStarted

Fields

§codex_turn_id: CodexTurnId
§thread_id: AgentThreadId
§

CodexTurnEnded

Fields

§codex_turn_id: CodexTurnId
§

InferenceStarted

Fields

§inference_call_id: InferenceCallId
§thread_id: AgentThreadId
§codex_turn_id: CodexTurnId
§model: String
§provider_name: String
§request_payload: RawPayloadRef
§

InferenceCompleted

Fields

§inference_call_id: InferenceCallId
§response_id: Option<String>

Responses API response.id; used by previous_response_id.

§upstream_request_id: Option<String>

Provider transport request id, such as x-request-id.

§response_payload: RawPayloadRef
§

InferenceFailed

Fields

§inference_call_id: InferenceCallId
§upstream_request_id: Option<String>

Provider transport request id, such as x-request-id, when the provider returned one before the stream failed.

§error: String
§partial_response_payload: Option<RawPayloadRef>

Partial response payload, when stream events arrived before failure.

§

InferenceCancelled

Fields

§inference_call_id: InferenceCallId
§upstream_request_id: Option<String>

Provider transport request id, such as x-request-id, when observed before Codex stopped consuming the stream.

§reason: String

Why Codex stopped consuming the provider stream before a terminal response event.

§partial_response_payload: Option<RawPayloadRef>

Completed output items observed before cancellation, if any.

§

ToolCallStarted

Fields

§tool_call_id: ToolCallId
§model_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: RawToolCallRequester

Runtime requester that caused this tool lifecycle.

§invocation_payload: Option<RawPayloadRef>
§

McpToolCallCorrelationAssigned

Bridge correlation UUID assigned only when a tool reaches an MCP backend.

Fields

§tool_call_id: ToolCallId
§mcp_call_id: McpCallId
§

ToolCallRuntimeStarted

Fields

§tool_call_id: ToolCallId
§runtime_payload: RawPayloadRef

Runtime/protocol observation for how Codex began executing the tool.

§

ToolCallRuntimeEnded

Fields

§tool_call_id: ToolCallId
§runtime_payload: RawPayloadRef

Runtime/protocol observation for how Codex finished executing the tool.

§

ToolCallEnded

Fields

§tool_call_id: ToolCallId
§result_payload: Option<RawPayloadRef>
§

CodeCellStarted

Fields

§runtime_cell_id: String

Runtime-local handle allocated by code mode for waits and nested tools.

§model_visible_call_id: ModelVisibleCallId

Custom tool call id on the model-visible exec item.

§source_js: String

JavaScript source after the public exec wrapper has been parsed.

§

CodeCellInitialResponse

Fields

§runtime_cell_id: String

Runtime-local handle, matching CodeCellStarted.

§response_payload: Option<RawPayloadRef>
§

CodeCellEnded

Fields

§runtime_cell_id: String

Runtime-local handle, matching CodeCellStarted.

§response_payload: Option<RawPayloadRef>
§

CompactionRequestStarted

Fields

§compaction_id: CompactionId
§compaction_request_id: CompactionRequestId
§thread_id: AgentThreadId
§codex_turn_id: CodexTurnId
§model: String
§provider_name: String
§request_payload: RawPayloadRef
§

CompactionRequestCompleted

Fields

§compaction_id: CompactionId
§compaction_request_id: CompactionRequestId
§response_payload: RawPayloadRef
§

CompactionRequestFailed

Fields

§compaction_id: CompactionId
§compaction_request_id: CompactionRequestId
§error: String
§

CompactionInstalled

Checkpoint installation event for remote-compacted replacement history.

Fields

§compaction_id: CompactionId
§checkpoint_payload: RawPayloadRef

Trace-only checkpoint payload. Do not route this through public UI protocol.

§

AgentResultObserved

Multi-agent v2 child-to-parent completion delivery.

Fields

§edge_id: EdgeId
§child_thread_id: AgentThreadId
§child_codex_turn_id: CodexTurnId
§parent_thread_id: AgentThreadId
§message: String
§carried_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.

Fields

§event_type: String
§event_payload: RawPayloadRef
§

Other

Structured payload for early instrumentation before a dedicated variant exists.

Fields

§kind: String
§summary: String
§payloads: Vec<RawPayloadRef>
§metadata: Value

Small structured metadata. Large data belongs in payloads.

Trait Implementations§

Source§

impl Clone for RawTraceEventPayload

Source§

fn clone(&self) -> RawTraceEventPayload

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RawTraceEventPayload

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for RawTraceEventPayload

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for RawTraceEventPayload

Source§

fn eq(&self, other: &RawTraceEventPayload) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for RawTraceEventPayload

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for RawTraceEventPayload

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> RamaFrom<T> for U
where U: From<T>,

Source§

fn rama_from(value: T) -> U

Source§

impl<T, U, CrateMarker> RamaInto<U, CrateMarker> for T
where U: RamaFrom<T, CrateMarker>,

Source§

fn rama_into(self) -> U

Source§

impl<T, U> RamaTryFrom<T> for U
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

Source§

fn rama_try_from(value: T) -> Result<U, <U as RamaTryFrom<T>>::Error>

Source§

impl<T, U, CrateMarker> RamaTryInto<U, CrateMarker> for T
where U: RamaTryFrom<T, CrateMarker>,

Source§

type Error = <U as RamaTryFrom<T, CrateMarker>>::Error

Source§

fn rama_try_into(self) -> Result<U, <U as RamaTryFrom<T, CrateMarker>>::Error>

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more