LLMToneGuardrail

org.llm4s.agent.guardrails.builtin.LLMToneGuardrail
See theLLMToneGuardrail 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, allowedTones: Set[String], threshold: Double): LLMToneGuardrail

Create an LLM tone guardrail.

Create an LLM tone guardrail.

Attributes

def friendly(client: LLMClient, threshold: Double): LLMToneGuardrail

Create a friendly/casual tone guardrail.

Create a friendly/casual tone guardrail.

Attributes

def professional(client: LLMClient, threshold: Double): LLMToneGuardrail

Create a professional tone guardrail.

Create a professional tone guardrail.

Attributes

def professionalOrFriendly(client: LLMClient, threshold: Double): LLMToneGuardrail

Create a professional-or-friendly tone guardrail.

Create a professional-or-friendly tone guardrail.

Attributes