pub struct ToolCallMessage {
pub message_type: String,
pub id: String,
pub label: String,
pub icon: Icon,
pub status: ToolCallStatus,
pub tool_name: Option<String>,
pub content: Option<ToolCallContent>,
pub locations: Option<Vec<ToolCallLocation>>,
pub confirmation: Option<ToolCallConfirmation>,
pub agent_id: Option<String>,
pub agent_info: Option<AgentInfo>,
}Expand description
Tool call message
Fields§
§message_type: StringThe type of the message (always “tool_call”)
id: StringThe ID of the tool call
label: StringThe label of the tool call
icon: IconThe icon of the tool call
status: ToolCallStatusThe status of the tool call
tool_name: Option<String>The name of the tool (optional)
content: Option<ToolCallContent>The content of the tool call (optional)
locations: Option<Vec<ToolCallLocation>>The locations of the tool call (optional)
confirmation: Option<ToolCallConfirmation>The confirmation details of the tool call (optional)
agent_id: Option<String>The agent ID (optional)
agent_info: Option<AgentInfo>The agent information (optional)
Implementations§
Source§impl ToolCallMessage
impl ToolCallMessage
Trait Implementations§
Source§impl Clone for ToolCallMessage
impl Clone for ToolCallMessage
Source§fn clone(&self) -> ToolCallMessage
fn clone(&self) -> ToolCallMessage
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 ToolCallMessage
impl Debug for ToolCallMessage
Source§impl<'de> Deserialize<'de> for ToolCallMessage
impl<'de> Deserialize<'de> for ToolCallMessage
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 ToolCallMessage
impl RefUnwindSafe for ToolCallMessage
impl Send for ToolCallMessage
impl Sync for ToolCallMessage
impl Unpin for ToolCallMessage
impl UnwindSafe for ToolCallMessage
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