Class: Google::Cloud::AIPlatform::V1::GenerateContentRequest

Inherits:
Object
  • Object
show all
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

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.

Returns:

  • (::Array<::Google::Cloud::AIPlatform::V1::Content>)

    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.



517
518
519
520
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 517

class GenerateContentRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#generation_config::Google::Cloud::AIPlatform::V1::GenerationConfig

Returns Optional. Generation config.

Returns:



517
518
519
520
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 517

class GenerateContentRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#model::String

Returns Required. The fully qualified name of the publisher model or tuned model endpoint to use.

Publisher model format: projects/{project}/locations/{location}/publishers/*/models/*

Tuned model endpoint format: projects/{project}/locations/{location}/endpoints/{endpoint}.

Returns:

  • (::String)

    Required. The fully qualified name of the publisher model or tuned model endpoint to use.

    Publisher model format: projects/{project}/locations/{location}/publishers/*/models/*

    Tuned model endpoint format: projects/{project}/locations/{location}/endpoints/{endpoint}



517
518
519
520
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 517

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.

Returns:



517
518
519
520
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 517

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.

Returns:

  • (::Google::Cloud::AIPlatform::V1::Content)

    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.



517
518
519
520
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 517

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.

Returns:



517
518
519
520
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 517

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.

Returns:

  • (::Array<::Google::Cloud::AIPlatform::V1::Tool>)

    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.



517
518
519
520
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 517

class GenerateContentRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end