pub struct TaskFlowTool { /* private fields */ }Expand description
LLM-facing tool that lets an agent start and drive durable multi-step flows. Revision handling is hidden from the model — every mutating call refetches the latest record internally.
Implementations§
Source§impl TaskFlowTool
impl TaskFlowTool
pub fn new(manager: FlowManager) -> Self
pub fn with_guardrails(self, g: TaskFlowToolGuardrails) -> Self
pub fn into_arc(self) -> Arc<dyn ToolHandler> ⓘ
pub fn tool_def() -> ToolDef
Trait Implementations§
Source§impl ToolHandler for TaskFlowTool
impl ToolHandler for TaskFlowTool
Auto Trait Implementations§
impl !RefUnwindSafe for TaskFlowTool
impl !UnwindSafe for TaskFlowTool
impl Freeze for TaskFlowTool
impl Send for TaskFlowTool
impl Sync for TaskFlowTool
impl Unpin for TaskFlowTool
impl UnsafeUnpin for TaskFlowTool
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more