Configuration options for the planning step
Configuration options for the research planning step
This interface defines all the configurable aspects of the planning step, including the language model to use, prompt customization, and result handling.
PlanOptions
Optional
customPrompt?: stringCustom system prompt to override the default
Optional
llm?: LanguageModelV1Language model to use for generating the plan (falls back to state.defaultLLM if not provided)
Optional
temperature?: numberTemperature setting for the language model (0.0-1.0)
Optional
includeInResults?: booleanWhether to include the plan in the final research results
Optional
retry?: { maxRetries?: number; baseDelay?: number }Retry configuration for language model calls Useful for handling transient errors in LLM services
Optional
maxRetries?: numberMaximum number of retries (default: 2)
Optional
baseDelay?: numberBase delay between retries in ms (default: 1000)
A planning step for the research pipeline
Creates a planning step for the research pipeline
This step uses an LLM to generate a structured research plan based on the query. The plan includes objectives, search queries, relevant factors, data gathering strategy, and expected outcomes.