Skip to main content

Interface: GuardrailOutputVerdict

Defined in: packages/agentos/src/safety/guardrails/guardrailDispatcher.ts:126

The verdict on a reply, as GuardrailOutputOptions.onVerdict receives it.

Properties​

action​

action: GuardrailAction

Defined in: packages/agentos/src/safety/guardrails/guardrailDispatcher.ts:128


finalText​

finalText: string | null

Defined in: packages/agentos/src/safety/guardrails/guardrailDispatcher.ts:133

The text the caller receives: the replacement after a block with one, the reply after a pass, else null.


guardrailId?​

optional guardrailId: string

Defined in: packages/agentos/src/safety/guardrails/guardrailDispatcher.ts:130

The id of the guard that blocked, when it has one.


originalText​

originalText: string | null

Defined in: packages/agentos/src/safety/guardrails/guardrailDispatcher.ts:135

The reply's text as the guards judged it, before any rewrite; null for a verdict on a streamed delta, which judged no whole reply.


reasonCode?​

optional reasonCode: string

Defined in: packages/agentos/src/safety/guardrails/guardrailDispatcher.ts:131


streamId​

streamId: string

Defined in: packages/agentos/src/safety/guardrails/guardrailDispatcher.ts:127


toolCallIds?​

optional toolCallIds: string[]

Defined in: packages/agentos/src/safety/guardrails/guardrailDispatcher.ts:142

The ids of the actionable tool calls (executionMode: 'external') a block withheld from the caller: the calls of the tool-call chunk it ended the stream in place of, or, in hold mode, of the tool-call chunk after the text it blocked. AgentOS drops the pause the runtime saved for them when the turn stopped for them. Unset when a verdict withheld no actionable call.