JOutputGuardrail

org.llm4s.javaapi.JOutputGuardrail
sealed class JOutputGuardrail

A built-in guardrail that checks an agent's final answer, for JAgentBuilder.outputGuardrails (#2476). Obtain one from JGuardrails. A JGuardrail checks the answer too, and the query as well.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class JGuardrail

Members list

Value members

Concrete methods

def name(): String

The guardrail's name, as a blocked turn's status().guardrail() reports it; empty for one that was refused.

The guardrail's name, as a blocked turn's status().guardrail() reports it; empty for one that was refused.

Attributes

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any