Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions .librarian/state.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-ai-generativelanguage
version: 0.9.0
last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd
last_generated_commit: ef6a532bfd9ab7a944bdedd64c69a2b4042db58b
apis:
- path: google/ai/generativelanguage/v1
service_config: generativelanguage_v1.yaml
Expand Down Expand Up @@ -134,7 +134,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-apps-chat
version: 0.4.0
last_generated_commit: e8365a7f88fabe8717cb8322b8ce784b03b6daea
last_generated_commit: ef6a532bfd9ab7a944bdedd64c69a2b4042db58b
apis:
- path: google/chat/v1
service_config: chat_v1.yaml
Expand Down Expand Up @@ -293,7 +293,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-alloydb
version: 0.6.0
last_generated_commit: effe5c4fa816021e724ca856d5640f2e55b14a8b
last_generated_commit: ef6a532bfd9ab7a944bdedd64c69a2b4042db58b
apis:
- path: google/cloud/alloydb/v1beta
service_config: alloydb_v1beta.yaml
Expand Down Expand Up @@ -473,7 +473,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-artifact-registry
version: 1.18.0
last_generated_commit: 535d161c24965e9ed1a0b27032cc1c8b4beab818
last_generated_commit: ef6a532bfd9ab7a944bdedd64c69a2b4042db58b
apis:
- path: google/devtools/artifactregistry/v1
service_config: artifactregistry_v1.yaml
Expand Down Expand Up @@ -990,7 +990,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-build
version: 3.34.0
last_generated_commit: 535d161c24965e9ed1a0b27032cc1c8b4beab818
last_generated_commit: ef6a532bfd9ab7a944bdedd64c69a2b4042db58b
apis:
- path: google/devtools/cloudbuild/v1
service_config: cloudbuild_v1.yaml
Expand Down Expand Up @@ -1344,7 +1344,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-databasecenter
version: 0.1.0
last_generated_commit: 9a665b700840373e253db5af289d7df2a4fb41b9
last_generated_commit: ef6a532bfd9ab7a944bdedd64c69a2b4042db58b
apis:
- path: google/cloud/databasecenter/v1beta
service_config: databasecenter_v1beta.yaml
Expand Down Expand Up @@ -1576,7 +1576,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-dialogflow
version: 2.44.0
last_generated_commit: c2db528a3e4d12b95666c719ee0db30a3d4c78ad
last_generated_commit: ef6a532bfd9ab7a944bdedd64c69a2b4042db58b
apis:
- path: google/cloud/dialogflow/v2beta1
service_config: dialogflow_v2beta1.yaml
Expand All @@ -1595,7 +1595,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-dialogflow-cx
version: 2.1.0
last_generated_commit: c2db528a3e4d12b95666c719ee0db30a3d4c78ad
last_generated_commit: ef6a532bfd9ab7a944bdedd64c69a2b4042db58b
apis:
- path: google/cloud/dialogflow/cx/v3
service_config: dialogflow_v3.yaml
Expand Down Expand Up @@ -1635,7 +1635,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-dlp
version: 3.33.0
last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd
last_generated_commit: ef6a532bfd9ab7a944bdedd64c69a2b4042db58b
apis:
- path: google/privacy/dlp/v2
service_config: dlp_v2.yaml
Expand Down Expand Up @@ -1879,7 +1879,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-geminidataanalytics
version: 0.7.0
last_generated_commit: effe5c4fa816021e724ca856d5640f2e55b14a8b
last_generated_commit: ef6a532bfd9ab7a944bdedd64c69a2b4042db58b
apis:
- path: google/cloud/geminidataanalytics/v1beta
service_config: geminidataanalytics_v1beta.yaml
Expand Down Expand Up @@ -2331,7 +2331,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-memorystore
version: 0.2.0
last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd
last_generated_commit: ef6a532bfd9ab7a944bdedd64c69a2b4042db58b
apis:
- path: google/cloud/memorystore/v1beta
service_config: memorystore_v1beta.yaml
Expand Down Expand Up @@ -2862,7 +2862,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-recaptcha-enterprise
version: 1.29.0
last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd
last_generated_commit: ef6a532bfd9ab7a944bdedd64c69a2b4042db58b
apis:
- path: google/cloud/recaptchaenterprise/v1
service_config: recaptchaenterprise_v1.yaml
Expand Down Expand Up @@ -4262,7 +4262,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: googleapis-common-protos
version: 1.72.0
last_generated_commit: effe5c4fa816021e724ca856d5640f2e55b14a8b
last_generated_commit: ef6a532bfd9ab7a944bdedd64c69a2b4042db58b
apis:
- path: google/api
service_config: serviceconfig.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,21 @@
DynamicRetrievalConfig,
ExecutableCode,
FileData,
FileSearch,
FunctionCall,
FunctionCallingConfig,
FunctionDeclaration,
FunctionResponse,
FunctionResponseBlob,
FunctionResponsePart,
GoogleMaps,
GoogleSearchRetrieval,
GroundingPassage,
GroundingPassages,
Modality,
ModalityTokenCount,
Part,
RetrievalConfig,
Schema,
Tool,
ToolConfig,
Expand Down Expand Up @@ -325,17 +328,20 @@
"DynamicRetrievalConfig",
"ExecutableCode",
"FileData",
"FileSearch",
"FunctionCall",
"FunctionCallingConfig",
"FunctionDeclaration",
"FunctionResponse",
"FunctionResponseBlob",
"FunctionResponsePart",
"GoogleMaps",
"GoogleSearchRetrieval",
"GroundingPassage",
"GroundingPassages",
"ModalityTokenCount",
"Part",
"RetrievalConfig",
"Schema",
"Tool",
"ToolConfig",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ async def sample_generate_content():
Args:
request (Optional[Union[google.ai.generativelanguage_v1.types.GenerateContentRequest, dict]]):
The request object. Request to generate a completion from
the model. NEXT ID: 18
the model.
model (:class:`str`):
Required. The name of the ``Model`` to use for
generating the completion.
Expand Down Expand Up @@ -493,7 +493,7 @@ async def sample_stream_generate_content():
Args:
request (Optional[Union[google.ai.generativelanguage_v1.types.GenerateContentRequest, dict]]):
The request object. Request to generate a completion from
the model. NEXT ID: 18
the model.
model (:class:`str`):
Required. The name of the ``Model`` to use for
generating the completion.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ def sample_generate_content():
Args:
request (Union[google.ai.generativelanguage_v1.types.GenerateContentRequest, dict]):
The request object. Request to generate a completion from
the model. NEXT ID: 18
the model.
model (str):
Required. The name of the ``Model`` to use for
generating the completion.
Expand Down Expand Up @@ -924,7 +924,7 @@ def sample_stream_generate_content():
Args:
request (Union[google.ai.generativelanguage_v1.types.GenerateContentRequest, dict]):
The request object. Request to generate a completion from
the model. NEXT ID: 18
the model.
model (str):
Required. The name of the ``Model`` to use for
generating the completion.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,7 @@ def __call__(
Args:
request (~.generative_service.GenerateContentRequest):
The request object. Request to generate a completion from
the model. NEXT ID: 18
the model.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1244,7 +1244,7 @@ def __call__(
Args:
request (~.generative_service.GenerateContentRequest):
The request object. Request to generate a completion from
the model. NEXT ID: 18
the model.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ class TaskType(proto.Enum):

class GenerateContentRequest(proto.Message):
r"""Request to generate a completion from the model.
NEXT ID: 18


.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Expand Down Expand Up @@ -173,7 +171,6 @@ class GenerateContentRequest(proto.Message):
class GenerationConfig(proto.Message):
r"""Configuration options for model generation and outputs. Not
all parameters are configurable for every model.
Next ID: 29


.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Expand Down Expand Up @@ -672,6 +669,8 @@ class FinishReason(proto.Enum):
NO_IMAGE (16):
The model was expected to generate an image,
but none was generated.
IMAGE_RECITATION (17):
Image generation stopped due to recitation.
UNEXPECTED_TOOL_CALL (12):
Model generated a tool call but no tools were
enabled in the request.
Expand All @@ -694,6 +693,7 @@ class FinishReason(proto.Enum):
IMAGE_PROHIBITED_CONTENT = 14
IMAGE_OTHER = 15
NO_IMAGE = 16
IMAGE_RECITATION = 17
UNEXPECTED_TOOL_CALL = 12
TOO_MANY_TOOL_CALLS = 13

Expand Down Expand Up @@ -940,6 +940,14 @@ class GroundingMetadata(proto.Message):
web_search_queries (MutableSequence[str]):
Web search queries for the following-up web
search.
google_maps_widget_context_token (str):
Optional. Resource name of the Google Maps
widget context token that can be used with the
PlacesContextElement widget in order to render
contextual data. Only populated in the case that
grounding with Google Maps is enabled.

This field is a member of `oneof`_ ``_google_maps_widget_context_token``.
"""

search_entry_point: "SearchEntryPoint" = proto.Field(
Expand Down Expand Up @@ -968,6 +976,11 @@ class GroundingMetadata(proto.Message):
proto.STRING,
number=5,
)
google_maps_widget_context_token: str = proto.Field(
proto.STRING,
number=7,
optional=True,
)


class SearchEntryPoint(proto.Message):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,21 @@
DynamicRetrievalConfig,
ExecutableCode,
FileData,
FileSearch,
FunctionCall,
FunctionCallingConfig,
FunctionDeclaration,
FunctionResponse,
FunctionResponseBlob,
FunctionResponsePart,
GoogleMaps,
GoogleSearchRetrieval,
GroundingPassage,
GroundingPassages,
Modality,
ModalityTokenCount,
Part,
RetrievalConfig,
Schema,
Tool,
ToolConfig,
Expand Down Expand Up @@ -444,6 +447,7 @@ def _get_version(dependency_name):
"ExecutableCode",
"File",
"FileData",
"FileSearch",
"FileServiceClient",
"FunctionCall",
"FunctionCallingConfig",
Expand All @@ -470,6 +474,7 @@ def _get_version(dependency_name):
"GetPermissionRequest",
"GetTunedModelRequest",
"GoAway",
"GoogleMaps",
"GoogleSearchRetrieval",
"GroundingAttribution",
"GroundingChunk",
Expand Down Expand Up @@ -523,6 +528,7 @@ def _get_version(dependency_name):
"QueryDocumentResponse",
"RealtimeInputConfig",
"RelevantChunk",
"RetrievalConfig",
"RetrievalMetadata",
"RetrieverServiceClient",
"SafetyFeedback",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ async def sample_generate_content():
Args:
request (Optional[Union[google.ai.generativelanguage_v1beta.types.GenerateContentRequest, dict]]):
The request object. Request to generate a completion from
the model. NEXT ID: 18
the model.
model (:class:`str`):
Required. The name of the ``Model`` to use for
generating the completion.
Expand Down Expand Up @@ -674,7 +674,7 @@ async def sample_stream_generate_content():
Args:
request (Optional[Union[google.ai.generativelanguage_v1beta.types.GenerateContentRequest, dict]]):
The request object. Request to generate a completion from
the model. NEXT ID: 18
the model.
model (:class:`str`):
Required. The name of the ``Model`` to use for
generating the completion.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ def sample_generate_content():
Args:
request (Union[google.ai.generativelanguage_v1beta.types.GenerateContentRequest, dict]):
The request object. Request to generate a completion from
the model. NEXT ID: 18
the model.
model (str):
Required. The name of the ``Model`` to use for
generating the completion.
Expand Down Expand Up @@ -1113,7 +1113,7 @@ def sample_stream_generate_content():
Args:
request (Union[google.ai.generativelanguage_v1beta.types.GenerateContentRequest, dict]):
The request object. Request to generate a completion from
the model. NEXT ID: 18
the model.
model (str):
Required. The name of the ``Model`` to use for
generating the completion.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1306,7 +1306,7 @@ def __call__(
Args:
request (~.generative_service.GenerateContentRequest):
The request object. Request to generate a completion from
the model. NEXT ID: 18
the model.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1479,7 +1479,7 @@ def __call__(
Args:
request (~.generative_service.GenerateContentRequest):
The request object. Request to generate a completion from
the model. NEXT ID: 18
the model.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down
Loading
Loading