GuardrailBlocked

org.llm4s.agent.graph.middleware.GuardrailBlocked
final case class GuardrailBlocked(guardrail: String, reason: String) extends LLMError, NonRecoverableError

A guardrail refused the run's input or answer. guardrail is the first failing guardrail's name and reason every failing guardrail's error, joined with "; ". The tool loop blocks the run with it (RunResult.Failed, the thread usable), and Agent reports it as AgentStatus.Blocked.

Attributes

Source
GuardrailBlocked.scala
Graph
Supertypes
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Optional error code for programmatic handling

Optional error code for programmatic handling

Attributes

Inherited from:
LLMError
Source
LLMError.scala

Error correlation IDs for debugging

Error correlation IDs for debugging

Attributes

Inherited from:
LLMError
Source
LLMError.scala

Formatted error message with context

Formatted error message with context

Attributes

Inherited from:
LLMError
Source
LLMError.scala

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Concrete fields

override val context: Map[String, String]

Additional context information

Additional context information

Attributes

Source
GuardrailBlocked.scala

Human-readable error message

Human-readable error message

Attributes

Source
GuardrailBlocked.scala