pub struct AgentEventProjectionV1 {Show 19 fields
pub version: u16,
pub event_type: String,
pub payload: Value,
pub metadata: Option<Value>,
pub payload_json: String,
pub metadata_json: Option<String>,
pub data_json: Option<String>,
pub text: Option<String>,
pub tool_name: Option<String>,
pub tool_id: Option<String>,
pub tool_output: Option<String>,
pub exit_code: Option<i32>,
pub turn: Option<usize>,
pub prompt: Option<String>,
pub error: Option<String>,
pub total_tokens: Option<usize>,
pub verification_summary_json: Option<String>,
pub verification_summary_text: Option<String>,
pub error_kind_json: Option<String>,
}Expand description
SDK-facing projection of an envelope.
The canonical fields (version, event_type, payload, metadata) are
lossless. Remaining fields retain the pre-v1 SDK conveniences and are
derived centrally so Node and Python cannot disagree about them.
Fields§
§version: u16§event_type: String§payload: Value§metadata: Option<Value>§payload_json: String§metadata_json: Option<String>§data_json: Option<String>Legacy SDK data view. Events whose payload is not completely
represented by convenience fields keep the full payload here.
Unknown future event types always retain their payload.
text: Option<String>§tool_name: Option<String>§tool_id: Option<String>§tool_output: Option<String>§exit_code: Option<i32>§turn: Option<usize>§prompt: Option<String>§error: Option<String>§total_tokens: Option<usize>§verification_summary_json: Option<String>§verification_summary_text: Option<String>§error_kind_json: Option<String>Trait Implementations§
Source§impl Clone for AgentEventProjectionV1
impl Clone for AgentEventProjectionV1
Source§fn clone(&self) -> AgentEventProjectionV1
fn clone(&self) -> AgentEventProjectionV1
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentEventProjectionV1
impl Debug for AgentEventProjectionV1
Source§impl From<EventEnvelopeV1> for AgentEventProjectionV1
impl From<EventEnvelopeV1> for AgentEventProjectionV1
Source§fn from(envelope: EventEnvelopeV1) -> Self
fn from(envelope: EventEnvelopeV1) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AgentEventProjectionV1
impl PartialEq for AgentEventProjectionV1
impl StructuralPartialEq for AgentEventProjectionV1
Source§impl TryFrom<&AgentEvent> for AgentEventProjectionV1
impl TryFrom<&AgentEvent> for AgentEventProjectionV1
Source§type Error = EventProtocolError
type Error = EventProtocolError
The type returned in the event of a conversion error.
Source§impl TryFrom<AgentEvent> for AgentEventProjectionV1
impl TryFrom<AgentEvent> for AgentEventProjectionV1
Source§type Error = EventProtocolError
type Error = EventProtocolError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for AgentEventProjectionV1
impl RefUnwindSafe for AgentEventProjectionV1
impl Send for AgentEventProjectionV1
impl Sync for AgentEventProjectionV1
impl Unpin for AgentEventProjectionV1
impl UnsafeUnpin for AgentEventProjectionV1
impl UnwindSafe for AgentEventProjectionV1
Blanket Implementations§
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
Mutably borrows from an owned value. Read more
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,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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>
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 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>
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