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
OptionalcustomPrompt?: stringCustom system prompt to override the default
Optionalllm?: LanguageModelV1Language model to use for generating the plan (falls back to state.defaultLLM if not provided)
Optionaltemperature?: numberTemperature setting for the language model (0.0-1.0)
OptionalincludeInResults?: booleanWhether to include the plan in the final research results
Optionalretry?: { maxRetries?: number; baseDelay?: number }Retry configuration for language model calls Useful for handling transient errors in LLM services
OptionalmaxRetries?: numberMaximum number of retries (default: 2)
OptionalbaseDelay?: 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.