pub struct TerraphimTaskDecompositionSystem { /* private fields */ }Expand description
Terraphim-integrated task decomposition system implementation
Implementations§
Source§impl TerraphimTaskDecompositionSystem
impl TerraphimTaskDecompositionSystem
Sourcepub fn new(
automata: Arc<MockAutomata>,
role_graph: Arc<RoleGraph>,
config: TaskDecompositionSystemConfig,
) -> TerraphimTaskDecompositionSystem
pub fn new( automata: Arc<MockAutomata>, role_graph: Arc<RoleGraph>, config: TaskDecompositionSystemConfig, ) -> TerraphimTaskDecompositionSystem
Create a new task decomposition system
Sourcepub fn with_default_config(
automata: Arc<MockAutomata>,
role_graph: Arc<RoleGraph>,
) -> TerraphimTaskDecompositionSystem
pub fn with_default_config( automata: Arc<MockAutomata>, role_graph: Arc<RoleGraph>, ) -> TerraphimTaskDecompositionSystem
Create with default configuration
Trait Implementations§
Source§impl TaskDecompositionSystem for TerraphimTaskDecompositionSystem
impl TaskDecompositionSystem for TerraphimTaskDecompositionSystem
Source§fn decompose_task_workflow<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
task: &'life1 Task,
config: &'life2 TaskDecompositionSystemConfig,
) -> Pin<Box<dyn Future<Output = Result<TaskDecompositionWorkflow, TaskDecompositionError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
TerraphimTaskDecompositionSystem: 'async_trait,
fn decompose_task_workflow<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
task: &'life1 Task,
config: &'life2 TaskDecompositionSystemConfig,
) -> Pin<Box<dyn Future<Output = Result<TaskDecompositionWorkflow, TaskDecompositionError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
TerraphimTaskDecompositionSystem: 'async_trait,
Execute complete task decomposition workflow
Source§fn analyze_task<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
task: &'life1 Task,
config: &'life2 AnalysisConfig,
) -> Pin<Box<dyn Future<Output = Result<TaskAnalysis, TaskDecompositionError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
TerraphimTaskDecompositionSystem: 'async_trait,
fn analyze_task<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
task: &'life1 Task,
config: &'life2 AnalysisConfig,
) -> Pin<Box<dyn Future<Output = Result<TaskAnalysis, TaskDecompositionError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
TerraphimTaskDecompositionSystem: 'async_trait,
Analyze task complexity and requirements
Source§fn decompose_task<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
task: &'life1 Task,
config: &'life2 DecompositionConfig,
) -> Pin<Box<dyn Future<Output = Result<DecompositionResult, TaskDecompositionError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
TerraphimTaskDecompositionSystem: 'async_trait,
fn decompose_task<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
task: &'life1 Task,
config: &'life2 DecompositionConfig,
) -> Pin<Box<dyn Future<Output = Result<DecompositionResult, TaskDecompositionError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
TerraphimTaskDecompositionSystem: 'async_trait,
Decompose task into subtasks
Source§fn create_execution_plan<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
decomposition: &'life1 DecompositionResult,
config: &'life2 PlanningConfig,
) -> Pin<Box<dyn Future<Output = Result<ExecutionPlan, TaskDecompositionError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
TerraphimTaskDecompositionSystem: 'async_trait,
fn create_execution_plan<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
decomposition: &'life1 DecompositionResult,
config: &'life2 PlanningConfig,
) -> Pin<Box<dyn Future<Output = Result<ExecutionPlan, TaskDecompositionError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
TerraphimTaskDecompositionSystem: 'async_trait,
Create execution plan for decomposed tasks
Source§fn validate_workflow<'life0, 'life1, 'async_trait>(
&'life0 self,
workflow: &'life1 TaskDecompositionWorkflow,
) -> Pin<Box<dyn Future<Output = Result<bool, TaskDecompositionError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
TerraphimTaskDecompositionSystem: 'async_trait,
fn validate_workflow<'life0, 'life1, 'async_trait>(
&'life0 self,
workflow: &'life1 TaskDecompositionWorkflow,
) -> Pin<Box<dyn Future<Output = Result<bool, TaskDecompositionError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
TerraphimTaskDecompositionSystem: 'async_trait,
Validate workflow result
Auto Trait Implementations§
impl !RefUnwindSafe for TerraphimTaskDecompositionSystem
impl !UnwindSafe for TerraphimTaskDecompositionSystem
impl Freeze for TerraphimTaskDecompositionSystem
impl Send for TerraphimTaskDecompositionSystem
impl Sync for TerraphimTaskDecompositionSystem
impl Unpin for TerraphimTaskDecompositionSystem
impl UnsafeUnpin for TerraphimTaskDecompositionSystem
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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