pub struct AgentInput {
pub task: AgentTask,
pub context: ProjectContext,
pub config: AgentConfig,
}Expand description
Input for an agent task
This struct contains all the information needed for an agent to execute a task, including the task itself, project context, and configuration.
§Examples
ⓘ
use ricecoder_agents::{AgentInput, AgentTask, ProjectContext, AgentConfig, TaskType, TaskTarget, TaskScope};
use std::path::PathBuf;
let input = AgentInput {
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(),
},
context: ProjectContext {
name: "my-project".to_string(),
root: PathBuf::from("/path/to/project"),
},
config: AgentConfig::default(),
};Fields§
§task: AgentTaskThe task to execute
context: ProjectContextProject context
config: AgentConfigAgent configuration
Trait Implementations§
Source§impl Clone for AgentInput
impl Clone for AgentInput
Source§fn clone(&self) -> AgentInput
fn clone(&self) -> AgentInput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentInput
impl Debug for AgentInput
Source§impl<'de> Deserialize<'de> for AgentInput
impl<'de> Deserialize<'de> for AgentInput
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 AgentInput
impl RefUnwindSafe for AgentInput
impl Send for AgentInput
impl Sync for AgentInput
impl Unpin for AgentInput
impl UnwindSafe for AgentInput
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