Skip to main content

TranscriptPayload

Struct TranscriptPayload 

Source
pub struct TranscriptPayload<'a> {
    pub session: IngestEnvelope<'a>,
    pub agent_id: Option<&'a str>,
    pub agent_type: Option<&'a str>,
    pub description: Option<&'a str>,
    pub tool_use_id: Option<&'a str>,
    pub kind: Option<&'a str>,
    pub records: &'a RawValue,
}
Expand description

Ingest body for one transcript file, mirroring tapes’ ingest.TranscriptPayload.

Fields§

§session: IngestEnvelope<'a>

Session the transcript belongs to.

§agent_id: Option<&'a str>

Absent for the main transcript; the subagent id otherwise. Matches Go’s omitempty by omitting None.

§agent_type: Option<&'a str>

Subagent type from agent-<id>.meta.json, omitted when empty.

§description: Option<&'a str>

Task description from agent-<id>.meta.json, omitted when empty.

§tool_use_id: Option<&'a str>

The Task tool_use that forked this subagent — the causal edge the tapes deriver attaches. Omitted when empty.

§kind: Option<&'a str>

Lifecycle qualifier for a Codex sub_agent_activity anchor row.

Some("interacted") marks a re-entry record — a send_message or followup_task aimed at an already-spawned thread, with agent_id the target thread and tool_use_id the triggering call. None means spawn evidence, which is the legacy default and the only thing a transcript file ever is: build_payload therefore always leaves it unset, and an anchor builder sets it through this field directly.

The server keys a raw row’s dedup on the payload bytes and reads the latest version per (session, agent, lifecycle kind), so an interacted row versions separately from the started anchor it shares an agent_id with rather than superseding it. That is also why the field is Option with skip_serializing_if rather than an empty-string sentinel, and why it sits after tool_use_id: a spawn row’s bytes must stay identical to what earlier builds already ingested.

§records: &'a RawValue

The transcript’s JSONL content as a JSON array, verbatim.

Trait Implementations§

Source§

impl<'a> Debug for TranscriptPayload<'a>

Source§

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

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

impl<'a> Serialize for TranscriptPayload<'a>

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

Auto Trait Implementations§

§

impl<'a> Freeze for TranscriptPayload<'a>

§

impl<'a> RefUnwindSafe for TranscriptPayload<'a>

§

impl<'a> Send for TranscriptPayload<'a>

§

impl<'a> Sync for TranscriptPayload<'a>

§

impl<'a> Unpin for TranscriptPayload<'a>

§

impl<'a> UnsafeUnpin for TranscriptPayload<'a>

§

impl<'a> UnwindSafe for TranscriptPayload<'a>

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<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<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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, 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<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