GuardedContentContract

org.llm4s.agent.testkit.GuardedContentContract
See theGuardedContentContract companion trait
@Experimental

Attributes

Companion
trait
Source
GuardedContentContract.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

An input guardrail that rewrites a query, replacing QueryMarker with Masked.

An input guardrail that rewrites a query, replacing QueryMarker with Masked.

Attributes

Source
GuardedContentContract.scala
def refusing(guardrail: String, marker: String): InputGuardrail

An input guardrail that refuses everything, its reason holding marker.

An input guardrail that refuses everything, its reason holding marker.

Attributes

Source
GuardedContentContract.scala

An input guardrail that refuses a query holding QueryMarker, with a reason that does not quote it.

An input guardrail that refuses a query holding QueryMarker, with a reason that does not quote it.

Attributes

Source
GuardedContentContract.scala
def refusingOutput(guardrail: String, marker: String): OutputGuardrail

An output guardrail that refuses everything, its reason holding marker.

An output guardrail that refuses everything, its reason holding marker.

Attributes

Source
GuardedContentContract.scala

An input guardrail that refuses a query holding Swear, with a reason that does not quote it.

An input guardrail that refuses a query holding Swear, with a reason that does not quote it.

Attributes

Source
GuardedContentContract.scala

Concrete fields

In a failed run's outcome text.

In a failed run's outcome text.

Attributes

Source
GuardedContentContract.scala
val Masked: String

What maskingCards leaves where QueryMarker was.

What maskingCards leaves where QueryMarker was.

Attributes

Source
GuardedContentContract.scala

In a query a guardrail refuses or rewrites: a card number, say.

In a query a guardrail refuses or rewrites: a card number, say.

Attributes

Source
GuardedContentContract.scala

In a guardrail's reason, and nowhere else a run puts text.

In a guardrail's reason, and nowhere else a run puts text.

Attributes

Source
GuardedContentContract.scala
val Swear: String

A word refusingWords refuses.

A word refusingWords refuses.

Attributes

Source
GuardedContentContract.scala