pub struct InferenceCreateMessagesBodyToolsItem {
pub description: Option<String>,
pub input_schema: Map<String, Value>,
pub name: String,
}Expand description
Tool definition the model may call (name, JSON Schema for input).
JSON schema
{
"description": "Tool definition the model may call (`name`, JSON Schema for `input`).",
"type": "object",
"required": [
"input_schema",
"name"
],
"properties": {
"description": {
"description": "Human-readable description of what the tool does.",
"examples": [
"Get the current weather for a location."
],
"type": "string"
},
"input_schema": {
"description": "JSON Schema (draft 2020-12 style) describing the tool input object.",
"type": "object",
"additionalProperties": true
},
"name": {
"description": "Tool name referenced in `tool_use` blocks.",
"examples": [
"get_weather"
],
"type": "string"
}
}
}Fields§
§description: Option<String>Human-readable description of what the tool does.
input_schema: Map<String, Value>JSON Schema (draft 2020-12 style) describing the tool input object.
name: StringTool name referenced in tool_use blocks.
Trait Implementations§
Source§impl Clone for InferenceCreateMessagesBodyToolsItem
impl Clone for InferenceCreateMessagesBodyToolsItem
Source§fn clone(&self) -> InferenceCreateMessagesBodyToolsItem
fn clone(&self) -> InferenceCreateMessagesBodyToolsItem
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<'de> Deserialize<'de> for InferenceCreateMessagesBodyToolsItem
impl<'de> Deserialize<'de> for InferenceCreateMessagesBodyToolsItem
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
Source§impl From<&InferenceCreateMessagesBodyToolsItem> for InferenceCreateMessagesBodyToolsItem
impl From<&InferenceCreateMessagesBodyToolsItem> for InferenceCreateMessagesBodyToolsItem
Source§fn from(value: &InferenceCreateMessagesBodyToolsItem) -> Self
fn from(value: &InferenceCreateMessagesBodyToolsItem) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InferenceCreateMessagesBodyToolsItem
impl RefUnwindSafe for InferenceCreateMessagesBodyToolsItem
impl Send for InferenceCreateMessagesBodyToolsItem
impl Sync for InferenceCreateMessagesBodyToolsItem
impl Unpin for InferenceCreateMessagesBodyToolsItem
impl UnsafeUnpin for InferenceCreateMessagesBodyToolsItem
impl UnwindSafe for InferenceCreateMessagesBodyToolsItem
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