pub struct BuiltinToolDescriptor {
pub description: String,
pub format: Option<BuiltinToolFormat>,
pub has_summarise_intention: bool,
pub input_schema: Option<BuiltinToolInputSchema>,
pub instructions: Option<String>,
pub is_terminal: bool,
pub name: String,
pub safe_for_telemetry: Value,
pub title: Option<String>,
pub type: Option<String>,
}Expand description
Rust-owned metadata and input schema for a built-in 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§
§description: StringModel-facing description of the tool’s behavior.
format: Option<BuiltinToolFormat>Optional custom input format used instead of a JSON Schema.
has_summarise_intention: boolWhether the tool provides a specialized intention summary.
input_schema: Option<BuiltinToolInputSchema>JSON Schema for the tool input, or null when the tool uses a custom format.
instructions: Option<String>Optional supplemental usage instructions for the tool.
is_terminal: boolWhether the tool executes commands in a terminal.
name: StringStable name used to invoke the built-in tool.
safe_for_telemetry: ValuePolicy describing which tool metadata may be recorded without obfuscation.
title: Option<String>Optional human-readable title for the tool.
type: Option<String>Optional tool category discriminator.
Trait Implementations§
Source§impl Clone for BuiltinToolDescriptor
impl Clone for BuiltinToolDescriptor
Source§fn clone(&self) -> BuiltinToolDescriptor
fn clone(&self) -> BuiltinToolDescriptor
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 BuiltinToolDescriptor
impl Debug for BuiltinToolDescriptor
Source§impl Default for BuiltinToolDescriptor
impl Default for BuiltinToolDescriptor
Source§fn default() -> BuiltinToolDescriptor
fn default() -> BuiltinToolDescriptor
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BuiltinToolDescriptor
impl<'de> Deserialize<'de> for BuiltinToolDescriptor
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 BuiltinToolDescriptor
impl RefUnwindSafe for BuiltinToolDescriptor
impl Send for BuiltinToolDescriptor
impl Sync for BuiltinToolDescriptor
impl Unpin for BuiltinToolDescriptor
impl UnsafeUnpin for BuiltinToolDescriptor
impl UnwindSafe for BuiltinToolDescriptor
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