ValidationMode

org.llm4s.agent.guardrails.ValidationMode
See theValidationMode companion trait

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case object All extends ValidationMode

All guardrails must pass (default).

All guardrails must pass (default).

Runs all guardrails even if some fail, aggregating all errors. This is the strictest mode - useful for safety-critical validation where all checks must succeed.

Example: Input must pass profanity filter AND length check AND custom validator

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
All.type
case object Any extends ValidationMode

At least one guardrail must pass.

At least one guardrail must pass.

Returns success on first passing guardrail. Useful for OR-style validation where multiple alternatives are acceptable.

Example: Content must be in English OR Spanish OR French

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Any.type
case object First extends ValidationMode

Returns on first result (success or failure).

Returns on first result (success or failure).

Useful for expensive guardrails where order matters and you want to avoid running all checks.

Example: Check cheap validation first, then expensive API call only if needed

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
First.type

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror