You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add bidiGenerateContentSetup, expireTime, fieldMask, newSessionExpireTime, and uses to AuthToken. Add audioTranscriptionConfig to GenerationConfig. Add buildSpec to ReasoningEngineSpec. Add stepCount to ReinforcementTuningHyperParameters. Add enableDataRetention and enableZeroDataRetention to ToolParallelAiSearch.
FUTURE_COPYBARA_INTEGRATE_REVIEW=#7003 from googleapis:release-please--branches--main 5905f2d
PiperOrigin-RevId: 952092382
Copy file name to clipboardExpand all lines: agentplatform/_genai/types/common.py
+54-25Lines changed: 54 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -8402,6 +8402,27 @@ class ReasoningEngineSpecContainerSpecDict(TypedDict, total=False):
8402
8402
]
8403
8403
8404
8404
8405
+
class ReasoningEngineSpecBuildSpec(_common.BaseModel):
8406
+
"""Specification for building container image."""
8407
+
8408
+
worker_pool: Optional[str] = Field(
8409
+
default=None,
8410
+
description="""Optional. Identifier. The resource name of the Cloud Build WorkerPool to use for the build. Format: `projects/{project}/locations/{location}/workerPools/{worker_pool}`""",
8411
+
)
8412
+
8413
+
8414
+
class ReasoningEngineSpecBuildSpecDict(TypedDict, total=False):
8415
+
"""Specification for building container image."""
8416
+
8417
+
worker_pool: Optional[str]
8418
+
"""Optional. Identifier. The resource name of the Cloud Build WorkerPool to use for the build. Format: `projects/{project}/locations/{location}/workerPools/{worker_pool}`"""
description="""Optional. Additional key-value metadata associated with the feedback. Allows the collect data for which there is no dedicated field in the resource, ex. version, LLM temperature etc.""",
23903
+
description="""Optional. Additional key-value metadata associated with the feedback.""",
23876
23904
)
23877
23905
event_id: Optional[str] = Field(
23878
23906
default=None,
23879
-
description="""Required. The ID of the event to which the feedback relates to.""",
23907
+
description="""Required. The ID of the event within the session that the feedback relates to.""",
23880
23908
)
23881
23909
feedback_labels: Optional[list[str]] = Field(
23882
-
default=None,
23883
-
description="""Optional. Specific labels for feedback (non-factual, offensive, etc.).""",
23910
+
default=None, description="""feedbackLabels"""
23884
23911
)
23885
23912
feedback_text: Optional[str] = Field(
23886
23913
default=None,
23887
23914
description="""Optional. Qualitative free-form comments provided by the user.""",
23888
23915
)
23889
23916
feedback_type: Optional[FeedbackType] = Field(
23890
-
default=None, description="""Required. The type of feedback provided."""
23917
+
default=None,
23918
+
description="""Required. The coarse-grained type of feedback provided by the user. Must be set to a value other than `FEEDBACK_TYPE_UNSPECIFIED`.""",
23891
23919
)
23892
23920
name: Optional[str] = Field(
23893
23921
default=None,
23894
-
description="""Identifier. The resource name of the feedback entry. Format: 'projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}'.""",
23922
+
description="""Identifier. The resource name. Assigned by the server on create. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}`""",
23895
23923
)
23896
23924
session_id: Optional[str] = Field(
23897
23925
default=None,
23898
-
description="""Required. The ID of the session to which the feedback relates to.""",
23926
+
description="""Required. The ID of the session that the feedback relates to.""",
23899
23927
)
23900
23928
source: Optional[str] = Field(
23901
23929
default=None,
23902
-
description="""Optional. Originating UI surface (e.g. 'ADK Web UI').""",
23930
+
description="""Optional. The surface that the feedback originated from.""",
23903
23931
)
23904
23932
update_time: Optional[datetime.datetime] = Field(
23905
23933
default=None,
23906
-
description="""Output only. Timestamp when the feedback entry was last updated.""",
23934
+
description="""Output only. The time at which the entry was most recently updated.""",
23907
23935
)
23908
23936
user_id: Optional[str] = Field(
23909
-
default=None, description="""Optional. User provided identifier."""
23937
+
default=None,
23938
+
description="""Optional. A caller-supplied identifier for the user who provided the feedback. The semantics of this field (for example whether it is an opaque token, a hashed value, or a user-visible identifier) are determined by the calling application.""",
23910
23939
)
23911
23940
23912
23941
23913
23942
class FeedbackEntryDict(TypedDict, total=False):
23914
23943
"""A Feedback Entry."""
23915
23944
23916
23945
create_time: Optional[datetime.datetime]
23917
-
"""Output only. Timestamp when the feedback entry was created."""
23946
+
"""Output only. The time at which the entry was created."""
23918
23947
23919
23948
custom_metadata: Optional[dict[str, str]]
23920
-
"""Optional. Additional key-value metadata associated with the feedback. Allows the collect data for which there is no dedicated field in the resource, ex. version, LLM temperature etc."""
23949
+
"""Optional. Additional key-value metadata associated with the feedback."""
23921
23950
23922
23951
event_id: Optional[str]
23923
-
"""Required. The ID of the event to which the feedback relates to."""
23952
+
"""Required. The ID of the event within the session that the feedback relates to."""
23924
23953
23925
23954
feedback_labels: Optional[list[str]]
23926
-
"""Optional. Specific labels for feedback (non-factual, offensive, etc.)."""
23955
+
"""feedbackLabels"""
23927
23956
23928
23957
feedback_text: Optional[str]
23929
23958
"""Optional. Qualitative free-form comments provided by the user."""
23930
23959
23931
23960
feedback_type: Optional[FeedbackType]
23932
-
"""Required. The type of feedback provided."""
23961
+
"""Required. The coarse-grained type of feedback provided by the user. Must be set to a value other than `FEEDBACK_TYPE_UNSPECIFIED`."""
23933
23962
23934
23963
name: Optional[str]
23935
-
"""Identifier. The resource name of the feedback entry. Format: 'projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}'."""
23964
+
"""Identifier. The resource name. Assigned by the server on create. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}`"""
23936
23965
23937
23966
session_id: Optional[str]
23938
-
"""Required. The ID of the session to which the feedback relates to."""
23967
+
"""Required. The ID of the session that the feedback relates to."""
23939
23968
23940
23969
source: Optional[str]
23941
-
"""Optional. Originating UI surface (e.g. 'ADK Web UI')."""
23970
+
"""Optional. The surface that the feedback originated from."""
23942
23971
23943
23972
update_time: Optional[datetime.datetime]
23944
-
"""Output only. Timestamp when the feedback entry was last updated."""
23973
+
"""Output only. The time at which the entry was most recently updated."""
23945
23974
23946
23975
user_id: Optional[str]
23947
-
"""Optional. User provided identifier."""
23976
+
"""Optional. A caller-supplied identifier for the user who provided the feedback. The semantics of this field (for example whether it is an opaque token, a hashed value, or a user-visible identifier) are determined by the calling application."""
description="""Optional. Events from the conversation relevant to the parent feedback entry.""",
24483
+
description="""Optional. The session events from the originating session.""",
24455
24484
)
24456
24485
name: Optional[str] = Field(
24457
24486
default=None,
24458
-
description="""Identifier. The resource name of the feedback context. Format: 'projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}/feedbackContext'.""",
24487
+
description="""Identifier. The resource name. Assigned by the server on create. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}/feedbackContext`""",
24459
24488
)
24460
24489
24461
24490
24462
24491
class FeedbackContextDict(TypedDict, total=False):
24463
24492
"""A Feedback Context."""
24464
24493
24465
24494
context_events: Optional[list[SessionEventDict]]
24466
-
"""Optional. Events from the conversation relevant to the parent feedback entry."""
24495
+
"""Optional. The session events from the originating session."""
24467
24496
24468
24497
name: Optional[str]
24469
-
"""Identifier. The resource name of the feedback context. Format: 'projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}/feedbackContext'."""
24498
+
"""Identifier. The resource name. Assigned by the server on create. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}/feedbackContext`"""
0 commit comments