pub struct AssistantResponseEvent {
pub session_id: String,
pub turn_id: String,
pub full_text: String,
pub tool_calls: Option<Vec<ToolCall>>,
pub timestamp: DateTime<Utc>,
}Expand description
Event emitted when the assistant produces a complete response.
Fields§
§session_id: String§turn_id: String§full_text: String§tool_calls: Option<Vec<ToolCall>>§timestamp: DateTime<Utc>Trait Implementations§
Source§impl AgentEvent for AssistantResponseEvent
impl AgentEvent for AssistantResponseEvent
Source§fn to_jsonrpc(&self) -> JsonRpcNotification
fn to_jsonrpc(&self) -> JsonRpcNotification
Convert this event into a
JsonRpcNotification.Source§fn session_id(&self) -> String
fn session_id(&self) -> String
Return the session ID associated with this event.
Source§impl Clone for AssistantResponseEvent
impl Clone for AssistantResponseEvent
Source§fn clone(&self) -> AssistantResponseEvent
fn clone(&self) -> AssistantResponseEvent
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 AssistantResponseEvent
impl Debug for AssistantResponseEvent
Source§impl<'de> Deserialize<'de> for AssistantResponseEvent
impl<'de> Deserialize<'de> for AssistantResponseEvent
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
Auto Trait Implementations§
impl Freeze for AssistantResponseEvent
impl RefUnwindSafe for AssistantResponseEvent
impl Send for AssistantResponseEvent
impl Sync for AssistantResponseEvent
impl Unpin for AssistantResponseEvent
impl UnsafeUnpin for AssistantResponseEvent
impl UnwindSafe for AssistantResponseEvent
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