#[non_exhaustive]pub struct PlanEntry {
pub content: String,
pub priority: PlanEntryPriority,
pub status: PlanEntryStatus,
pub meta: Option<Map<String, Value>>,
}Expand description
A single entry in the execution plan.
Represents a task or goal that the assistant intends to accomplish as part of fulfilling the user’s request. See protocol docs: Plan Entries
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.content: StringHuman-readable description of what this task aims to accomplish.
priority: PlanEntryPriorityThe relative importance of this task. Used to indicate which tasks are most critical to the overall goal.
status: PlanEntryStatusCurrent execution status of this task.
meta: Option<Map<String, Value>>The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Implementations§
Source§impl PlanEntry
impl PlanEntry
pub fn new( content: impl Into<String>, priority: PlanEntryPriority, status: PlanEntryStatus, ) -> PlanEntry
Sourcepub fn meta(self, meta: impl IntoOption<Map<String, Value>>) -> PlanEntry
pub fn meta(self, meta: impl IntoOption<Map<String, Value>>) -> PlanEntry
The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PlanEntry
impl<'de> Deserialize<'de> for PlanEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlanEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlanEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for PlanEntry
impl JsonSchema for PlanEntry
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl Serialize for PlanEntry
impl Serialize for PlanEntry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for PlanEntry
impl StructuralPartialEq for PlanEntry
Auto Trait Implementations§
impl Freeze for PlanEntry
impl RefUnwindSafe for PlanEntry
impl Send for PlanEntry
impl Sync for PlanEntry
impl Unpin for PlanEntry
impl UnwindSafe for PlanEntry
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)