Skip to main content

j_agent/tools/task/
entity.rs

1use serde::{Deserialize, Serialize};
2
3/// 持久化任务数据结构
4#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
5pub struct AgentTask {
6    pub task_id: u64,
7    pub title: String,
8    pub description: String,
9    pub status: String, // "pending" | "in_progress" | "completed"
10    #[serde(default)]
11    pub blocked_by: Vec<u64>,
12    #[serde(default)]
13    pub owner: String,
14    #[serde(default)]
15    pub task_doc_paths: Vec<String>,
16}