Class: Google::Cloud::AIPlatform::V1::GenerateContentResponse::PromptFeedback

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

Content filter results for a prompt sent in the request.

Defined Under Namespace

Modules: BlockedReason

Instance Attribute Summary collapse

Instance Attribute Details

#block_reason::Google::Cloud::AIPlatform::V1::GenerateContentResponse::PromptFeedback::BlockedReason (readonly)

Returns Output only. Blocked reason.



573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 573

class PromptFeedback
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Blocked reason enumeration.
  module BlockedReason
    # Unspecified blocked reason.
    BLOCKED_REASON_UNSPECIFIED = 0

    # Candidates blocked due to safety.
    SAFETY = 1

    # Candidates blocked due to other reason.
    OTHER = 2

    # Candidates blocked due to the terms which are included from the
    # terminology blocklist.
    BLOCKLIST = 3

    # Candidates blocked due to prohibited content.
    PROHIBITED_CONTENT = 4
  end
end

#block_reason_message::String (readonly)

Returns Output only. A readable block reason message.

Returns:

  • (::String)

    Output only. A readable block reason message.



573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 573

class PromptFeedback
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Blocked reason enumeration.
  module BlockedReason
    # Unspecified blocked reason.
    BLOCKED_REASON_UNSPECIFIED = 0

    # Candidates blocked due to safety.
    SAFETY = 1

    # Candidates blocked due to other reason.
    OTHER = 2

    # Candidates blocked due to the terms which are included from the
    # terminology blocklist.
    BLOCKLIST = 3

    # Candidates blocked due to prohibited content.
    PROHIBITED_CONTENT = 4
  end
end

#safety_ratings::Array<::Google::Cloud::AIPlatform::V1::SafetyRating> (readonly)

Returns Output only. Safety ratings.

Returns:



573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 573

class PromptFeedback
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Blocked reason enumeration.
  module BlockedReason
    # Unspecified blocked reason.
    BLOCKED_REASON_UNSPECIFIED = 0

    # Candidates blocked due to safety.
    SAFETY = 1

    # Candidates blocked due to other reason.
    OTHER = 2

    # Candidates blocked due to the terms which are included from the
    # terminology blocklist.
    BLOCKLIST = 3

    # Candidates blocked due to prohibited content.
    PROHIBITED_CONTENT = 4
  end
end