콘텐츠로 이동

RealtimeOutputGuardrail

이 콘텐츠는 아직 번역되지 않았습니다.

  • OutputGuardrail
execute: OutputGuardrailFunction<"text", unknown>;

The function that performs the guardrail check.

OutputGuardrail.execute


name: string;

The name of the guardrail.

OutputGuardrail.name


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.