#[non_exhaustive]pub struct PlanEntry {
pub content: String,
pub priority: PlanEntryPriority,
pub status: PlanEntryStatus,
pub meta: Option<Meta>,
}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<Meta>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, ) -> Self
Sourcepub fn meta(self, meta: Meta) -> Self
pub fn meta(self, meta: Meta) -> Self
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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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 more