ReasoningPlanSettings interface

Settings for creating a reasoning plan session.

Two modes of operation: - Event mode: provide events. The planning LLM is told about the available events and designs the spec around them. At evaluation time, events are emitted via onLLMResponse. - Text mode: omit events, provide onResponse. The evaluation LLM returns free-form text/JSON, passed through to onResponse. - Both can be provided: tool-calling mode with onResponse capturing any text the LLM generates alongside tool calls.

Signature:

export interface ReasoningPlanSettings

Properties

Property Type Description

analysisIntervalSecs?

number

(Optional) How often (in seconds) the evaluation runs. Informs the planner about the analysis cadence.

averageResponseTimeMs?

number

(Optional)

contextDocuments?

string[]

(Optional) Reference documents (markdown) providing domain context for the planning LLM. These are included in the system instruction and cached across frames.

events?

EventDeclaration[]

(Optional)

localAnalysisTools?

LocalAnalysisConfig[]

(Optional) Local analysis tools available for the planner to consider. Each tool config describes the tool, its data window, and aggregation strategy.

onError?

(error: string) ⇒ void

(Optional)

onProposedSpec?

(spec: ReasoningSpec) ⇒ void

(Optional)

onResponse?

(response: unknown) ⇒ void

(Optional)

provider

ReasoningProvider

query

string