View Source GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateContentRequest (google_api_ai_platform v0.13.0)
Request message for [PredictionService.GenerateContent].
Attributes
-
contents
(type:list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Content.t)
, default:nil
) - Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request. -
generationConfig
(type:GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfig.t
, default:nil
) - Optional. Generation config. -
safetySettings
(type:list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SafetySetting.t)
, default:nil
) - Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates. -
systemInstruction
(type:GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Content.t
, default:nil
) - Optional. The user provided system instructions for the model. Note: only text should be used in parts and content in each part will be in a separate paragraph. -
toolConfig
(type:GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolConfig.t
, default:nil
) - Optional. Tool config. This config is shared for all tools provided in the request. -
tools
(type:list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Tool.t)
, default:nil
) - Optional. A list ofTools
the model may use to generate the next response. ATool
is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateContentRequest{ contents: [GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Content.t()] | nil, generationConfig: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfig.t() | nil, safetySettings: [GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SafetySetting.t()] | nil, systemInstruction: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Content.t() | nil, toolConfig: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolConfig.t() | nil, tools: [GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Tool.t()] | nil }
Functions
Unwrap a decoded JSON object into its complex fields.