LLMSafetyGuardrail

org.llm4s.agent.guardrails.builtin.LLMSafetyGuardrail
See theLLMSafetyGuardrail companion class

Attributes

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

Members list

Value members

Concrete methods

def apply(client: LLMClient, threshold: Double): LLMSafetyGuardrail

Create a standard LLM safety guardrail.

Create a standard LLM safety guardrail.

Attributes

Create a child-safe content guardrail.

Create a child-safe content guardrail.

Attributes

Create a strict safety guardrail (higher threshold).

Create a strict safety guardrail (higher threshold).

Attributes

def withCustomCriteria(client: LLMClient, customCriteria: String, threshold: Double): LLMSafetyGuardrail

Create a safety guardrail with custom additional criteria.

Create a safety guardrail with custom additional criteria.

Attributes