Skip to content

plans

Class info

Classes

Name Children Inherits
PlanEntry
aclientp.schema.v2.plans
A task or goal the agent intends to accomplish.
    PlanItems
    aclientp.schema.v2.plans
    A plan as structured entries.
      PlanMarkdown
      aclientp.schema.v2.plans
      **UNSTABLE**: A plan as raw markdown content.
        PlanRemoved
        aclientp.schema.v2.plans
        **UNSTABLE**: The plan with this ID was removed.
          PlanUpdate
          aclientp.schema.v2.plans
          New content of the plan identified by its ``plan_id``.
            UnknownPlanContent
            aclientp.schema.v2.plans
            Custom or future plan content; ``type`` values starting with ``_`` are extensions.

              🛈 DocStrings

              v2 plans: item-based plan_update and plan_removed keyed by plan ID.

              PlanEntryPriority module-attribute

              PlanEntryPriority = Literal['high', 'medium', 'low'] | str
              

              Relative importance of a plan entry. Values starting with _ are extensions.

              PlanEntryStatus module-attribute

              PlanEntryStatus = Literal['pending', 'in_progress', 'completed', 'cancelled'] | str
              

              Status of a plan entry. Values starting with _ are extensions.

              PlanUpdateContent module-attribute

              PlanUpdateContent = Annotated[
                  Annotated[PlanItems, Tag("items")]
                  | Annotated[PlanMarkdown, Tag("markdown")]
                  | Annotated[UnknownPlanContent, Tag(OTHER_TAG)],
                  Discriminator(open_discriminator("type", frozenset({"items", "markdown"}))),
              ]
              

              Updated content of a plan.

              PlanEntry

              Bases: AnnotatedObject

              A task or goal the agent intends to accomplish.

              Source code in src/aclientp/schema/v2/plans.py
              class PlanEntry(AnnotatedObject):
                  """A task or goal the agent intends to accomplish."""
              
                  content: str
                  """What the task aims to accomplish."""
              
                  priority: PlanEntryPriority
                  """Relative importance of the task."""
              
                  status: PlanEntryStatus
                  """Current status of the task."""
              

              content instance-attribute

              content: str
              

              What the task aims to accomplish.

              priority instance-attribute

              Relative importance of the task.

              status instance-attribute

              Current status of the task.

              PlanItems

              Bases: AnnotatedObject

              A plan as structured entries.

              Source code in src/aclientp/schema/v2/plans.py
              class PlanItems(AnnotatedObject):
                  """A plan as structured entries."""
              
                  type: Literal["items"] = Field(default="items", init=False)
              
                  plan_id: PlanId
                  """The plan to update."""
              
                  entries: Sequence[PlanEntry]
                  """All tasks of the plan; updates send the complete list, which replaces the old one."""
              

              entries instance-attribute

              entries: Sequence[PlanEntry]
              

              All tasks of the plan; updates send the complete list, which replaces the old one.

              plan_id instance-attribute

              plan_id: PlanId
              

              The plan to update.

              PlanMarkdown

              Bases: AnnotatedObject

              UNSTABLE: A plan as raw markdown content.

              Source code in src/aclientp/schema/v2/plans.py
              class PlanMarkdown(AnnotatedObject):
                  """**UNSTABLE**: A plan as raw markdown content."""
              
                  type: Literal["markdown"] = Field(default="markdown", init=False)
              
                  plan_id: PlanId
                  """The plan to update."""
              
                  content: str
                  """Markdown content of the plan."""
              
                  path: AbsolutePath | MISSING | None = MISSING
                  """Absolute path of the file holding the plan."""
              

              content instance-attribute

              content: str
              

              Markdown content of the plan.

              path class-attribute instance-attribute

              path: AbsolutePath | MISSING | None = MISSING
              

              Absolute path of the file holding the plan.

              plan_id instance-attribute

              plan_id: PlanId
              

              The plan to update.

              PlanRemoved

              Bases: AnnotatedObject

              UNSTABLE: The plan with this ID was removed.

              Source code in src/aclientp/schema/v2/plans.py
              class PlanRemoved(AnnotatedObject):
                  """**UNSTABLE**: The plan with this ID was removed."""
              
                  session_update: Literal["plan_removed"] = Field(default="plan_removed", init=False)
              
                  plan_id: PlanId
                  """The removed plan."""
              

              plan_id instance-attribute

              plan_id: PlanId
              

              The removed plan.

              PlanUpdate

              Bases: AnnotatedObject

              New content of the plan identified by its plan_id.

              Source code in src/aclientp/schema/v2/plans.py
              class PlanUpdate(AnnotatedObject):
                  """New content of the plan identified by its ``plan_id``."""
              
                  session_update: Literal["plan_update"] = Field(default="plan_update", init=False)
              
                  plan: PlanUpdateContent
                  """The updated plan content."""
              

              plan instance-attribute

              The updated plan content.

              UnknownPlanContent

              Bases: Unknown

              Custom or future plan content; type values starting with _ are extensions.

              Source code in src/aclientp/schema/v2/plans.py
              class UnknownPlanContent(Unknown):
                  """Custom or future plan content; ``type`` values starting with ``_`` are extensions."""
              
                  type: str
                  """The content kind."""
              
                  plan_id: PlanId
                  """The plan to update."""
              

              plan_id instance-attribute

              plan_id: PlanId
              

              The plan to update.

              type instance-attribute

              type: str
              

              The content kind.