pub enum ToolKind {
Function,
HostedCodeInterpreter,
HostedImageGeneration,
HostedWebSearch,
HostedFileSearch {
max_results: Option<u32>,
},
HostedMcp {
url: String,
allowed_tools: Option<Vec<String>>,
},
}Expand description
The category of a tool as advertised to the service.
Variants§
Function
A callable function (executed locally, unless declaration-only).
HostedCodeInterpreter
Service-side code interpreter.
HostedImageGeneration
Service-side image generation.
HostedWebSearch
Service-side web search.
HostedFileSearch
Service-side file search over hosted vector stores.
HostedMcp
Service-side MCP tool.
Trait Implementations§
impl StructuralPartialEq for ToolKind
Auto Trait Implementations§
impl Freeze for ToolKind
impl RefUnwindSafe for ToolKind
impl Send for ToolKind
impl Sync for ToolKind
impl Unpin for ToolKind
impl UnsafeUnpin for ToolKind
impl UnwindSafe for ToolKind
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