GuardrailVerdict

org.llm4s.agent.graph.middleware.GuardrailVerdict

A reviewer's verdict on a refused query or answer.

Attributes

Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

case Allow extends GuardrailVerdict

Let the refused text through unchanged.

Let the refused text through unchanged.

Attributes

case Block extends GuardrailVerdict

Refuse it, as GuardrailMiddleware would have: the run is blocked with GuardrailBlocked.

Refuse it, as GuardrailMiddleware would have: the run is blocked with GuardrailBlocked.

Attributes

final case class Edit(text: String)

Use text in its place; it is not checked by the guardrails again, since the reviewer wrote it.

Use text in its place; it is not checked by the guardrails again, since the reviewer wrote it.

Attributes