pub enum AiderStreamJsonEvent {
Init {
session_id: String,
model: String,
raw: Value,
},
Message {
role: String,
content: String,
delta: bool,
raw: Value,
},
ToolUse {
tool_name: String,
tool_id: String,
parameters: Value,
raw: Value,
},
ToolResult {
tool_id: String,
status: String,
output: Option<String>,
error: Option<AiderToolResultError>,
raw: Value,
},
Error {
severity: String,
message: String,
raw: Value,
},
Result {
payload: AiderStreamJsonResultPayload,
},
Unknown {
event_type: String,
raw: Value,
},
}Variants§
Init
Message
ToolUse
ToolResult
Fields
§
error: Option<AiderToolResultError>Error
Result
Fields
§
payload: AiderStreamJsonResultPayloadUnknown
Implementations§
Trait Implementations§
Source§impl Clone for AiderStreamJsonEvent
impl Clone for AiderStreamJsonEvent
Source§fn clone(&self) -> AiderStreamJsonEvent
fn clone(&self) -> AiderStreamJsonEvent
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 AiderStreamJsonEvent
impl Debug for AiderStreamJsonEvent
Source§impl PartialEq for AiderStreamJsonEvent
impl PartialEq for AiderStreamJsonEvent
Source§fn eq(&self, other: &AiderStreamJsonEvent) -> bool
fn eq(&self, other: &AiderStreamJsonEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AiderStreamJsonEvent
impl StructuralPartialEq for AiderStreamJsonEvent
Auto Trait Implementations§
impl Freeze for AiderStreamJsonEvent
impl RefUnwindSafe for AiderStreamJsonEvent
impl Send for AiderStreamJsonEvent
impl Sync for AiderStreamJsonEvent
impl Unpin for AiderStreamJsonEvent
impl UnsafeUnpin for AiderStreamJsonEvent
impl UnwindSafe for AiderStreamJsonEvent
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