Skip to main content

Crate terraphim_kg_orchestration

Crate terraphim_kg_orchestration 

Source
Expand description

§Terraphim Knowledge Graph Orchestration Engine

A knowledge graph-based agent orchestration system that coordinates multi-agent workflows using intelligent task decomposition, agent matching, and execution planning.

§Core Features

  • Simple Agent Model: Trait-based agents with clear capabilities
  • Task Decomposition Integration: Uses terraphim_task_decomposition for intelligent task breakdown
  • Knowledge Graph Coordination: Leverages knowledge graphs for agent-task matching
  • Execution Management: Handles dependencies, parallel execution, and result aggregation
  • Fault Tolerance: Basic error handling and recovery mechanisms

§Architecture

The orchestration engine consists of several key components:

  • Agent Pool: Registry of available agents with their capabilities
  • Task Scheduler: Decomposes complex tasks and schedules execution
  • Execution Coordinator: Manages task execution, dependencies, and parallelism
  • Result Aggregator: Combines results from multiple agents into coherent outputs

Re-exports§

pub use agent::*;
pub use coordinator::*;
pub use error::*;
pub use pool::*;
pub use scheduler::*;
pub use supervision::*;

Modules§

agent
Simple agent abstractions for orchestration
coordinator
Execution coordination and workflow management
error
Error types for the orchestration engine
pool
Agent pool management for orchestration
scheduler
Task scheduling and decomposition integration
supervision
Supervision tree orchestration engine

Structs§

ExecutionPlan
Execution plan for a set of tasks
Task
Task representation with knowledge graph context
TaskDecompositionWorkflow
Complete task decomposition workflow result
TerraphimTaskDecompositionSystem
Terraphim-integrated task decomposition system implementation

Enums§

TaskComplexity
Task complexity levels
TaskStatus
Task execution status

Traits§

TaskDecompositionSystem
Integrated task decomposition system

Type Aliases§

OrchestrationResult
Result type for orchestration operations
TaskId
Task identifier type