pub enum ToolKind {
Http,
Agent,
}Expand description
Dispatch kind for a server-side tool.
Onwards stays agnostic to the underlying implementation (HTTP, MCP,
sandboxed execution, etc.) — Http covers anything the executor
fires-and-returns through ToolExecutor::execute. Agent is the
only special case: when the multi-step orchestration loop encounters
a step whose tool has kind = Agent, it recurses into a sub-loop
scoped under that step instead of calling execute.
Variants§
Http
Standard tool. The loop calls ToolExecutor::execute and
persists the returned payload as the step’s response_payload.
Agent
Sub-agent dispatch. The loop recurses with scope_parent = Some(step_id) and depth + 1. The sub-loop’s final return value
becomes the spawning step’s response_payload.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.