pub enum ToolSchemaFormat {
Openai,
Anthropic,
Jsonschema,
Clap,
}Expand description
Output format for rendered tool schemas.
Variants§
Openai
OpenAI function calling format.
Anthropic
Anthropic tool use format.
Jsonschema
JSON Schema Draft 7 format.
Clap
Raw clap structure dump.
Trait Implementations§
Source§impl Clone for ToolSchemaFormat
impl Clone for ToolSchemaFormat
Source§fn clone(&self) -> ToolSchemaFormat
fn clone(&self) -> ToolSchemaFormat
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 ToolSchemaFormat
impl Debug for ToolSchemaFormat
Source§impl Default for ToolSchemaFormat
impl Default for ToolSchemaFormat
Source§fn default() -> ToolSchemaFormat
fn default() -> ToolSchemaFormat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolSchemaFormat
impl<'de> Deserialize<'de> for ToolSchemaFormat
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolSchemaFormat, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolSchemaFormat, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ToolSchemaFormat
impl PartialEq for ToolSchemaFormat
Source§impl Serialize for ToolSchemaFormat
impl Serialize for ToolSchemaFormat
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl ValueEnum for ToolSchemaFormat
impl ValueEnum for ToolSchemaFormat
Source§fn value_variants<'a>() -> &'a [ToolSchemaFormat]
fn value_variants<'a>() -> &'a [ToolSchemaFormat]
All possible argument values, in display order.
Source§fn to_possible_value<'a>(&self) -> Option<PossibleValue>
fn to_possible_value<'a>(&self) -> Option<PossibleValue>
The canonical argument value. Read more
impl Copy for ToolSchemaFormat
impl Eq for ToolSchemaFormat
impl StructuralPartialEq for ToolSchemaFormat
Auto Trait Implementations§
impl Freeze for ToolSchemaFormat
impl RefUnwindSafe for ToolSchemaFormat
impl Send for ToolSchemaFormat
impl Sync for ToolSchemaFormat
impl Unpin for ToolSchemaFormat
impl UnsafeUnpin for ToolSchemaFormat
impl UnwindSafe for ToolSchemaFormat
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