View Source GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt (google_api_ai_platform v0.24.0)
Prompt variation that stores preambles in separate fields.
Attributes
-
context(type:GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Content.t, default:nil) - Preamble: The context of the prompt. -
examples(type:list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SchemaPromptSpecPartList.t), default:nil) - Preamble: A set of examples for expected model response. -
infillPrefix(type:String.t, default:nil) - Preamble: For infill prompt, the prefix before expected model response. -
infillSuffix(type:String.t, default:nil) - Preamble: For infill prompt, the suffix after expected model response. -
inputPrefixes(type:list(String.t), default:nil) - Preamble: The input prefixes before each example input. -
outputPrefixes(type:list(String.t), default:nil) - Preamble: The output prefixes before each example output. -
predictionInputs(type:list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SchemaPromptSpecPartList.t), default:nil) - Preamble: The input test data for prediction. Each PartList in this field represents one text-only input set for a single model request. -
promptMessage(type:GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage.t, default:nil) - The prompt message.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt{ context: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Content.t() | nil, examples: [ GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SchemaPromptSpecPartList.t() ] | nil, infillPrefix: String.t() | nil, infillSuffix: String.t() | nil, inputPrefixes: [String.t()] | nil, outputPrefixes: [String.t()] | nil, predictionInputs: [ GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SchemaPromptSpecPartList.t() ] | nil, promptMessage: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage.t() | nil }