Skip to content
1 min read · 78 words

Type Alias: PromptAssembledObserverFn

ts
type PromptAssembledObserverFn = (
  observation: PromptAssembledObservation,
) => void;

Defined in: src/batteries/llm/chat_common/types.ts:441

Observe the fully-assembled request a battery is about to dispatch. Injectable + defaulted to absent on every LLM battery, mirroring RawGenerationObserverFn. Fired once per terminal generation, after assembly and before dispatch; purely observational (return value ignored, errors swallowed). The request is handed back AS-IS — see PromptAssembledObservation for the no-redaction contract.

Parameters

ParameterType
observationPromptAssembledObservation

Returns

void