pub enum ProviderEvent {
Show 19 variants
SessionStarted {
session_id: String,
model: String,
tools: Vec<String>,
},
SessionIdentityObserved {
identity: ProviderSessionIdentity,
},
TurnStarted {
prompt: Option<String>,
},
WorkingObserved,
Text {
text: String,
is_delta: bool,
},
Thinking {
text: String,
},
ToolStarted {
id: String,
name: String,
input_json: String,
agent_id: Option<String>,
},
ToolCompleted {
id: String,
output: String,
is_error: bool,
duration_ms: Option<u64>,
agent_id: Option<String>,
},
TurnCompleted {
usage: TokenUsage,
is_cumulative: bool,
},
ContextWindowUsage {
usage: ContextWindowUsage,
},
TurnInterrupted,
SessionEnded {
result: String,
cost_usd: Option<String>,
is_error: bool,
},
Error {
message: String,
},
Ready,
InteractionRequested {
request_id: Option<String>,
interaction_kind: ProviderInteractionKind,
tool_name: String,
prompt: String,
agent_id: Option<String>,
},
InteractionResolved {
request_id: String,
outcome: ProviderInteractionOutcome,
},
SubagentStarted {
agent_id: String,
agent_type: Option<String>,
description: Option<String>,
},
SubagentStopped {
agent_id: String,
},
RateLimited {
limit_type: String,
resets_at: Option<String>,
usage_percent: Option<String>,
raw_message: String,
},
}Variants§
SessionStarted
SessionIdentityObserved
Fields
§
identity: ProviderSessionIdentityTurnStarted
WorkingObserved
Text
Thinking
ToolStarted
ToolCompleted
TurnCompleted
ContextWindowUsage
Fields
§
usage: ContextWindowUsageTurnInterrupted
SessionEnded
Error
Ready
InteractionRequested
Fields
§
interaction_kind: ProviderInteractionKindInteractionResolved
SubagentStarted
SubagentStopped
RateLimited
Implementations§
Source§impl ProviderEvent
impl ProviderEvent
pub fn validate_ingress(&self) -> Result<(), ProviderEventValidationError>
Trait Implementations§
Source§impl Clone for ProviderEvent
impl Clone for ProviderEvent
Source§fn clone(&self) -> ProviderEvent
fn clone(&self) -> ProviderEvent
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 ProviderEvent
impl Debug for ProviderEvent
Source§impl<'de> Deserialize<'de> for ProviderEvent
impl<'de> Deserialize<'de> for ProviderEvent
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 ProviderEvent
Source§impl PartialEq for ProviderEvent
impl PartialEq for ProviderEvent
Source§impl Serialize for ProviderEvent
impl Serialize for ProviderEvent
impl StructuralPartialEq for ProviderEvent
Auto Trait Implementations§
impl Freeze for ProviderEvent
impl RefUnwindSafe for ProviderEvent
impl Send for ProviderEvent
impl Sync for ProviderEvent
impl Unpin for ProviderEvent
impl UnsafeUnpin for ProviderEvent
impl UnwindSafe for ProviderEvent
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