JGuardrail

org.llm4s.javaapi.JGuardrail
final class JGuardrail extends JOutputGuardrail

A built-in guardrail that checks an agent's query, for JAgentBuilder.inputGuardrails, or its final answer, for JAgentBuilder.outputGuardrails (#2476). Obtain one from JGuardrails.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Inherited 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

Inherited from:
JOutputGuardrail
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
Inherited from:
JOutputGuardrail