pub struct AgentChatResponse {
pub conversation_id: Option<String>,
pub session_id: Option<String>,
pub response: AgentMessage,
pub tool_calls: Option<Vec<AgentToolCall>>,
pub usage: Option<AgentUsage>,
}Expand description
Response from agent chat
Fields§
§conversation_id: Option<String>Conversation ID
session_id: Option<String>Session ID
response: AgentMessageAgent response
tool_calls: Option<Vec<AgentToolCall>>Tool calls made by the agent
usage: Option<AgentUsage>Usage statistics
Trait Implementations§
Source§impl Clone for AgentChatResponse
impl Clone for AgentChatResponse
Source§fn clone(&self) -> AgentChatResponse
fn clone(&self) -> AgentChatResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 AgentChatResponse
impl Debug for AgentChatResponse
Source§impl<'de> Deserialize<'de> for AgentChatResponse
impl<'de> Deserialize<'de> for AgentChatResponse
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 AgentChatResponse
impl RefUnwindSafe for AgentChatResponse
impl Send for AgentChatResponse
impl Sync for AgentChatResponse
impl Unpin for AgentChatResponse
impl UnsafeUnpin for AgentChatResponse
impl UnwindSafe for AgentChatResponse
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