pub enum ToolKind {
Builtin,
Custom,
Mcp,
}Expand description
Tool classification used to determine which RunnerOutput variant to produce.
The session loop uses this to classify a tool call from the Runner before
constructing the appropriate RunnerOutput variant.
Variants§
Builtin
Built-in tool (bash, filesystem, web_search, etc.) — executes server-side.
Custom
Custom tool — client-executed, requires parking.
Mcp
MCP tool — executed via MCP server.
Trait Implementations§
impl Copy for ToolKind
impl Eq for ToolKind
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