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
| Property | Type | Description | Defined 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? | AbortSignal | Signal for the in-flight generation, forwarded to every guardrail. | src/core/pipeline/GuardrailPipeline.ts:100 |