Execution Planning
The Super Agent constructs an immutable execution DAG represented by the ExecutionPlan dataclass before executing any tasks.
Dataclass Specifications
from dataclasses import dataclass, fieldfrom enum import Enumfrom typing import Any, Optionalfrom datetime import datetime
class PlanStrategy(str, Enum): DETERMINISTIC = "DETERMINISTIC" LLM_SYNTHESIZED = "LLM_SYNTHESIZED"
class PlanAction(str, Enum): WEB_SEARCH = "WEB_SEARCH" FIRECRAWL_SCRAPE = "FIRECRAWL_SCRAPE" WEBSITE_HEALTH = "WEBSITE_HEALTH" DOCUMENT_WRITE = "DOCUMENT_WRITE" SLIDE_DESIGN = "SLIDE_DESIGN" SPREADSHEET_ANALYZE = "SPREADSHEET_ANALYZE" BOARD_UPDATE = "BOARD_UPDATE" COMPETITOR_WATCH = "COMPETITOR_WATCH" SQL_QUERY = "SQL_QUERY" SQL_MUTATE = "SQL_MUTATE" EMAIL_SEND = "EMAIL_SEND" SLACK_POST = "SLACK_POST" WHATSAPP_SEND = "WHATSAPP_SEND" SMS_SEND = "SMS_SEND"
@dataclassclass PlanStep: step_id: str action: PlanAction order: int depends_on: list[str] = field(default_factory=list) input_parameters: dict[str, Any] = field(default_factory=dict) is_guarded: bool = False status: str = "PENDING" result: Optional[Any] = None
@dataclassclass ExecutionPlan: plan_id: str workspace_id: str strategy: PlanStrategy steps: list[PlanStep] estimated_credits: int created_at: datetimeDeterministic vs LLM Planning Strategies
1. Deterministic Planning (Zero Overhead)
For recognized blueprints (such as generating a monthly board update or checking website vitals), the Super Agent selects a pre-compiled template plan. This eliminates planning token cost and initiates execution within 80 ms.
2. LLM-Synthesized Planning
For unstructured, multi-domain queries, the Super Agent prompts an inference model with strict JSON schema constraints to generate a dynamic DAG. The plan validates dependencies and assigns parallel orders.