pub struct AgentTask {
pub id: String,
pub task_type: TaskType,
pub target: TaskTarget,
pub options: TaskOptions,
}Expand description
A task for an agent to execute
This struct represents a single task that an agent should perform. It includes the task type, target files/scope, and any additional options.
§Examples
ⓘ
use ricecoder_agents::{AgentTask, TaskType, TaskTarget, TaskScope};
use std::path::PathBuf;
let task = AgentTask {
id: "task-1".to_string(),
task_type: TaskType::CodeReview,
target: TaskTarget {
files: vec![PathBuf::from("src/main.rs")],
scope: TaskScope::File,
},
options: Default::default(),
};Fields§
§id: StringUnique task identifier
task_type: TaskTypeType of task
target: TaskTargetTarget for the task
options: TaskOptionsTask options
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentTask
impl<'de> Deserialize<'de> for AgentTask
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AgentTask
impl RefUnwindSafe for AgentTask
impl Send for AgentTask
impl Sync for AgentTask
impl Unpin for AgentTask
impl UnwindSafe for AgentTask
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