haive.agents.planning.llm_compiler.agent ======================================== .. py:module:: haive.agents.planning.llm_compiler.agent .. autoapi-nested-parse:: LLM Compiler Agent - DAG-based parallel task execution. Composes SimpleAgent (planner with structured DAGPlan output) + parallel tool executor + SimpleAgent (joiner with JoinerDecision output). Graph: START -> plan -> execute -> join --(replan)--> plan --(done)----> END Uses BaseGraph from haive.core, follows the standard agent pattern. Classes ------- .. autoapisummary:: haive.agents.planning.llm_compiler.agent.LLMCompilerAgent Module Contents --------------- .. py:class:: LLMCompilerAgent Bases: :py:obj:`haive.agents.base.agent.Agent` DAG planner + parallel executor + joiner. Composes: - Planner: SimpleAgent with structured output (DAGPlan) - Executor: ThreadPoolExecutor running tools in parallel - Joiner: SimpleAgent with structured output (JoinerDecision) .. py:method:: build_graph() Abstract method to build the agent's graph. .. py:method:: compile(**kwargs) Compile the graph and cache the result. :param \*\*kwargs: Additional compilation arguments :returns: The compiled graph .. py:method:: run(input_data, **kwargs) Synchronously run the agent with input data. .. py:method:: run_query(query) Convenience: run and extract answer string.