haive.agents.planning.llm_compiler.dag_models ============================================= .. py:module:: haive.agents.planning.llm_compiler.dag_models .. autoapi-nested-parse:: Structured DAG models for LLM Compiler planning. These Pydantic models are used as structured output from the planner LLM, replacing the text-based output parser. The LLM returns a proper DAGPlan directly, which is more reliable and leverages AugLLMConfig's structured output capability. Classes ------- .. autoapisummary:: haive.agents.planning.llm_compiler.dag_models.DAGPlan haive.agents.planning.llm_compiler.dag_models.DAGTask haive.agents.planning.llm_compiler.dag_models.JoinerDecision Module Contents --------------- .. py:class:: DAGPlan(/, **data) Bases: :py:obj:`pydantic.BaseModel` A directed acyclic graph of tasks to execute. The planner LLM outputs this structured plan. Tasks with no dependencies run in parallel. The last task should be 'join' to aggregate results. Create a new model by parsing and validating input data from keyword arguments. Raises [`ValidationError`][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model. `self` is explicitly positional-only to allow `self` as a field name. .. py:class:: DAGTask(/, **data) Bases: :py:obj:`pydantic.BaseModel` A single task in the execution DAG. Create a new model by parsing and validating input data from keyword arguments. Raises [`ValidationError`][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model. `self` is explicitly positional-only to allow `self` as a field name. .. py:class:: JoinerDecision(/, **data) Bases: :py:obj:`pydantic.BaseModel` The joiner's decision after inspecting execution results. Create a new model by parsing and validating input data from keyword arguments. Raises [`ValidationError`][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model. `self` is explicitly positional-only to allow `self` as a field name.