Interface: TextGuardrailVerdict
Defined in: packages/agentos/src/api/runtime/textGuardrails.ts:59
One stage decision, as onVerdict receives it.
Properties
action
action:
GuardrailAction
Defined in: packages/agentos/src/api/runtime/textGuardrails.ts:61
enforced
enforced:
boolean
Defined in: packages/agentos/src/api/runtime/textGuardrails.ts:63
finalText
finalText:
string|null
Defined in: packages/agentos/src/api/runtime/textGuardrails.ts:77
guardrailId?
optionalguardrailId:string
Defined in: packages/agentos/src/api/runtime/textGuardrails.ts:66
hold?
optionalhold:GuardrailHold
Defined in: packages/agentos/src/api/runtime/textGuardrails.ts:62
originalText
originalText:
string|null
Defined in: packages/agentos/src/api/runtime/textGuardrails.ts:76
Output stage: the reply as the guards judged it and as the caller receives it. Null on the other stages.
reasonCode?
optionalreasonCode:string
Defined in: packages/agentos/src/api/runtime/textGuardrails.ts:67
stage
stage:
"output"|"input"|"toolCall"
Defined in: packages/agentos/src/api/runtime/textGuardrails.ts:60
toolCallId?
optionaltoolCallId:string
Defined in: packages/agentos/src/api/runtime/textGuardrails.ts:72
The module's own number for the call, tc_<step>_<index> (step from 1, index from 0 in the order the model
listed the step's calls); never the provider's or the model's call id.
toolName?
optionaltoolName:string
Defined in: packages/agentos/src/api/runtime/textGuardrails.ts:74
The name of the registered tool the call named, as the host registered it; unregistered when the model named no tool of the call's list.
unavailable
unavailable:
boolean
Defined in: packages/agentos/src/api/runtime/textGuardrails.ts:65
Nothing but a guard that threw, timed out or answered nonsense decided it.