pub struct ExternalToolRequestedData {
pub arguments: Option<Value>,
pub request_id: RequestId,
pub session_id: SessionId,
pub tool_call_id: String,
pub tool_name: String,
pub traceparent: Option<String>,
pub tracestate: Option<String>,
}Expand description
External tool invocation request for client-side tool execution
Fields§
§arguments: Option<Value>Arguments to pass to the external tool
request_id: RequestIdUnique identifier for this request; used to respond via session.respondToExternalTool()
session_id: SessionIdSession ID that this external tool request belongs to
tool_call_id: StringTool call ID assigned to this external tool invocation
tool_name: StringName of the external tool to invoke
traceparent: Option<String>W3C Trace Context traceparent header for the execute_tool span
tracestate: Option<String>W3C Trace Context tracestate header for the execute_tool span
Trait Implementations§
Source§impl Clone for ExternalToolRequestedData
impl Clone for ExternalToolRequestedData
Source§fn clone(&self) -> ExternalToolRequestedData
fn clone(&self) -> ExternalToolRequestedData
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 ExternalToolRequestedData
impl Debug for ExternalToolRequestedData
Source§impl<'de> Deserialize<'de> for ExternalToolRequestedData
impl<'de> Deserialize<'de> for ExternalToolRequestedData
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 ExternalToolRequestedData
impl RefUnwindSafe for ExternalToolRequestedData
impl Send for ExternalToolRequestedData
impl Sync for ExternalToolRequestedData
impl Unpin for ExternalToolRequestedData
impl UnsafeUnpin for ExternalToolRequestedData
impl UnwindSafe for ExternalToolRequestedData
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