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 buildSpec to ReasoningEngineSpec. Add stepCount to ReinforcementTuningHyperParameters. Add enableDataRetention and enableZeroDataRetention to ToolParallelAiSearch.
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
@@ -8676,6 +8676,27 @@ class ReasoningEngineSpecContainerSpecDict(TypedDict, total=False):
8676
8676
]
8677
8677
8678
8678
8679
+
class ReasoningEngineSpecBuildSpec(_common.BaseModel):
8680
+
"""Specification for building container image."""
8681
+
8682
+
worker_pool: Optional[str] = Field(
8683
+
default=None,
8684
+
description="""Optional. Identifier. The resource name of the Cloud Build WorkerPool to use for the build. Format: `projects/{project}/locations/{location}/workerPools/{worker_pool}`""",
8685
+
)
8686
+
8687
+
8688
+
class ReasoningEngineSpecBuildSpecDict(TypedDict, total=False):
8689
+
"""Specification for building container image."""
8690
+
8691
+
worker_pool: Optional[str]
8692
+
"""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.""",
24177
+
description="""Optional. Additional key-value metadata associated with the feedback.""",
24150
24178
)
24151
24179
event_id: Optional[str] = Field(
24152
24180
default=None,
24153
-
description="""Required. The ID of the event to which the feedback relates to.""",
24181
+
description="""Required. The ID of the event within the session that the feedback relates to.""",
24154
24182
)
24155
24183
feedback_labels: Optional[list[str]] = Field(
24156
-
default=None,
24157
-
description="""Optional. Specific labels for feedback (non-factual, offensive, etc.).""",
24184
+
default=None, description="""feedbackLabels"""
24158
24185
)
24159
24186
feedback_text: Optional[str] = Field(
24160
24187
default=None,
24161
24188
description="""Optional. Qualitative free-form comments provided by the user.""",
24162
24189
)
24163
24190
feedback_type: Optional[FeedbackType] = Field(
24164
-
default=None, description="""Required. The type of feedback provided."""
24191
+
default=None,
24192
+
description="""Required. The coarse-grained type of feedback provided by the user. Must be set to a value other than `FEEDBACK_TYPE_UNSPECIFIED`.""",
24165
24193
)
24166
24194
name: Optional[str] = Field(
24167
24195
default=None,
24168
-
description="""Identifier. The resource name of the feedback entry. Format: 'projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}'.""",
24196
+
description="""Identifier. The resource name. Assigned by the server on create. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}`""",
24169
24197
)
24170
24198
session_id: Optional[str] = Field(
24171
24199
default=None,
24172
-
description="""Required. The ID of the session to which the feedback relates to.""",
24200
+
description="""Required. The ID of the session that the feedback relates to.""",
24173
24201
)
24174
24202
source: Optional[str] = Field(
24175
24203
default=None,
24176
-
description="""Optional. Originating UI surface (e.g. 'ADK Web UI').""",
24204
+
description="""Optional. The surface that the feedback originated from.""",
24177
24205
)
24178
24206
update_time: Optional[datetime.datetime] = Field(
24179
24207
default=None,
24180
-
description="""Output only. Timestamp when the feedback entry was last updated.""",
24208
+
description="""Output only. The time at which the entry was most recently updated.""",
24181
24209
)
24182
24210
user_id: Optional[str] = Field(
24183
-
default=None, description="""Optional. User provided identifier."""
24211
+
default=None,
24212
+
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.""",
24184
24213
)
24185
24214
24186
24215
24187
24216
class FeedbackEntryDict(TypedDict, total=False):
24188
24217
"""A Feedback Entry."""
24189
24218
24190
24219
create_time: Optional[datetime.datetime]
24191
-
"""Output only. Timestamp when the feedback entry was created."""
24220
+
"""Output only. The time at which the entry was created."""
24192
24221
24193
24222
custom_metadata: Optional[dict[str, str]]
24194
-
"""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."""
24223
+
"""Optional. Additional key-value metadata associated with the feedback."""
24195
24224
24196
24225
event_id: Optional[str]
24197
-
"""Required. The ID of the event to which the feedback relates to."""
24226
+
"""Required. The ID of the event within the session that the feedback relates to."""
24198
24227
24199
24228
feedback_labels: Optional[list[str]]
24200
-
"""Optional. Specific labels for feedback (non-factual, offensive, etc.)."""
24229
+
"""feedbackLabels"""
24201
24230
24202
24231
feedback_text: Optional[str]
24203
24232
"""Optional. Qualitative free-form comments provided by the user."""
24204
24233
24205
24234
feedback_type: Optional[FeedbackType]
24206
-
"""Required. The type of feedback provided."""
24235
+
"""Required. The coarse-grained type of feedback provided by the user. Must be set to a value other than `FEEDBACK_TYPE_UNSPECIFIED`."""
24207
24236
24208
24237
name: Optional[str]
24209
-
"""Identifier. The resource name of the feedback entry. Format: 'projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}'."""
24238
+
"""Identifier. The resource name. Assigned by the server on create. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}`"""
24210
24239
24211
24240
session_id: Optional[str]
24212
-
"""Required. The ID of the session to which the feedback relates to."""
24241
+
"""Required. The ID of the session that the feedback relates to."""
24213
24242
24214
24243
source: Optional[str]
24215
-
"""Optional. Originating UI surface (e.g. 'ADK Web UI')."""
24244
+
"""Optional. The surface that the feedback originated from."""
24216
24245
24217
24246
update_time: Optional[datetime.datetime]
24218
-
"""Output only. Timestamp when the feedback entry was last updated."""
24247
+
"""Output only. The time at which the entry was most recently updated."""
24219
24248
24220
24249
user_id: Optional[str]
24221
-
"""Optional. User provided identifier."""
24250
+
"""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.""",
24757
+
description="""Optional. The session events from the originating session.""",
24729
24758
)
24730
24759
name: Optional[str] = Field(
24731
24760
default=None,
24732
-
description="""Identifier. The resource name of the feedback context. Format: 'projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}/feedbackContext'.""",
24761
+
description="""Identifier. The resource name. Assigned by the server on create. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}/feedbackContext`""",
24733
24762
)
24734
24763
24735
24764
24736
24765
class FeedbackContextDict(TypedDict, total=False):
24737
24766
"""A Feedback Context."""
24738
24767
24739
24768
context_events: Optional[list[SessionEventDict]]
24740
-
"""Optional. Events from the conversation relevant to the parent feedback entry."""
24769
+
"""Optional. The session events from the originating session."""
24741
24770
24742
24771
name: Optional[str]
24743
-
"""Identifier. The resource name of the feedback context. Format: 'projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}/feedbackContext'."""
24772
+
"""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