pub struct ContentRecord {Show 18 fields
pub session_id: String,
pub event_uid: String,
pub class: EventClass,
pub success: bool,
pub identity: AgentIdentity,
pub time_ms: u64,
pub event: Value,
pub source: Option<String>,
pub message: Option<Value>,
pub reasoning: Option<String>,
pub model: Option<String>,
pub tool_calls: Option<Value>,
pub observation: Option<Value>,
pub prompt_tokens: Option<u64>,
pub completion_tokens: Option<u64>,
pub finish_reason: Option<String>,
pub attempt_id: Option<String>,
pub terminal: bool,
}Expand description
One journaled step in content form.
Fields§
§session_id: StringAgentVisor session id (the conversation id).
event_uid: StringOCSF event uid of the step.
class: EventClassEvent class of the step.
success: boolTrue when the step’s status is success.
identity: AgentIdentityAgent identity bound to the step.
time_ms: u64When the step was journaled, epoch milliseconds.
event: ValueThe OCSF event as journaled (already redacted when redaction is on).
source: Option<String>Who produced the message: user, agent, or system.
message: Option<Value>The step’s message (input message for a request, output for a response).
reasoning: Option<String>Explicit reasoning text, when the provider returned it.
model: Option<String>Model that produced a response.
tool_calls: Option<Value>Tool calls requested by the model, as JSON.
observation: Option<Value>Tool results or other environment feedback, as JSON.
prompt_tokens: Option<u64>Prompt tokens attributed to the step.
completion_tokens: Option<u64>Completion tokens attributed to the step.
finish_reason: Option<String>Provider-native finish reason.
attempt_id: Option<String>Chat response attempt shared by a request and its response.
terminal: boolTrue for the terminal (response) record of a chat attempt.
Trait Implementations§
Source§impl Clone for ContentRecord
impl Clone for ContentRecord
Source§fn clone(&self) -> ContentRecord
fn clone(&self) -> ContentRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ContentRecord
impl RefUnwindSafe for ContentRecord
impl Send for ContentRecord
impl Sync for ContentRecord
impl Unpin for ContentRecord
impl UnsafeUnpin for ContentRecord
impl UnwindSafe for ContentRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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