pub struct CurrentToolMetadata {
pub defer_loading: Option<bool>,
pub description: String,
pub input_schema: Option<HashMap<String, Value>>,
pub mcp_server_name: Option<String>,
pub mcp_tool_name: Option<String>,
pub name: String,
pub namespaced_name: Option<String>,
}Expand description
Lightweight metadata for a currently initialized session tool
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§defer_loading: Option<bool>Whether the tool is loaded on demand via tool search
description: StringTool description
input_schema: Option<HashMap<String, Value>>JSON Schema for tool input
mcp_server_name: Option<String>MCP server name for MCP-backed tools
mcp_tool_name: Option<String>Raw MCP tool name for MCP-backed tools
name: StringModel-facing tool name
namespaced_name: Option<String>Optional MCP/config namespaced tool name
Trait Implementations§
Source§impl Clone for CurrentToolMetadata
impl Clone for CurrentToolMetadata
Source§fn clone(&self) -> CurrentToolMetadata
fn clone(&self) -> CurrentToolMetadata
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 CurrentToolMetadata
impl Debug for CurrentToolMetadata
Source§impl Default for CurrentToolMetadata
impl Default for CurrentToolMetadata
Source§fn default() -> CurrentToolMetadata
fn default() -> CurrentToolMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CurrentToolMetadata
impl<'de> Deserialize<'de> for CurrentToolMetadata
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 CurrentToolMetadata
impl RefUnwindSafe for CurrentToolMetadata
impl Send for CurrentToolMetadata
impl Sync for CurrentToolMetadata
impl Unpin for CurrentToolMetadata
impl UnsafeUnpin for CurrentToolMetadata
impl UnwindSafe for CurrentToolMetadata
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