pub struct ToolSearchOutput {
pub call_id: String,
pub created_by: Option<String>,
pub execution: ToolSearchExecutionType,
pub id: String,
pub status: FunctionCallOutputStatusEnum,
pub tools: Vec<Tool>,
pub type_: ToolSearchOutputType,
}Expand description
ToolSearchOutput
JSON schema
{
"type": "object",
"required": [
"call_id",
"execution",
"id",
"status",
"tools",
"type"
],
"properties": {
"call_id": {
"anyOf": [
{
"description": "The unique ID of the tool search call generated by the model.",
"type": "string"
}
]
},
"created_by": {
"description": "The identifier of the actor that created the item.",
"type": "string"
},
"execution": {
"$ref": "#/components/schemas/ToolSearchExecutionType"
},
"id": {
"description": "The unique ID of the tool search output item.",
"type": "string"
},
"status": {
"$ref": "#/components/schemas/FunctionCallOutputStatusEnum"
},
"tools": {
"description": "The loaded tool definitions returned by tool search.",
"type": "array",
"items": {
"$ref": "#/components/schemas/Tool"
}
},
"type": {
"description": "The type of the item. Always `tool_search_output`.",
"type": "string",
"enum": [
"tool_search_output"
],
"x-stainless-const": true
}
}
}Fields§
§call_id: String§created_by: Option<String>The identifier of the actor that created the item.
execution: ToolSearchExecutionType§id: StringThe unique ID of the tool search output item.
status: FunctionCallOutputStatusEnum§tools: Vec<Tool>The loaded tool definitions returned by tool search.
type_: ToolSearchOutputTypeThe type of the item. Always tool_search_output.
Trait Implementations§
Source§impl Clone for ToolSearchOutput
impl Clone for ToolSearchOutput
Source§fn clone(&self) -> ToolSearchOutput
fn clone(&self) -> ToolSearchOutput
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 ToolSearchOutput
impl Debug for ToolSearchOutput
Source§impl<'de> Deserialize<'de> for ToolSearchOutput
impl<'de> Deserialize<'de> for ToolSearchOutput
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<ToolSearchOutput> for ConversationItem
impl From<ToolSearchOutput> for ConversationItem
Source§fn from(value: ToolSearchOutput) -> Self
fn from(value: ToolSearchOutput) -> Self
Converts to this type from the input type.
Source§impl From<ToolSearchOutput> for ItemField
impl From<ToolSearchOutput> for ItemField
Source§fn from(value: ToolSearchOutput) -> Self
fn from(value: ToolSearchOutput) -> Self
Converts to this type from the input type.
Source§impl From<ToolSearchOutput> for ItemResource
impl From<ToolSearchOutput> for ItemResource
Source§fn from(value: ToolSearchOutput) -> Self
fn from(value: ToolSearchOutput) -> Self
Converts to this type from the input type.
Source§impl From<ToolSearchOutput> for OutputItem
impl From<ToolSearchOutput> for OutputItem
Source§fn from(value: ToolSearchOutput) -> Self
fn from(value: ToolSearchOutput) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ToolSearchOutput
impl RefUnwindSafe for ToolSearchOutput
impl Send for ToolSearchOutput
impl Sync for ToolSearchOutput
impl Unpin for ToolSearchOutput
impl UnsafeUnpin for ToolSearchOutput
impl UnwindSafe for ToolSearchOutput
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