Skip to content

GuardrailStreamOptions

Per-utterance inputs a GuardrailStream needs to build its context.

Defined in: src/core/pipeline/GuardrailPipeline.ts:86

Per-utterance inputs a GuardrailStream needs to build its context.

Properties

PropertyTypeDescriptionDefined in
messages?readonly LLMMessage[]Conversation history to expose on GuardrailContext.messages.src/core/pipeline/GuardrailPipeline.ts:97
onText(text) => void | Promise<void>Receives each piece of text that clears the chain, in order. Remarks Awaited before the next segment is filtered, so a sink that applies backpressure also throttles the guardrail chain.src/core/pipeline/GuardrailPipeline.ts:94
signal?AbortSignalSignal for the in-flight generation, forwarded to every guardrail.src/core/pipeline/GuardrailPipeline.ts:100

© 2026 CompositeVoice. All rights reserved.

Font size
Contrast
Motion
Transparency