AgentPlan
Persistent typed plan owned by an AI agent. Each user turn applies a patch against an existing plan instead of re-deriving the whole build from chat history. Sub-plans (Segment, Actions) nest under their owner via parent_plan_id and are reachable via {@see ChatConversation.agent_plans} (plural) or directly by id via {@see Query.agentPlan}.
Lighthouse dispatches the union by inspecting the AgentPlan row's
plan_type. UIs render via __typename and inline fragments.
union AgentPlan = WorkflowPlan | SegmentPlan | ActionsPlan
Possible types
AgentPlan.WorkflowPlan object
Top-level plan for a workflow build. Each slot field surfaces a {@see PlanSlot} reading the same column on the underlying row.
AgentPlan.SegmentPlan object
Sub-plan owned by SegmentBuilderAgent.
AgentPlan.ActionsPlan object
Sub-plan owned by ActionsAgent.
Returned By
agentPlan query ● patchAgentPlan mutation
Member Of
ChatConversation object


