1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! Task Lifecycle Management
//!
//! Provides unified Task abstraction for all operations in a3s-code.
//! This module brings together tool calls, agents, workflows, and background
//! tasks under a common lifecycle management framework.
//!
//! ## Task Types
//!
//! - `Tool` - Direct tool execution
//! - `Agent` - Sub-agent execution
//! - `Workflow` - DAG-based workflow execution
//! - `Idle` - Memory consolidation task
//!
//! ## Example
//!
//! ```rust,ignore
//! use a3s_code_core::task::{TaskManager, TaskId, TaskType};
//!
//! let manager = TaskManager::new();
//! let task_id = manager.spawn(Task {
//! kind: TaskType::Tool { name: "read".into(), args: json!({"file_path": "test.txt"}) },
//! ..Default::default()
//! });
//!
//! let result = manager.wait(task_id).await;
//! ```
pub use Coordinator;
pub use ;
pub use ;
pub use ;
pub use ;