pub struct RunStartedEvent {
pub base: BaseEvent,
pub thread_id: ThreadId,
pub run_id: RunId,
pub parent_run_id: Option<RunId>,
pub input: Option<Box<RunAgentInput>>,
}Expand description
The first event of every run.
Fields§
§base: BaseEventTimestamp and raw provider event.
thread_id: ThreadIdThe conversation this run belongs to.
run_id: RunIdThe run that is starting.
parent_run_id: Option<RunId>The run that spawned this one, for nested / delegated agents.
input: Option<Box<RunAgentInput>>The request that started the run, echoed so a recorded stream replays without the original HTTP body.
Boxed: it is the largest payload in the protocol and is usually absent,
so inlining it would bloat every Event.
Implementations§
Trait Implementations§
Source§impl Clone for RunStartedEvent
impl Clone for RunStartedEvent
Source§fn clone(&self) -> RunStartedEvent
fn clone(&self) -> RunStartedEvent
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 ComposeSchema for RunStartedEvent
impl ComposeSchema for RunStartedEvent
Source§impl Debug for RunStartedEvent
impl Debug for RunStartedEvent
Source§impl Default for RunStartedEvent
impl Default for RunStartedEvent
Source§fn default() -> RunStartedEvent
fn default() -> RunStartedEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RunStartedEvent
impl<'de> Deserialize<'de> for RunStartedEvent
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
Source§impl From<RunStartedEvent> for Event
impl From<RunStartedEvent> for Event
Source§fn from(payload: RunStartedEvent) -> Self
fn from(payload: RunStartedEvent) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for RunStartedEvent
impl JsonSchema for RunStartedEvent
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for RunStartedEvent
impl PartialEq for RunStartedEvent
Source§fn eq(&self, other: &RunStartedEvent) -> bool
fn eq(&self, other: &RunStartedEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RunStartedEvent
impl Serialize for RunStartedEvent
impl StructuralPartialEq for RunStartedEvent
Auto Trait Implementations§
impl Freeze for RunStartedEvent
impl RefUnwindSafe for RunStartedEvent
impl Send for RunStartedEvent
impl Sync for RunStartedEvent
impl Unpin for RunStartedEvent
impl UnsafeUnpin for RunStartedEvent
impl UnwindSafe for RunStartedEvent
Blanket Implementations§
impl<T> AgentState for T
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