pub struct TaskTool { /* private fields */ }
Expand description
Task tool for agent spawning and management
Implementations§
Source§impl TaskTool
impl TaskTool
Sourcepub async fn queue_task(
&self,
params: TaskParams,
context: Value,
) -> Result<String, ToolError>
pub async fn queue_task( &self, params: TaskParams, context: Value, ) -> Result<String, ToolError>
Queue a task for execution
Sourcepub async fn get_task_status(&self, task_id: &str) -> Option<TaskStatus>
pub async fn get_task_status(&self, task_id: &str) -> Option<TaskStatus>
Get task status
Sourcepub async fn get_task_results(&self, task_id: &str) -> Option<TaskResult>
pub async fn get_task_results(&self, task_id: &str) -> Option<TaskResult>
Get task results
Sourcepub async fn get_agent_status(&self) -> Value
pub async fn get_agent_status(&self) -> Value
Get agent registry status
Sourcepub async fn list_agent_types(&self) -> Vec<String>
pub async fn list_agent_types(&self) -> Vec<String>
List available agent types
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TaskTool
impl !RefUnwindSafe for TaskTool
impl Send for TaskTool
impl Sync for TaskTool
impl Unpin for TaskTool
impl !UnwindSafe for TaskTool
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<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