pub enum TraceEvent {
TaskStarted {
task_id: String,
description: String,
},
ToolCalled {
task_id: Option<String>,
name: String,
summary: Option<String>,
arguments: Option<Value>,
},
ToolReturned {
task_id: Option<String>,
name: String,
succeeded: bool,
result: String,
},
Failed {
task_id: Option<String>,
message: String,
tool: Option<String>,
},
TaskEnded {
task_id: String,
outcome: TaskEnding,
duration_secs: f64,
},
UserMessage {
content: String,
at: DateTime<Utc>,
owner_authored: bool,
},
DecisionPoint(DecisionPoint),
}Expand description
One event of a session’s task history, as the host recorded it.
Variants§
TaskStarted
ToolCalled
Fields
ToolReturned
Failed
An error the run hit (with the tool involved, if any).
TaskEnded
UserMessage
A message from the user. A host leaves out the ones it wrote itself (continuations of a run, for example).
Fields
The owner wrote it: their role, not a mandate worker, and not wrapped untrusted external data. Only such a message can make a remembered fact owner-stated.
DecisionPoint(DecisionPoint)
A check the run went through.
Trait Implementations§
Source§impl Clone for TraceEvent
impl Clone for TraceEvent
Source§impl Debug for TraceEvent
impl Debug for TraceEvent
Source§impl PartialEq for TraceEvent
impl PartialEq for TraceEvent
impl StructuralPartialEq for TraceEvent
Auto Trait Implementations§
impl Forget for TraceEvent
impl Freeze for TraceEvent
impl Move for TraceEvent
impl RefUnwindSafe for TraceEvent
impl Send for TraceEvent
impl Sync for TraceEvent
impl Unpin for TraceEvent
impl UnsafeUnpin for TraceEventwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for TraceEventwhere
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
NonZero<i32>: UnwindSafe,
Utc: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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