Class: Google::Cloud::AIPlatform::V1::GenerateContentRequest
- Inherits:
-
Object
- Object
- Google::Cloud::AIPlatform::V1::GenerateContentRequest
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/aiplatform/v1/prediction_service.rb
Overview
Request message for [PredictionService.GenerateContent].
Instance Attribute Summary collapse
-
#contents ⇒ ::Array<::Google::Cloud::AIPlatform::V1::Content>
Required.
-
#generation_config ⇒ ::Google::Cloud::AIPlatform::V1::GenerationConfig
Optional.
-
#model ⇒ ::String
Required.
-
#safety_settings ⇒ ::Array<::Google::Cloud::AIPlatform::V1::SafetySetting>
Optional.
-
#system_instruction ⇒ ::Google::Cloud::AIPlatform::V1::Content
Optional.
-
#tool_config ⇒ ::Google::Cloud::AIPlatform::V1::ToolConfig
Optional.
-
#tools ⇒ ::Array<::Google::Cloud::AIPlatform::V1::Tool>
Optional.
Instance Attribute Details
#contents ⇒ ::Array<::Google::Cloud::AIPlatform::V1::Content>
Returns 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.
499 500 501 502 |
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 499 class GenerateContentRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#generation_config ⇒ ::Google::Cloud::AIPlatform::V1::GenerationConfig
Returns Optional. Generation config.
499 500 501 502 |
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 499 class GenerateContentRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#model ⇒ ::String
Returns Required. The name of the publisher model requested to serve the
prediction. Format:
projects/{project}/locations/{location}/publishers/*/models/*.
499 500 501 502 |
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 499 class GenerateContentRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#safety_settings ⇒ ::Array<::Google::Cloud::AIPlatform::V1::SafetySetting>
Returns Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
499 500 501 502 |
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 499 class GenerateContentRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#system_instruction ⇒ ::Google::Cloud::AIPlatform::V1::Content
Returns 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.
499 500 501 502 |
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 499 class GenerateContentRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#tool_config ⇒ ::Google::Cloud::AIPlatform::V1::ToolConfig
Returns Optional. Tool config. This config is shared for all tools provided in the request.
499 500 501 502 |
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 499 class GenerateContentRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#tools ⇒ ::Array<::Google::Cloud::AIPlatform::V1::Tool>
Returns Optional. A list of Tools the model may use to generate the next
response.
A Tool 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.
499 500 501 502 |
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 499 class GenerateContentRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |