| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 80de21c commit 5797f43
31 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1960,7 +1960,7 @@ libraries: | |||
| 1960 | 1960 | tag_format: '{id}-v{version}' | |
| 1961 | 1961 | - id: google-cloud-geminidataanalytics | |
| 1962 | 1962 | version: 0.5.0 | |
| 1963 | - last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd | ||
| 1963 | + last_generated_commit: cf0434f4bd20618db60ddd16a1e7db2c0dfb9158 | ||
| 1964 | 1964 | apis: | |
| 1965 | 1965 | - path: google/cloud/geminidataanalytics/v1beta | |
| 1966 | 1966 | service_config: geminidataanalytics_v1beta.yaml | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,6 +35,7 @@ | |||
| 35 | 35 | ChartOptions, | |
| 36 | 36 | Context, | |
| 37 | 37 | ConversationOptions, | |
| 38 | + DatasourceOptions, | ||
| 38 | 39 | ExampleQuery, | |
| 39 | 40 | GlossaryTerm, | |
| 40 | 41 | ) | |
@@ -75,6 +76,7 @@ | |||
| 75 | 76 | ChartQuery, | |
| 76 | 77 | ChartResult, | |
| 77 | 78 | ChatRequest, | |
| 79 | + ClientManagedResourceContext, | ||
| 78 | 80 | ConversationReference, | |
| 79 | 81 | DataAgentContext, | |
| 80 | 82 | DataMessage, | |
@@ -119,6 +121,7 @@ | |||
| 119 | 121 | "ChartOptions", | |
| 120 | 122 | "Context", | |
| 121 | 123 | "ConversationOptions", | |
| 124 | + "DatasourceOptions", | ||
| 122 | 125 | "ExampleQuery", | |
| 123 | 126 | "GlossaryTerm", | |
| 124 | 127 | "Conversation", | |
@@ -149,6 +152,7 @@ | |||
| 149 | 152 | "ChartQuery", | |
| 150 | 153 | "ChartResult", | |
| 151 | 154 | "ChatRequest", | |
| 155 | + "ClientManagedResourceContext", | ||
| 152 | 156 | "ConversationReference", | |
| 153 | 157 | "DataAgentContext", | |
| 154 | 158 | "DataMessage", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,6 +31,7 @@ | |||
| 31 | 31 | ChartOptions, | |
| 32 | 32 | Context, | |
| 33 | 33 | ConversationOptions, | |
| 34 | + DatasourceOptions, | ||
| 34 | 35 | ExampleQuery, | |
| 35 | 36 | GlossaryTerm, | |
| 36 | 37 | ) | |
@@ -66,6 +67,7 @@ | |||
| 66 | 67 | ChartQuery, | |
| 67 | 68 | ChartResult, | |
| 68 | 69 | ChatRequest, | |
| 70 | + ClientManagedResourceContext, | ||
| 69 | 71 | ConversationReference, | |
| 70 | 72 | DataAgentContext, | |
| 71 | 73 | DataMessage, | |
@@ -117,6 +119,7 @@ | |||
| 117 | 119 | "ChartQuery", | |
| 118 | 120 | "ChartResult", | |
| 119 | 121 | "ChatRequest", | |
| 122 | + "ClientManagedResourceContext", | ||
| 120 | 123 | "Context", | |
| 121 | 124 | "Conversation", | |
| 122 | 125 | "ConversationOptions", | |
@@ -135,6 +138,7 @@ | |||
| 135 | 138 | "DataQuery", | |
| 136 | 139 | "DataResult", | |
| 137 | 140 | "Datasource", | |
| 141 | + "DatasourceOptions", | ||
| 138 | 142 | "DatasourceReferences", | |
| 139 | 143 | "DeleteConversationRequest", | |
| 140 | 144 | "DeleteDataAgentRequest", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,6 +18,7 @@ | |||
| 18 | 18 | ChartOptions, | |
| 19 | 19 | Context, | |
| 20 | 20 | ConversationOptions, | |
| 21 | + DatasourceOptions, | ||
| 21 | 22 | ExampleQuery, | |
| 22 | 23 | GlossaryTerm, | |
| 23 | 24 | ) | |
@@ -53,6 +54,7 @@ | |||
| 53 | 54 | ChartQuery, | |
| 54 | 55 | ChartResult, | |
| 55 | 56 | ChatRequest, | |
| 57 | + ClientManagedResourceContext, | ||
| 56 | 58 | ConversationReference, | |
| 57 | 59 | DataAgentContext, | |
| 58 | 60 | DataMessage, | |
@@ -93,6 +95,7 @@ | |||
| 93 | 95 | "ChartOptions", | |
| 94 | 96 | "Context", | |
| 95 | 97 | "ConversationOptions", | |
| 98 | + "DatasourceOptions", | ||
| 96 | 99 | "ExampleQuery", | |
| 97 | 100 | "GlossaryTerm", | |
| 98 | 101 | "Conversation", | |
@@ -123,6 +126,7 @@ | |||
| 123 | 126 | "ChartQuery", | |
| 124 | 127 | "ChartResult", | |
| 125 | 128 | "ChatRequest", | |
| 129 | + "ClientManagedResourceContext", | ||
| 126 | 130 | "ConversationReference", | |
| 127 | 131 | "DataAgentContext", | |
| 128 | 132 | "DataMessage", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,9 +17,10 @@ | |||
| 17 | 17 | ||
| 18 | 18 | from typing import MutableMapping, MutableSequence | |
| 19 | 19 | ||
| 20 | + from google.protobuf import wrappers_pb2 # type: ignore | ||
| 20 | 21 | import proto # type: ignore | |
| 21 | 22 | ||
| 22 | - from google.cloud.geminidataanalytics_v1alpha.types import datasource | ||
| 23 | + from google.cloud.geminidataanalytics_v1alpha.types import datasource as gcg_datasource | ||
| 23 | 24 | ||
| 24 | 25 | __protobuf__ = proto.module( | |
| 25 | 26 | package="google.cloud.geminidataanalytics.v1alpha", | |
@@ -28,6 +29,7 @@ | |||
| 28 | 29 | "ExampleQuery", | |
| 29 | 30 | "GlossaryTerm", | |
| 30 | 31 | "ConversationOptions", | |
| 32 | + "DatasourceOptions", | ||
| 31 | 33 | "ChartOptions", | |
| 32 | 34 | "AnalysisOptions", | |
| 33 | 35 | }, | |
@@ -163,10 +165,10 @@ class SchemaPaths(proto.Message): | |||
| 163 | 165 | proto.STRING, | |
| 164 | 166 | number=1, | |
| 165 | 167 | ) | |
| 166 | - datasource_references: datasource.DatasourceReferences = proto.Field( | ||
| 168 | + datasource_references: gcg_datasource.DatasourceReferences = proto.Field( | ||
| 167 | 169 | proto.MESSAGE, | |
| 168 | 170 | number=7, | |
| 169 | - message=datasource.DatasourceReferences, | ||
| 171 | + message=gcg_datasource.DatasourceReferences, | ||
| 170 | 172 | ) | |
| 171 | 173 | options: "ConversationOptions" = proto.Field( | |
| 172 | 174 | proto.MESSAGE, | |
@@ -265,6 +267,8 @@ class ConversationOptions(proto.Message): | |||
| 265 | 267 | Optional. Options for chart generation. | |
| 266 | 268 | analysis (google.cloud.geminidataanalytics_v1alpha.types.AnalysisOptions): | |
| 267 | 269 | Optional. Options for analysis. | |
| 270 | + datasource (google.cloud.geminidataanalytics_v1alpha.types.DatasourceOptions): | ||
| 271 | + Optional. Options for datasources. | ||
| 268 | 272 | """ | |
| 269 | 273 | ||
| 270 | 274 | chart: "ChartOptions" = proto.Field( | |
@@ -277,6 +281,31 @@ class ConversationOptions(proto.Message): | |||
| 277 | 281 | number=2, | |
| 278 | 282 | message="AnalysisOptions", | |
| 279 | 283 | ) | |
| 284 | + datasource: "DatasourceOptions" = proto.Field( | ||
| 285 | + proto.MESSAGE, | ||
| 286 | + number=3, | ||
| 287 | + message="DatasourceOptions", | ||
| 288 | + ) | ||
| 289 | + | ||
| 290 | + | ||
| 291 | + class DatasourceOptions(proto.Message): | ||
| 292 | + r"""Options for datasources configurations. | ||
| 293 | + | ||
| 294 | + Attributes: | ||
| 295 | + big_query_max_billed_bytes (google.protobuf.wrappers_pb2.Int64Value): | ||
| 296 | + Optional. This option applies to datasources | ||
| 297 | + that require BigQuery queries only. Limits the | ||
| 298 | + bytes billed for each BQ query job. Queries that | ||
| 299 | + will have bytes billed beyond this limit will | ||
| 300 | + fail (without incurring a charge). If | ||
| 301 | + unspecified, no limit will be applied. | ||
| 302 | + """ | ||
| 303 | + | ||
| 304 | + big_query_max_billed_bytes: wrappers_pb2.Int64Value = proto.Field( | ||
| 305 | + proto.MESSAGE, | ||
| 306 | + number=1, | ||
| 307 | + message=wrappers_pb2.Int64Value, | ||
| 308 | + ) | ||
| 280 | 309 | ||
| 281 | 310 | ||
| 282 | 311 | class ChartOptions(proto.Message): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,6 +36,7 @@ | |||
| 36 | 36 | "ChatRequest", | |
| 37 | 37 | "DataAgentContext", | |
| 38 | 38 | "ConversationReference", | |
| 39 | + "ClientManagedResourceContext", | ||
| 39 | 40 | "Message", | |
| 40 | 41 | "UserMessage", | |
| 41 | 42 | "SystemMessage", | |
@@ -184,6 +185,14 @@ class ChatRequest(proto.Message): | |||
| 184 | 185 | this to chat with an Agent statelessly, without | |
| 185 | 186 | managed conversation persistence. | |
| 186 | 187 | ||
| 188 | + This field is a member of `oneof`_ ``context_provider``. | ||
| 189 | + client_managed_resource_context (google.cloud.geminidataanalytics_v1alpha.types.ClientManagedResourceContext): | ||
| 190 | + Optional. Context with client managed | ||
| 191 | + resources. Some clients may not use GDA managed | ||
| 192 | + resources including conversations and agents, | ||
| 193 | + instead they create and manage their own | ||
| 194 | + conversations and agents resources. | ||
| 195 | + | ||
| 187 | 196 | This field is a member of `oneof`_ ``context_provider``. | |
| 188 | 197 | project (str): | |
| 189 | 198 | Optional. The Google Cloud project to be used | |
@@ -213,6 +222,12 @@ class ChatRequest(proto.Message): | |||
| 213 | 222 | oneof="context_provider", | |
| 214 | 223 | message="DataAgentContext", | |
| 215 | 224 | ) | |
| 225 | + client_managed_resource_context: "ClientManagedResourceContext" = proto.Field( | ||
| 226 | + proto.MESSAGE, | ||
| 227 | + number=105, | ||
| 228 | + oneof="context_provider", | ||
| 229 | + message="ClientManagedResourceContext", | ||
| 230 | + ) | ||
| 216 | 231 | project: str = proto.Field( | |
| 217 | 232 | proto.STRING, | |
| 218 | 233 | number=1, | |
@@ -305,6 +320,39 @@ class ConversationReference(proto.Message): | |||
| 305 | 320 | ) | |
| 306 | 321 | ||
| 307 | 322 | ||
| 323 | + class ClientManagedResourceContext(proto.Message): | ||
| 324 | + r"""Context with client managed resources. | ||
| 325 | + Some clients may not use GDA managed resources including | ||
| 326 | + conversations and agents, instead they create and manage their | ||
| 327 | + own conversations and agents resources. | ||
| 328 | + | ||
| 329 | + Attributes: | ||
| 330 | + inline_context (google.cloud.geminidataanalytics_v1alpha.types.Context): | ||
| 331 | + Required. Context for the chat request. Use | ||
| 332 | + this to chat without GDA API managed | ||
| 333 | + conversation and agent persistence by passing | ||
| 334 | + all context inline. | ||
| 335 | + conversation_id (str): | ||
| 336 | + Optional. The client managed conversation id. | ||
| 337 | + agent_id (str): | ||
| 338 | + Optional. The client managed agent id. | ||
| 339 | + """ | ||
| 340 | + | ||
| 341 | + inline_context: context.Context = proto.Field( | ||
| 342 | + proto.MESSAGE, | ||
| 343 | + number=1, | ||
| 344 | + message=context.Context, | ||
| 345 | + ) | ||
| 346 | + conversation_id: str = proto.Field( | ||
| 347 | + proto.STRING, | ||
| 348 | + number=2, | ||
| 349 | + ) | ||
| 350 | + agent_id: str = proto.Field( | ||
| 351 | + proto.STRING, | ||
| 352 | + number=3, | ||
| 353 | + ) | ||
| 354 | + | ||
| 355 | + | ||
| 308 | 356 | class Message(proto.Message): | |
| 309 | 357 | r"""A message from an interaction between the user and the | |
| 310 | 358 | system. | |
@@ -502,10 +550,17 @@ class TextType(proto.Enum): | |||
| 502 | 550 | THOUGHT (2): | |
| 503 | 551 | The text is a thinking plan generated by the | |
| 504 | 552 | thinking tool. | |
| 553 | + PROGRESS (3): | ||
| 554 | + The text is an informational message about the agent's | ||
| 555 | + progress, such as a tool being invoked. This is distinct | ||
| 556 | + from the agent's internal thought process (``THOUGHT``) and | ||
| 557 | + the final answer to the user (``FINAL_RESPONSE``). These | ||
| 558 | + messages provide insight into the agent's actions. | ||
| 505 | 559 | """ | |
| 506 | 560 | TEXT_TYPE_UNSPECIFIED = 0 | |
| 507 | 561 | FINAL_RESPONSE = 1 | |
| 508 | 562 | THOUGHT = 2 | |
| 563 | + PROGRESS = 3 | ||
| 509 | 564 | ||
| 510 | 565 | parts: MutableSequence[str] = proto.RepeatedField( | |
| 511 | 566 | proto.STRING, | |
@@ -1112,7 +1167,21 @@ class ChartResult(proto.Message): | |||
| 1112 | 1167 | ||
| 1113 | 1168 | ||
| 1114 | 1169 | class ErrorMessage(proto.Message): | |
| 1115 | - r"""An error message. | ||
| 1170 | + r"""An error message from a tool call. This message is used to represent | ||
| 1171 | + an error that occurred while an agent was trying to use a tool. It's | ||
| 1172 | + important to note that not all errors are terminal. Many are | ||
| 1173 | + recoverable, and the agent may use the information from this error | ||
| 1174 | + message to self-correct and retry the tool call or try a different | ||
| 1175 | + approach. | ||
| 1176 | + | ||
| 1177 | + For example, if a data query fails, the agent might receive an | ||
| 1178 | + ``ErrorMessage``, analyze it, and then generate a corrected query. | ||
| 1179 | + | ||
| 1180 | + Clients should be cautious about interpreting this message as a | ||
| 1181 | + definitive failure. It can be part of the agent's normal, iterative | ||
| 1182 | + process of completing a task. Surfacing these errors directly to | ||
| 1183 | + end-users without context (e.g., as a "hard failure") may be | ||
| 1184 | + misleading. | ||
| 1116 | 1185 | ||
| 1117 | 1186 | Attributes: | |
| 1118 | 1187 | text (str): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,6 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | 18 | from typing import MutableMapping, MutableSequence | |
| 19 | 19 | ||
| 20 | + from google.protobuf import struct_pb2 # type: ignore | ||
| 20 | 21 | import proto # type: ignore | |
| 21 | 22 | ||
| 22 | 23 | from google.cloud.geminidataanalytics_v1alpha.types import ( | |
@@ -318,6 +319,14 @@ class Datasource(proto.Message): | |||
| 318 | 319 | This field is a member of `oneof`_ ``reference``. | |
| 319 | 320 | schema (google.cloud.geminidataanalytics_v1alpha.types.Schema): | |
| 320 | 321 | Optional. The schema of the datasource. | |
| 322 | + struct_schema (google.protobuf.struct_pb2.Struct): | ||
| 323 | + Optional. A struct representation of the schema. This is | ||
| 324 | + populated for datasources with schemas that cannot be fully | ||
| 325 | + represented by the strongly-typed ``schema`` field. | ||
| 326 | + | ||
| 327 | + For Looker datasources, this maps to the LookmlModelExplore | ||
| 328 | + type: | ||
| 329 | + https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore | ||
| 321 | 330 | """ | |
| 322 | 331 | ||
| 323 | 332 | bigquery_table_reference: "BigQueryTableReference" = proto.Field( | |
@@ -342,6 +351,11 @@ class Datasource(proto.Message): | |||
| 342 | 351 | number=7, | |
| 343 | 352 | message="Schema", | |
| 344 | 353 | ) | |
| 354 | + struct_schema: struct_pb2.Struct = proto.Field( | ||
| 355 | + proto.MESSAGE, | ||
| 356 | + number=10, | ||
| 357 | + message=struct_pb2.Struct, | ||
| 358 | + ) | ||
| 345 | 359 | ||
| 346 | 360 | ||
| 347 | 361 | class Schema(proto.Message): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,11 +31,14 @@ | |||
| 31 | 31 | ChartOptions, | |
| 32 | 32 | Context, | |
| 33 | 33 | ConversationOptions, | |
| 34 | + DatasourceOptions, | ||
| 34 | 35 | ExampleQuery, | |
| 36 | + GlossaryTerm, | ||
| 35 | 37 | ) | |
| 36 | 38 | from .types.conversation import ( | |
| 37 | 39 | Conversation, | |
| 38 | 40 | CreateConversationRequest, | |
| 41 | + DeleteConversationRequest, | ||
| 39 | 42 | GetConversationRequest, | |
| 40 | 43 | ListConversationsRequest, | |
| 41 | 44 | ListConversationsResponse, | |
@@ -64,12 +67,14 @@ | |||
| 64 | 67 | ChartQuery, | |
| 65 | 68 | ChartResult, | |
| 66 | 69 | ChatRequest, | |
| 70 | + ClientManagedResourceContext, | ||
| 67 | 71 | ConversationReference, | |
| 68 | 72 | DataAgentContext, | |
| 69 | 73 | DataMessage, | |
| 70 | 74 | DataQuery, | |
| 71 | 75 | DataResult, | |
| 72 | 76 | ErrorMessage, | |
| 77 | + ExampleQueries, | ||
| 73 | 78 | ListMessagesRequest, | |
| 74 | 79 | ListMessagesResponse, | |
| 75 | 80 | LookerQuery, | |
@@ -114,6 +119,7 @@ | |||
| 114 | 119 | "ChartQuery", | |
| 115 | 120 | "ChartResult", | |
| 116 | 121 | "ChatRequest", | |
| 122 | + "ClientManagedResourceContext", | ||
| 117 | 123 | "Context", | |
| 118 | 124 | "Conversation", | |
| 119 | 125 | "ConversationOptions", | |
@@ -132,13 +138,17 @@ | |||
| 132 | 138 | "DataQuery", | |
| 133 | 139 | "DataResult", | |
| 134 | 140 | "Datasource", | |
| 141 | + "DatasourceOptions", | ||
| 135 | 142 | "DatasourceReferences", | |
| 143 | + "DeleteConversationRequest", | ||
| 136 | 144 | "DeleteDataAgentRequest", | |
| 137 | 145 | "ErrorMessage", | |
| 146 | + "ExampleQueries", | ||
| 138 | 147 | "ExampleQuery", | |
| 139 | 148 | "Field", | |
| 140 | 149 | "GetConversationRequest", | |
| 141 | 150 | "GetDataAgentRequest", | |
| 151 | + "GlossaryTerm", | ||
| 142 | 152 | "ListAccessibleDataAgentsRequest", | |
| 143 | 153 | "ListAccessibleDataAgentsResponse", | |
| 144 | 154 | "ListConversationsRequest", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments