Plan update.
Agent's execution plan for complex tasks, broken down into entries.
Required Fields
type- Always "plan" for this variantsession_update- Update identifierentries- List of plan entries (list of maps)
Optional Fields
meta- Additional metadata (map)
Plan Entry Structure
Each entry in the entries list typically contains:
id- Unique identifier for the plan entrydescription- Description of the taskstatus- Current status (pending, in_progress, completed, failed)- Other fields specific to the plan entry type
Example
%ACPex.Schema.Types.SessionUpdate.Plan{
type: "plan",
session_update: "update-789",
entries: [
%{
"id" => "step-1",
"description" => "Read configuration file",
"status" => "completed"
},
%{
"id" => "step-2",
"description" => "Parse configuration",
"status" => "in_progress"
}
]
}JSON Representation
{
"type": "plan",
"sessionUpdate": "update-789",
"entries": [
{
"id": "step-1",
"description": "Read configuration file",
"status": "completed"
},
{
"id": "step-2",
"description": "Parse configuration",
"status": "in_progress"
}
]
}
Summary
Functions
Creates a changeset for validation.
Types
Functions
@spec changeset(t(), map()) :: Ecto.Changeset.t()
Creates a changeset for validation.
Required Fields
session_update- Must be presententries- Must be present
The type field defaults to "plan".