跳转到内容

RealtimeOutputGuardrail

此内容尚不支持你的语言。

  • OutputGuardrail
execute: OutputGuardrailFunction<"text">;

The function that performs the guardrail check.

OutputGuardrail.execute

name: string;

The name of the guardrail.

OutputGuardrail.name

optional policyHint: string;

This will be passed to the model to inform it about why the guardrail was triggered and to correct the behavior. If it’s not specified the name of your guardrail will be passed instead.