Skip to content

Commit 73a1a09

Browse files
jaycee-licopybara-github
authored andcommitted
feat: Add missing enum values to FinishReason and ReinforcementTuningThinkingLevel
PiperOrigin-RevId: 1019626832
1 parent d309536 commit 73a1a09

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

‎agentplatform/_genai/feedback_entries.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ def _update(
532532
Args:
533533
name (str): Required. Name of the Feedback Entry to update. Format:
534534
`projects/{project}/locations/{location}/reasoningEngines/{resource_id}/feedbackEntries/{feedback_entry_id}`.
535-
feedback_type (shared.FeedbackType): Optional. The type of feedback provided.
535+
feedback_type (FeedbackType): Optional. The type of feedback provided.
536536
config (UpdateRuntimeFeedbackEntryConfig): Optional. The configuration for updating the Feedback Entry.
537537
538538
Returns:
@@ -1245,7 +1245,7 @@ async def _update(
12451245
Args:
12461246
name (str): Required. Name of the Feedback Entry to update. Format:
12471247
`projects/{project}/locations/{location}/reasoningEngines/{resource_id}/feedbackEntries/{feedback_entry_id}`.
1248-
feedback_type (shared.FeedbackType): Optional. The type of feedback provided.
1248+
feedback_type (FeedbackType): Optional. The type of feedback provided.
12491249
config (UpdateRuntimeFeedbackEntryConfig): Optional. The configuration for updating the Feedback Entry.
12501250
12511251
Returns:

‎agentplatform/_genai/types/common.py‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ class State(_common.CaseInSensitiveEnum):
243243

244244

245245
class MemoryType(_common.CaseInSensitiveEnum):
246-
"""The type of the memory."""
246+
"""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."""
247247

248248
MEMORY_TYPE_UNSPECIFIED = "MEMORY_TYPE_UNSPECIFIED"
249249
"""Represents an unspecified memory type. This value should not be used."""
@@ -430,7 +430,7 @@ class SkillSource(_common.CaseInSensitiveEnum):
430430

431431

432432
class SkillState(_common.CaseInSensitiveEnum):
433-
"""State of the Skill."""
433+
"""Output only. The state of the Skill."""
434434

435435
STATE_UNSPECIFIED = "STATE_UNSPECIFIED"
436436
"""The state of the Skill is unspecified."""
@@ -501,14 +501,14 @@ class QuotaState(_common.CaseInSensitiveEnum):
501501

502502

503503
class FeedbackType(_common.CaseInSensitiveEnum):
504-
"""The type of the feedback."""
504+
"""The coarse-grained type of feedback provided by the user. Must be set to a value other than `FEEDBACK_TYPE_UNSPECIFIED`."""
505505

506506
FEEDBACK_TYPE_UNSPECIFIED = "FEEDBACK_TYPE_UNSPECIFIED"
507-
"""Default value."""
507+
"""This is the default value meaning the type has not been set."""
508508
THUMBS_UP = "THUMBS_UP"
509-
"""Indicates positive feedback (e.g., a "thumbs up")."""
509+
"""Indicates positive feedback."""
510510
THUMBS_DOWN = "THUMBS_DOWN"
511-
"""Indicates a thumbs down feedback (e.g., a "thumbs down")."""
511+
"""Indicates negative feedback."""
512512

513513

514514
class Encoding(_common.CaseInSensitiveEnum):
@@ -675,13 +675,13 @@ class ServingProfileScope(_common.CaseInSensitiveEnum):
675675
"""The specific API this ServingProfile applies to."""
676676

677677
SERVING_PROFILE_SCOPE_UNSPECIFIED = "SERVING_PROFILE_SCOPE_UNSPECIFIED"
678-
"""Unspecified scope."""
678+
"""Default value. This value is unused. When users create a ServingProfile, they must choose a scope."""
679679
GEMINI_LIVE = "GEMINI_LIVE"
680-
"""Scope for Gemini Live."""
680+
"""The scope for Gemini Live."""
681681
INTERACTIONS_API = "INTERACTIONS_API"
682-
"""Scope for Interactions API."""
682+
"""The scope for Interactions API."""
683683
RESPONSE_API = "RESPONSE_API"
684-
"""Scope for Response API."""
684+
"""The scope for Response API."""
685685

686686

687687
class EvaluationExperimentMergeStrategy(_common.CaseInSensitiveEnum):

0 commit comments

Comments
 (0)