pub enum RemoteTurnEvent {
Show 14 variants
ModelRequestStarted {
protocol_iteration: usize,
},
AssistantProseDelta {
text: String,
},
ReasoningDelta {
text: String,
},
CodeBlockStarted {
language: String,
code: String,
graph_key: Option<String>,
},
CodeBlockCompleted {
language: String,
output: String,
error: Option<String>,
success: bool,
duration_ms: u64,
tool_call_ids: Vec<String>,
graph_key: Option<String>,
},
ToolCallStarted {
call_id: Option<String>,
name: String,
args: Value,
},
ToolCallCompleted {
call_id: Option<String>,
name: String,
args: Value,
output: Value,
duration_ms: u64,
},
SubmittedValue {
value: Value,
},
ToolValue {
tool_name: String,
value: Value,
},
Usage {
protocol_iteration: usize,
usage: RemoteUsage,
cumulative: RemoteUsage,
},
ChildUsage {
session_id: String,
source: String,
model: String,
protocol_iteration: usize,
usage: RemoteUsage,
cumulative: RemoteUsage,
},
RetryStatus {
wait_seconds: u64,
attempt: usize,
max_attempts: usize,
reason: String,
},
RuntimeDiagnostic {
kind: String,
data: Value,
},
Error {
message: String,
},
}Variants§
ModelRequestStarted
AssistantProseDelta
ReasoningDelta
CodeBlockStarted
CodeBlockCompleted
Fields
ToolCallStarted
ToolCallCompleted
SubmittedValue
ToolValue
Usage
ChildUsage
RetryStatus
RuntimeDiagnostic
Error
Trait Implementations§
Source§impl Clone for RemoteTurnEvent
impl Clone for RemoteTurnEvent
Source§fn clone(&self) -> RemoteTurnEvent
fn clone(&self) -> RemoteTurnEvent
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 RemoteTurnEvent
impl Debug for RemoteTurnEvent
Source§impl<'de> Deserialize<'de> for RemoteTurnEvent
impl<'de> Deserialize<'de> for RemoteTurnEvent
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 JsonSchema for RemoteTurnEvent
impl JsonSchema for RemoteTurnEvent
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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 is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for RemoteTurnEvent
impl PartialEq for RemoteTurnEvent
Source§fn eq(&self, other: &RemoteTurnEvent) -> bool
fn eq(&self, other: &RemoteTurnEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RemoteTurnEvent
impl Serialize for RemoteTurnEvent
impl StructuralPartialEq for RemoteTurnEvent
Auto Trait Implementations§
impl Freeze for RemoteTurnEvent
impl RefUnwindSafe for RemoteTurnEvent
impl Send for RemoteTurnEvent
impl Sync for RemoteTurnEvent
impl Unpin for RemoteTurnEvent
impl UnsafeUnpin for RemoteTurnEvent
impl UnwindSafe for RemoteTurnEvent
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