pub struct Task { /* private fields */ }Expand description
A task submitted to MADE.
description is the free-form prompt that agents consume;
attributes carries arbitrary, opaque domain data that
MADE does not interpret. The specialty selects which
council deliberates.
Implementations§
Source§impl Task
impl Task
pub fn new( id: TaskId, specialty: Specialty, description: TaskDescription, constraints: TaskConstraints, attributes: Attributes, ) -> Self
pub fn new_with_context( id: TaskId, specialty: Specialty, description: TaskDescription, constraints: TaskConstraints, attributes: Attributes, external_context: Option<ExternalContextBundle>, ) -> Self
pub fn new_with_metadata( id: TaskId, specialty: Specialty, description: TaskDescription, constraints: TaskConstraints, attributes: Attributes, external_context: Option<ExternalContextBundle>, metadata: TaskMetadata, ) -> Self
pub fn id(&self) -> &TaskId
pub fn specialty(&self) -> &Specialty
pub fn description(&self) -> &TaskDescription
pub fn constraints(&self) -> &TaskConstraints
pub fn attributes(&self) -> &Attributes
pub fn external_context(&self) -> Option<&ExternalContextBundle>
pub fn metadata(&self) -> &TaskMetadata
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