PromptVariant

Contains details about a variant of the prompt.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Contains model-specific inference configurations that aren't in the inferenceConfiguration field. To see model-specific inference parameters, see Inference request parameters and response fields for foundation models.

Link copied to clipboard

Specifies a generative AI resource with which to use the prompt.

Link copied to clipboard

Contains inference configurations for the prompt variant.

Link copied to clipboard

An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant.

Link copied to clipboard

The unique identifier of the model or inference profile with which to run inference on the prompt.

Link copied to clipboard

The name of the prompt variant.

Link copied to clipboard

Contains configurations for the prompt template.

Link copied to clipboard

The type of prompt template to use.

Functions

Link copied to clipboard
inline fun copy(block: PromptVariant.Builder.() -> Unit = {}): PromptVariant
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String