Skip to content

agent_plan

Class info

Classes

Name Children Inherits
PlanEntry
aclientp.schema.agent_plan
A single entry in the execution plan.
    PlanItems
    aclientp.schema.agent_plan
    **UNSTABLE**: A plan made of structured entries.
      PlanMarkdown
      aclientp.schema.agent_plan
      **UNSTABLE**: A plan made of raw markdown content.

        🛈 DocStrings

        PlanId module-attribute

        PlanId = str
        

        UNSTABLE: Agent-owned identifier of a plan, unique within the session.

        PlanUpdateContent module-attribute

        PlanUpdateContent = Annotated[PlanItems | PlanMarkdown, Field(discriminator='type')]
        

        UNSTABLE: Content of an ID-addressed plan update.

        PlanEntry

        Bases: AnnotatedObject

        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

        Source code in src/aclientp/schema/agent_plan.py
        class PlanEntry(AnnotatedObject):
            """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](https://agentclientprotocol.com/protocol/agent-plan#plan-entries)
            """
        
            content: str
            """Human-readable description of what this task aims to accomplish."""
        
            priority: PlanEntryPriority
            """The relative importance of this task.
        
            Used to indicate which tasks are most critical to the overall goal.
            """
        
            status: PlanEntryStatus
            """Current execution status of this task."""
        

        content instance-attribute

        content: str
        

        Human-readable description of what this task aims to accomplish.

        priority instance-attribute

        priority: PlanEntryPriority
        

        The relative importance of this task.

        Used to indicate which tasks are most critical to the overall goal.

        status instance-attribute

        status: PlanEntryStatus
        

        Current execution status of this task.

        PlanItems

        Bases: AnnotatedObject

        UNSTABLE: A plan made of structured entries.

        Source code in src/aclientp/schema/agent_plan.py
        class PlanItems(AnnotatedObject):
            """**UNSTABLE**: A plan made of structured entries."""
        
            type: Literal["items"] = Field(default="items", init=False)
        
            plan_id: PlanId
            """The plan ID to update."""
        
            entries: Sequence[PlanEntry]
            """The complete list of tasks to be accomplished."""
        

        entries instance-attribute

        entries: Sequence[PlanEntry]
        

        The complete list of tasks to be accomplished.

        plan_id instance-attribute

        plan_id: PlanId
        

        The plan ID to update.

        PlanMarkdown

        Bases: AnnotatedObject

        UNSTABLE: A plan made of raw markdown content.

        Source code in src/aclientp/schema/agent_plan.py
        class PlanMarkdown(AnnotatedObject):
            """**UNSTABLE**: A plan made of raw markdown content."""
        
            type: Literal["markdown"] = Field(default="markdown", init=False)
        
            plan_id: PlanId
            """The plan ID to update."""
        
            content: str
            """Markdown content for the plan."""
        
            path: str | None = None
            """The absolute path of the file that holds this plan."""
        

        content instance-attribute

        content: str
        

        Markdown content for the plan.

        path class-attribute instance-attribute

        path: str | None = None
        

        The absolute path of the file that holds this plan.

        plan_id instance-attribute

        plan_id: PlanId
        

        The plan ID to update.