skilllite_agent/types/task.rs
1//! Task planning types.
2
3use serde::{Deserialize, Serialize};
4
5/// A task in the task plan.
6/// Ported from Python `TaskPlanner.task_list` dict structure.
7#[derive(Debug, Clone, Serialize, Deserialize)]
8pub struct Task {
9 pub id: u32,
10 pub description: String,
11 #[serde(skip_serializing_if = "Option::is_none")]
12 pub tool_hint: Option<String>,
13 pub completed: bool,
14}
15
16// Re-export planning types from skilllite-core for backward compatibility.
17pub use skilllite_core::planning::{PlanningRule, SourceEntry, SourceRegistry};