Strategy Module¶
Agentic strategy and query generation using output_type
.
Produces a QueryPlan
with structured GeneratedQuery
items.
- async agent.pipeline.strategy.generate_query_plan(task)[source]¶
Invoke the strategy agent and return a structured query plan.
Falls back gracefully to a deterministic heuristic if the agent returns nothing or invalid output.
- Parameters:
task (
PipelineTask
) – The pipeline task describing user intent and constraints.- Return type:
- Returns:
A
QueryPlan
with up totask.max_queries
queries.