pub struct RunEvent {
pub seq: u64,
pub ts_ms: u64,
pub kind: RunEventKind,
pub text: String,
pub turn: Option<u32>,
pub status: Option<String>,
pub job: Option<String>,
pub risk: Option<String>,
pub by: Option<String>,
}Expand description
One entry of a run’s activity log. Text is display-only: agent messages and short tool lines with credential-like values redacted, never tool output.
Fields§
§seq: u64Its position in the log, from 1.
ts_ms: u64When it happened, in Unix milliseconds.
kind: RunEventKindWhat it records.
text: StringIts text: the message line, tool line, prompt, summary, or note.
turn: Option<u32>The conversation turn it belongs to.
status: Option<String>How a turn or run ended, or an approval was answered (approved,
denied).
job: Option<String>The background job a turn serves.
risk: Option<String>An approval request’s risk.
by: Option<String>Reserved for who sent a turn’s prompt or answered an approval:
model, owner, or policy. Logs omit it until a writer records
that actor.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunEvent
impl<'de> Deserialize<'de> for RunEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RunEvent
impl StructuralPartialEq for RunEvent
Auto Trait Implementations§
impl Freeze for RunEvent
impl RefUnwindSafe for RunEvent
impl Send for RunEvent
impl Sync for RunEvent
impl Unpin for RunEvent
impl UnsafeUnpin for RunEvent
impl UnwindSafe for RunEvent
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