GuardrailTopicConfig

data class GuardrailTopicConfig(val definition: String, val examples: List<String>? = null, val inputAction: GuardrailTopicAction? = null, val inputEnabled: Boolean? = null, val name: String, val outputAction: GuardrailTopicAction? = null, val outputEnabled: Boolean? = null, val type: GuardrailTopicType)

Topic config in topic policy.

Constructors

Link copied to clipboard
constructor(definition: String, examples: List<String>? = null, inputAction: GuardrailTopicAction? = null, inputEnabled: Boolean? = null, name: String, outputAction: GuardrailTopicAction? = null, outputEnabled: Boolean? = null, type: GuardrailTopicType)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Definition of topic in topic policy

Link copied to clipboard
val examples: List<String>? = null

List of text examples

Link copied to clipboard
Link copied to clipboard
val inputEnabled: Boolean? = null
Link copied to clipboard

Name of topic in topic policy

Link copied to clipboard
Link copied to clipboard
val outputEnabled: Boolean? = null
Link copied to clipboard

Specifies to deny the topic.