pub struct Task {
pub description: Cow<'static, str>,
pub scope: Option<Scope>,
pub urls: Option<Vec<Cow<'static, str>>>,
pub frontend_code: Option<Cow<'static, str>>,
pub backend_code: Option<Cow<'static, str>>,
pub api_schema: Option<Vec<Route>>,
}Expand description
The primary unit of work handed to an agent for execution.
§Examples
use lmm_agent::types::Task;
let task = Task::from_description("Summarise the Rust book.");
assert!(!task.description.is_empty());Fields§
§description: Cow<'static, str>Human-readable description of what must be accomplished.
scope: Option<Scope>Optional permission scope.
urls: Option<Vec<Cow<'static, str>>>External URLs the agent may need to consult.
frontend_code: Option<Cow<'static, str>>Generated or supplied frontend source code.
backend_code: Option<Cow<'static, str>>Generated or supplied backend source code.
api_schema: Option<Vec<Route>>API endpoint schema discovered or generated by the agent.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Task
impl<'de> Deserialize<'de> for Task
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
impl Eq for Task
impl StructuralPartialEq for Task
Auto Trait Implementations§
impl Freeze for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnsafeUnpin for Task
impl UnwindSafe for Task
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