Skip to content

Commit 7e40f53

Browse files
sararobcopybara-github
authored andcommitted
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
1 parent 922fa6a commit 7e40f53

2 files changed

Lines changed: 60 additions & 25 deletions

File tree

agentplatform/_genai/types/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,6 +1404,9 @@
14041404
from .common import ReasoningEngineRuntimeRevisionDict
14051405
from .common import ReasoningEngineRuntimeRevisionOrDict
14061406
from .common import ReasoningEngineSpec
1407+
from .common import ReasoningEngineSpecBuildSpec
1408+
from .common import ReasoningEngineSpecBuildSpecDict
1409+
from .common import ReasoningEngineSpecBuildSpecOrDict
14071410
from .common import ReasoningEngineSpecContainerSpec
14081411
from .common import ReasoningEngineSpecContainerSpecDict
14091412
from .common import ReasoningEngineSpecContainerSpecOrDict
@@ -2521,6 +2524,9 @@
25212524
"ReasoningEngineSpecContainerSpec",
25222525
"ReasoningEngineSpecContainerSpecDict",
25232526
"ReasoningEngineSpecContainerSpecOrDict",
2527+
"ReasoningEngineSpecBuildSpec",
2528+
"ReasoningEngineSpecBuildSpecDict",
2529+
"ReasoningEngineSpecBuildSpecOrDict",
25242530
"ReasoningEngineSpec",
25252531
"ReasoningEngineSpecDict",
25262532
"ReasoningEngineSpecOrDict",

agentplatform/_genai/types/common.py

Lines changed: 54 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8402,6 +8402,27 @@ class ReasoningEngineSpecContainerSpecDict(TypedDict, total=False):
84028402
]
84038403

84048404

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}`"""
8419+
8420+
8421+
ReasoningEngineSpecBuildSpecOrDict = Union[
8422+
ReasoningEngineSpecBuildSpec, ReasoningEngineSpecBuildSpecDict
8423+
]
8424+
8425+
84058426
class ReasoningEngineSpec(_common.BaseModel):
84068427
"""The specification of an agent engine."""
84078428

@@ -8445,6 +8466,10 @@ class ReasoningEngineSpec(_common.BaseModel):
84458466
default=None,
84468467
description="""Deploy from a container image with a defined entrypoint and commands.""",
84478468
)
8469+
build_spec: Optional[ReasoningEngineSpecBuildSpec] = Field(
8470+
default=None,
8471+
description="""Optional. Configuration for building container image.""",
8472+
)
84488473

84498474

84508475
class ReasoningEngineSpecDict(TypedDict, total=False):
@@ -8480,6 +8505,9 @@ class ReasoningEngineSpecDict(TypedDict, total=False):
84808505
container_spec: Optional[ReasoningEngineSpecContainerSpecDict]
84818506
"""Deploy from a container image with a defined entrypoint and commands."""
84828507

8508+
build_spec: Optional[ReasoningEngineSpecBuildSpecDict]
8509+
"""Optional. Configuration for building container image."""
8510+
84838511

84848512
ReasoningEngineSpecOrDict = Union[ReasoningEngineSpec, ReasoningEngineSpecDict]
84858513

@@ -23868,83 +23896,84 @@ class FeedbackEntry(_common.BaseModel):
2386823896

2386923897
create_time: Optional[datetime.datetime] = Field(
2387023898
default=None,
23871-
description="""Output only. Timestamp when the feedback entry was created.""",
23899+
description="""Output only. The time at which the entry was created.""",
2387223900
)
2387323901
custom_metadata: Optional[dict[str, str]] = Field(
2387423902
default=None,
23875-
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.""",
2387623904
)
2387723905
event_id: Optional[str] = Field(
2387823906
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.""",
2388023908
)
2388123909
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"""
2388423911
)
2388523912
feedback_text: Optional[str] = Field(
2388623913
default=None,
2388723914
description="""Optional. Qualitative free-form comments provided by the user.""",
2388823915
)
2388923916
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`.""",
2389123919
)
2389223920
name: Optional[str] = Field(
2389323921
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}`""",
2389523923
)
2389623924
session_id: Optional[str] = Field(
2389723925
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.""",
2389923927
)
2390023928
source: Optional[str] = Field(
2390123929
default=None,
23902-
description="""Optional. Originating UI surface (e.g. 'ADK Web UI').""",
23930+
description="""Optional. The surface that the feedback originated from.""",
2390323931
)
2390423932
update_time: Optional[datetime.datetime] = Field(
2390523933
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.""",
2390723935
)
2390823936
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.""",
2391023939
)
2391123940

2391223941

2391323942
class FeedbackEntryDict(TypedDict, total=False):
2391423943
"""A Feedback Entry."""
2391523944

2391623945
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."""
2391823947

2391923948
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."""
2392123950

2392223951
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."""
2392423953

2392523954
feedback_labels: Optional[list[str]]
23926-
"""Optional. Specific labels for feedback (non-factual, offensive, etc.)."""
23955+
"""feedbackLabels"""
2392723956

2392823957
feedback_text: Optional[str]
2392923958
"""Optional. Qualitative free-form comments provided by the user."""
2393023959

2393123960
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`."""
2393323962

2393423963
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}`"""
2393623965

2393723966
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."""
2393923968

2394023969
source: Optional[str]
23941-
"""Optional. Originating UI surface (e.g. 'ADK Web UI')."""
23970+
"""Optional. The surface that the feedback originated from."""
2394223971

2394323972
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."""
2394523974

2394623975
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."""
2394823977

2394923978

2395023979
FeedbackEntryOrDict = Union[FeedbackEntry, FeedbackEntryDict]
@@ -24451,22 +24480,22 @@ class FeedbackContext(_common.BaseModel):
2445124480

2445224481
context_events: Optional[list[SessionEvent]] = Field(
2445324482
default=None,
24454-
description="""Optional. Events from the conversation relevant to the parent feedback entry.""",
24483+
description="""Optional. The session events from the originating session.""",
2445524484
)
2445624485
name: Optional[str] = Field(
2445724486
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`""",
2445924488
)
2446024489

2446124490

2446224491
class FeedbackContextDict(TypedDict, total=False):
2446324492
"""A Feedback Context."""
2446424493

2446524494
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."""
2446724496

2446824497
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`"""
2447024499

2447124500

2447224501
FeedbackContextOrDict = Union[FeedbackContext, FeedbackContextDict]

0 commit comments

Comments
 (0)