From 3f8e445e867d60359490857a190ee8ea405b020f Mon Sep 17 00:00:00 2001 From: Jaycee Li Date: Wed, 30 Sep 2026 15:21:07 -0700 Subject: [PATCH] feat: Add enum values that were missing from FinishReason and ReinforcementTuningThinkingLevel FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/googleapis/python-aiplatform/pull/7163 from googleapis:release-please--branches--main 8a8d2bfaf1bc65e9802565c17f3248d9240f07ec PiperOrigin-RevId: 991251466 --- agentplatform/_genai/feedback_entries.py | 4 ++-- agentplatform/_genai/types/common.py | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/agentplatform/_genai/feedback_entries.py b/agentplatform/_genai/feedback_entries.py index b214646ad0..2d8928bf61 100644 --- a/agentplatform/_genai/feedback_entries.py +++ b/agentplatform/_genai/feedback_entries.py @@ -532,7 +532,7 @@ def _update( Args: name (str): Required. Name of the Feedback Entry to update. Format: `projects/{project}/locations/{location}/reasoningEngines/{resource_id}/feedbackEntries/{feedback_entry_id}`. - feedback_type (shared.FeedbackType): Optional. The type of feedback provided. + feedback_type (FeedbackType): Optional. The type of feedback provided. config (UpdateRuntimeFeedbackEntryConfig): Optional. The configuration for updating the Feedback Entry. Returns: @@ -1245,7 +1245,7 @@ async def _update( Args: name (str): Required. Name of the Feedback Entry to update. Format: `projects/{project}/locations/{location}/reasoningEngines/{resource_id}/feedbackEntries/{feedback_entry_id}`. - feedback_type (shared.FeedbackType): Optional. The type of feedback provided. + feedback_type (FeedbackType): Optional. The type of feedback provided. config (UpdateRuntimeFeedbackEntryConfig): Optional. The configuration for updating the Feedback Entry. Returns: diff --git a/agentplatform/_genai/types/common.py b/agentplatform/_genai/types/common.py index 4c3da8b398..a02e4bdec7 100644 --- a/agentplatform/_genai/types/common.py +++ b/agentplatform/_genai/types/common.py @@ -242,7 +242,7 @@ class State(_common.CaseInSensitiveEnum): class MemoryType(_common.CaseInSensitiveEnum): - """The type of the memory.""" + """Represents the type of the memory. If not set, the `NATURAL_LANGUAGE_COLLECTION` type is used. If `STRUCTURED_COLLECTION` or `STRUCTURED_PROFILE` is used, then `structured_data` must be provided.""" MEMORY_TYPE_UNSPECIFIED = "MEMORY_TYPE_UNSPECIFIED" """Represents an unspecified memory type. This value should not be used.""" @@ -489,14 +489,14 @@ class QuotaState(_common.CaseInSensitiveEnum): class FeedbackType(_common.CaseInSensitiveEnum): - """The type of the feedback.""" + """The coarse-grained type of feedback provided by the user. Must be set to a value other than `FEEDBACK_TYPE_UNSPECIFIED`.""" FEEDBACK_TYPE_UNSPECIFIED = "FEEDBACK_TYPE_UNSPECIFIED" - """Default value.""" + """This is the default value meaning the type has not been set.""" THUMBS_UP = "THUMBS_UP" - """Indicates positive feedback (e.g., a "thumbs up").""" + """Indicates positive feedback.""" THUMBS_DOWN = "THUMBS_DOWN" - """Indicates a thumbs down feedback (e.g., a "thumbs down").""" + """Indicates negative feedback.""" class Encoding(_common.CaseInSensitiveEnum):