pub struct SubTaskManager { /* private fields */ }Implementations§
Source§impl SubTaskManager
impl SubTaskManager
pub fn attach_session( &self, task_id: impl Into<String>, session_id: impl Into<String>, agent_name: impl Into<String>, task_title: impl Into<String>, workspace_backend: Arc<dyn WorkspaceBackend>, session: Arc<dyn SubAgentSession>, )
pub fn attach_session_with_resolved(&self, attachment: SubTaskSessionAttachment)
pub fn continue_task(&self, task_id: &str, prompt: &str) -> Result<(), String>
Source§impl SubTaskManager
impl SubTaskManager
pub fn status_entries( &self, task_ids: &[String], detail_level: &str, workspace_file_limit: usize, ) -> Vec<Value>
pub fn get(&self, task_id: &str) -> Option<ManagedSubTaskSnapshot>
pub fn task_session_id(&self, task_id: &str) -> Option<String>
pub fn task_status_label(&self, task_id: &str) -> Option<String>
pub fn is_running(&self, task_id: &str) -> bool
pub fn wait(&self, task_id: &str, timeout: Option<Duration>) -> bool
pub fn wait_for_record( &self, task_id: &str, timeout: Option<Duration>, ) -> Option<ManagedSubTaskSnapshot>
Source§impl SubTaskManager
impl SubTaskManager
pub fn submit( &self, task_id: impl Into<String>, session_id: impl Into<String>, agent_name: impl Into<String>, task_title: impl Into<String>, runner: impl FnOnce() -> SubTaskOutcome + Send + 'static, ) -> Result<(), String>
pub fn submit_with_workspace( &self, task_id: impl Into<String>, session_id: impl Into<String>, agent_name: impl Into<String>, task_title: impl Into<String>, workspace_backend: Option<Arc<dyn WorkspaceBackend>>, runner: impl FnOnce() -> SubTaskOutcome + Send + 'static, ) -> Result<(), String>
pub fn record_outcome(&self, task_id: &str, outcome: SubTaskOutcome)
Trait Implementations§
Source§impl Clone for SubTaskManager
impl Clone for SubTaskManager
Source§fn clone(&self) -> SubTaskManager
fn clone(&self) -> SubTaskManager
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubTaskManager
impl Debug for SubTaskManager
Source§impl Default for SubTaskManager
impl Default for SubTaskManager
Source§fn default() -> SubTaskManager
fn default() -> SubTaskManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SubTaskManager
impl RefUnwindSafe for SubTaskManager
impl Send for SubTaskManager
impl Sync for SubTaskManager
impl Unpin for SubTaskManager
impl UnsafeUnpin for SubTaskManager
impl UnwindSafe for SubTaskManager
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 moreCreates a shared type from an unshared type.