Planning

class Planning(store: PlanStore = InMemoryPlanStore(), title: String = "Plan") : Capability(source)

A model-owned task list with the tools, texts and reminder of Pydantic AI Harness Planning: write_plan replaces the whole plan, read_plan shows ids, add_task, update_task_status, update_task_statuses (validated as a batch) and remove_task edit it. The current plan is appended to each turn as a <plan-reminder> (context), and every change is published to the UI as a data-plan part for the Plan element.

Constructors

Link copied to clipboard
constructor(store: PlanStore = InMemoryPlanStore(), title: String = "Plan")

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val instructions: String

Functions

Link copied to clipboard
open suspend override fun context(): String?
Link copied to clipboard
fun planData(items: List<PlanItem>): JsonObject

The AI Elements data-plan shape: {title, description, streaming, steps: [{label, status}]}.

Link copied to clipboard
open suspend override fun tools(): List<AgentTool>