google-apis-ces_v1 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/ces_v1/classes.rb +555 -14
- data/lib/google/apis/ces_v1/gem_version.rb +2 -2
- data/lib/google/apis/ces_v1/representations.rb +226 -0
- data/lib/google/apis/ces_v1/service.rb +50 -6
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 33dcdb9134cffcc757ea84f471d0b1292b3ddbf9547c07536f81d87b8b097312
|
|
4
|
+
data.tar.gz: cdd0d2da6c2c4175dd6c69c2077663a396695dad89f2b7bdabd01816881a5c71
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ac2ca26fccf2e21f53f0ad1820bf52e28a67a338e2a6f3042e42de097164e4f6ab60ae8ef95819e73afb4484227816f95b7db6a76c3db0df49805679f8b8216a
|
|
7
|
+
data.tar.gz: ea5d86ab0198461443c5fdeff1b8548e657ec442b4f38a1904fcca40abd1519a76df4887039adac16d6dd1479e439a3aae6344bcc108f09d25221e8b3e108ac0
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Release history for google-apis-ces_v1
|
|
2
2
|
|
|
3
|
+
### v0.7.0 (2026-05-10)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20260429
|
|
6
|
+
|
|
7
|
+
### v0.6.0 (2026-04-26)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20260422
|
|
10
|
+
|
|
3
11
|
### v0.5.0 (2026-03-15)
|
|
4
12
|
|
|
5
13
|
* Regenerated from discovery document revision 20260312
|
|
@@ -237,6 +237,12 @@ module Google
|
|
|
237
237
|
# @return [String]
|
|
238
238
|
attr_accessor :update_time
|
|
239
239
|
|
|
240
|
+
# Output only. Misconfigurations or errors in the agent that may affect agent
|
|
241
|
+
# quality.
|
|
242
|
+
# Corresponds to the JSON property `validationErrors`
|
|
243
|
+
# @return [Array<String>]
|
|
244
|
+
attr_accessor :validation_errors
|
|
245
|
+
|
|
240
246
|
def initialize(**args)
|
|
241
247
|
update!(**args)
|
|
242
248
|
end
|
|
@@ -265,6 +271,7 @@ module Google
|
|
|
265
271
|
@toolsets = args[:toolsets] if args.key?(:toolsets)
|
|
266
272
|
@transfer_rules = args[:transfer_rules] if args.key?(:transfer_rules)
|
|
267
273
|
@update_time = args[:update_time] if args.key?(:update_time)
|
|
274
|
+
@validation_errors = args[:validation_errors] if args.key?(:validation_errors)
|
|
268
275
|
end
|
|
269
276
|
end
|
|
270
277
|
|
|
@@ -294,6 +301,97 @@ module Google
|
|
|
294
301
|
end
|
|
295
302
|
end
|
|
296
303
|
|
|
304
|
+
# AgentCard conveys key information about a remote agent. It is a trimmed
|
|
305
|
+
# version of the AgentCard defined in the A2A protocol https://a2a-protocol.org/
|
|
306
|
+
# dev/specification/#441-agentcard
|
|
307
|
+
class AgentCard
|
|
308
|
+
include Google::Apis::Core::Hashable
|
|
309
|
+
|
|
310
|
+
# Required. A description of the agent's domain of action/solution space.
|
|
311
|
+
# Corresponds to the JSON property `description`
|
|
312
|
+
# @return [String]
|
|
313
|
+
attr_accessor :description
|
|
314
|
+
|
|
315
|
+
# Required. A human-readable name for the agent.
|
|
316
|
+
# Corresponds to the JSON property `name`
|
|
317
|
+
# @return [String]
|
|
318
|
+
attr_accessor :name
|
|
319
|
+
|
|
320
|
+
# Required. Skills represent a unit of ability an agent can perform. This may
|
|
321
|
+
# somewhat abstract but represents a more focused set of actions that the agent
|
|
322
|
+
# is highly likely to succeed at.
|
|
323
|
+
# Corresponds to the JSON property `skills`
|
|
324
|
+
# @return [Array<Google::Apis::CesV1::AgentSkill>]
|
|
325
|
+
attr_accessor :skills
|
|
326
|
+
|
|
327
|
+
# Required. Ordered list of supported interfaces. The first entry is preferred.
|
|
328
|
+
# Corresponds to the JSON property `supportedInterfaces`
|
|
329
|
+
# @return [Array<Google::Apis::CesV1::AgentInterface>]
|
|
330
|
+
attr_accessor :supported_interfaces
|
|
331
|
+
|
|
332
|
+
# Required. The version of the agent.
|
|
333
|
+
# Corresponds to the JSON property `version`
|
|
334
|
+
# @return [String]
|
|
335
|
+
attr_accessor :version
|
|
336
|
+
|
|
337
|
+
def initialize(**args)
|
|
338
|
+
update!(**args)
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
# Update properties of this object
|
|
342
|
+
def update!(**args)
|
|
343
|
+
@description = args[:description] if args.key?(:description)
|
|
344
|
+
@name = args[:name] if args.key?(:name)
|
|
345
|
+
@skills = args[:skills] if args.key?(:skills)
|
|
346
|
+
@supported_interfaces = args[:supported_interfaces] if args.key?(:supported_interfaces)
|
|
347
|
+
@version = args[:version] if args.key?(:version)
|
|
348
|
+
end
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
# Declares a combination of a target URL, transport and protocol version for
|
|
352
|
+
# interacting with the agent. This allows agents to expose the same
|
|
353
|
+
# functionality over multiple protocol binding mechanisms.
|
|
354
|
+
class AgentInterface
|
|
355
|
+
include Google::Apis::Core::Hashable
|
|
356
|
+
|
|
357
|
+
# Required. The protocol binding supported at this URL. This is an open form
|
|
358
|
+
# string, to be easily extended for other protocol bindings. The core ones
|
|
359
|
+
# officially supported are `JSONRPC`, `GRPC` and `HTTP+JSON`.
|
|
360
|
+
# Corresponds to the JSON property `protocolBinding`
|
|
361
|
+
# @return [String]
|
|
362
|
+
attr_accessor :protocol_binding
|
|
363
|
+
|
|
364
|
+
# Required. The version of the A2A protocol this interface exposes. Use the
|
|
365
|
+
# latest supported minor version per major version. Examples: "0.3", "1.0"
|
|
366
|
+
# Corresponds to the JSON property `protocolVersion`
|
|
367
|
+
# @return [String]
|
|
368
|
+
attr_accessor :protocol_version
|
|
369
|
+
|
|
370
|
+
# Tenant ID to be used in the request when calling the agent.
|
|
371
|
+
# Corresponds to the JSON property `tenant`
|
|
372
|
+
# @return [String]
|
|
373
|
+
attr_accessor :tenant
|
|
374
|
+
|
|
375
|
+
# Required. The URL where this interface is available. Must be a valid absolute
|
|
376
|
+
# HTTPS URL in production. Example: "https://api.example.com/a2a/v1", "https://
|
|
377
|
+
# grpc.example.com/a2a"
|
|
378
|
+
# Corresponds to the JSON property `url`
|
|
379
|
+
# @return [String]
|
|
380
|
+
attr_accessor :url
|
|
381
|
+
|
|
382
|
+
def initialize(**args)
|
|
383
|
+
update!(**args)
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
# Update properties of this object
|
|
387
|
+
def update!(**args)
|
|
388
|
+
@protocol_binding = args[:protocol_binding] if args.key?(:protocol_binding)
|
|
389
|
+
@protocol_version = args[:protocol_version] if args.key?(:protocol_version)
|
|
390
|
+
@tenant = args[:tenant] if args.key?(:tenant)
|
|
391
|
+
@url = args[:url] if args.key?(:url)
|
|
392
|
+
end
|
|
393
|
+
end
|
|
394
|
+
|
|
297
395
|
# Default agent type. The agent uses instructions and callbacks specified in the
|
|
298
396
|
# agent to perform the task using a large language model.
|
|
299
397
|
class AgentLlmAgent
|
|
@@ -373,10 +471,73 @@ module Google
|
|
|
373
471
|
end
|
|
374
472
|
end
|
|
375
473
|
|
|
474
|
+
# Represents a distinct capability or function that an agent can perform.
|
|
475
|
+
class AgentSkill
|
|
476
|
+
include Google::Apis::Core::Hashable
|
|
477
|
+
|
|
478
|
+
# Required. A detailed description of the skill.
|
|
479
|
+
# Corresponds to the JSON property `description`
|
|
480
|
+
# @return [String]
|
|
481
|
+
attr_accessor :description
|
|
482
|
+
|
|
483
|
+
# Example prompts or scenarios that this skill can handle.
|
|
484
|
+
# Corresponds to the JSON property `examples`
|
|
485
|
+
# @return [Array<String>]
|
|
486
|
+
attr_accessor :examples
|
|
487
|
+
|
|
488
|
+
# Required. A unique identifier for the agent's skill.
|
|
489
|
+
# Corresponds to the JSON property `id`
|
|
490
|
+
# @return [String]
|
|
491
|
+
attr_accessor :id
|
|
492
|
+
|
|
493
|
+
# The set of supported input media types for this skill, overriding the agent's
|
|
494
|
+
# defaults.
|
|
495
|
+
# Corresponds to the JSON property `inputModes`
|
|
496
|
+
# @return [Array<String>]
|
|
497
|
+
attr_accessor :input_modes
|
|
498
|
+
|
|
499
|
+
# Required. A human-readable name for the skill.
|
|
500
|
+
# Corresponds to the JSON property `name`
|
|
501
|
+
# @return [String]
|
|
502
|
+
attr_accessor :name
|
|
503
|
+
|
|
504
|
+
# The set of supported output media types for this skill, overriding the agent's
|
|
505
|
+
# defaults.
|
|
506
|
+
# Corresponds to the JSON property `outputModes`
|
|
507
|
+
# @return [Array<String>]
|
|
508
|
+
attr_accessor :output_modes
|
|
509
|
+
|
|
510
|
+
# Required. A set of keywords describing the skill's capabilities.
|
|
511
|
+
# Corresponds to the JSON property `tags`
|
|
512
|
+
# @return [Array<String>]
|
|
513
|
+
attr_accessor :tags
|
|
514
|
+
|
|
515
|
+
def initialize(**args)
|
|
516
|
+
update!(**args)
|
|
517
|
+
end
|
|
518
|
+
|
|
519
|
+
# Update properties of this object
|
|
520
|
+
def update!(**args)
|
|
521
|
+
@description = args[:description] if args.key?(:description)
|
|
522
|
+
@examples = args[:examples] if args.key?(:examples)
|
|
523
|
+
@id = args[:id] if args.key?(:id)
|
|
524
|
+
@input_modes = args[:input_modes] if args.key?(:input_modes)
|
|
525
|
+
@name = args[:name] if args.key?(:name)
|
|
526
|
+
@output_modes = args[:output_modes] if args.key?(:output_modes)
|
|
527
|
+
@tags = args[:tags] if args.key?(:tags)
|
|
528
|
+
end
|
|
529
|
+
end
|
|
530
|
+
|
|
376
531
|
# Represents a tool that allows the agent to call another agent.
|
|
377
532
|
class AgentTool
|
|
378
533
|
include Google::Apis::Core::Hashable
|
|
379
534
|
|
|
535
|
+
# Optional. The resource name of the agent that is the entry point of the tool.
|
|
536
|
+
# Format: `projects/`project`/locations/`location`/agents/`agent``
|
|
537
|
+
# Corresponds to the JSON property `agent`
|
|
538
|
+
# @return [String]
|
|
539
|
+
attr_accessor :agent
|
|
540
|
+
|
|
380
541
|
# Optional. Description of the tool's purpose.
|
|
381
542
|
# Corresponds to the JSON property `description`
|
|
382
543
|
# @return [String]
|
|
@@ -387,8 +548,9 @@ module Google
|
|
|
387
548
|
# @return [String]
|
|
388
549
|
attr_accessor :name
|
|
389
550
|
|
|
390
|
-
# Optional. The resource name of the root agent
|
|
391
|
-
# tool. Format: `projects/`project`/locations/`
|
|
551
|
+
# Optional. Deprecated: Use `agent` instead. The resource name of the root agent
|
|
552
|
+
# that is the entry point of the tool. Format: `projects/`project`/locations/`
|
|
553
|
+
# location`/agents/`agent``
|
|
392
554
|
# Corresponds to the JSON property `rootAgent`
|
|
393
555
|
# @return [String]
|
|
394
556
|
attr_accessor :root_agent
|
|
@@ -399,6 +561,7 @@ module Google
|
|
|
399
561
|
|
|
400
562
|
# Update properties of this object
|
|
401
563
|
def update!(**args)
|
|
564
|
+
@agent = args[:agent] if args.key?(:agent)
|
|
402
565
|
@description = args[:description] if args.key?(:description)
|
|
403
566
|
@name = args[:name] if args.key?(:name)
|
|
404
567
|
@root_agent = args[:root_agent] if args.key?(:root_agent)
|
|
@@ -708,11 +871,21 @@ module Google
|
|
|
708
871
|
# @return [String]
|
|
709
872
|
attr_accessor :update_time
|
|
710
873
|
|
|
874
|
+
# Output only. Misconfigurations or warnings in the app.
|
|
875
|
+
# Corresponds to the JSON property `validationErrors`
|
|
876
|
+
# @return [Array<String>]
|
|
877
|
+
attr_accessor :validation_errors
|
|
878
|
+
|
|
711
879
|
# Optional. The declarations of the variables.
|
|
712
880
|
# Corresponds to the JSON property `variableDeclarations`
|
|
713
881
|
# @return [Array<Google::Apis::CesV1::AppVariableDeclaration>]
|
|
714
882
|
attr_accessor :variable_declarations
|
|
715
883
|
|
|
884
|
+
# VPC-SC settings for the app.
|
|
885
|
+
# Corresponds to the JSON property `vpcScSettings`
|
|
886
|
+
# @return [Google::Apis::CesV1::VpcScSettings]
|
|
887
|
+
attr_accessor :vpc_sc_settings
|
|
888
|
+
|
|
716
889
|
def initialize(**args)
|
|
717
890
|
update!(**args)
|
|
718
891
|
end
|
|
@@ -744,7 +917,9 @@ module Google
|
|
|
744
917
|
@time_zone_settings = args[:time_zone_settings] if args.key?(:time_zone_settings)
|
|
745
918
|
@tool_execution_mode = args[:tool_execution_mode] if args.key?(:tool_execution_mode)
|
|
746
919
|
@update_time = args[:update_time] if args.key?(:update_time)
|
|
920
|
+
@validation_errors = args[:validation_errors] if args.key?(:validation_errors)
|
|
747
921
|
@variable_declarations = args[:variable_declarations] if args.key?(:variable_declarations)
|
|
922
|
+
@vpc_sc_settings = args[:vpc_sc_settings] if args.key?(:vpc_sc_settings)
|
|
748
923
|
end
|
|
749
924
|
end
|
|
750
925
|
|
|
@@ -1045,7 +1220,7 @@ module Google
|
|
|
1045
1220
|
class BigQueryExportSettings
|
|
1046
1221
|
include Google::Apis::Core::Hashable
|
|
1047
1222
|
|
|
1048
|
-
# Optional. The BigQuery dataset to export the data to.
|
|
1223
|
+
# Optional. The BigQuery **dataset ID** to export the data to.
|
|
1049
1224
|
# Corresponds to the JSON property `dataset`
|
|
1050
1225
|
# @return [String]
|
|
1051
1226
|
attr_accessor :dataset
|
|
@@ -1056,10 +1231,10 @@ module Google
|
|
|
1056
1231
|
attr_accessor :enabled
|
|
1057
1232
|
alias_method :enabled?, :enabled
|
|
1058
1233
|
|
|
1059
|
-
# Optional. The project ID of the BigQuery dataset to export the data to.
|
|
1060
|
-
# If the BigQuery dataset is in a different project from the app, you
|
|
1061
|
-
# grant `roles/bigquery.admin` role to the CES service agent `service-@
|
|
1062
|
-
# ces.iam.gserviceaccount.com`.
|
|
1234
|
+
# Optional. The **project ID** of the BigQuery dataset to export the data to.
|
|
1235
|
+
# Note: If the BigQuery dataset is in a different project from the app, you
|
|
1236
|
+
# should grant `roles/bigquery.admin` role to the CES service agent `service-@
|
|
1237
|
+
# gcp-sa-ces.iam.gserviceaccount.com`.
|
|
1063
1238
|
# Corresponds to the JSON property `project`
|
|
1064
1239
|
# @return [String]
|
|
1065
1240
|
attr_accessor :project
|
|
@@ -1857,6 +2032,12 @@ module Google
|
|
|
1857
2032
|
attr_accessor :disable_conversation_logging
|
|
1858
2033
|
alias_method :disable_conversation_logging?, :disable_conversation_logging
|
|
1859
2034
|
|
|
2035
|
+
# Optional. Controls the retention window for the conversation. If not set, the
|
|
2036
|
+
# conversation will be retained for 365 days.
|
|
2037
|
+
# Corresponds to the JSON property `retentionWindow`
|
|
2038
|
+
# @return [String]
|
|
2039
|
+
attr_accessor :retention_window
|
|
2040
|
+
|
|
1860
2041
|
def initialize(**args)
|
|
1861
2042
|
update!(**args)
|
|
1862
2043
|
end
|
|
@@ -1864,6 +2045,7 @@ module Google
|
|
|
1864
2045
|
# Update properties of this object
|
|
1865
2046
|
def update!(**args)
|
|
1866
2047
|
@disable_conversation_logging = args[:disable_conversation_logging] if args.key?(:disable_conversation_logging)
|
|
2048
|
+
@retention_window = args[:retention_window] if args.key?(:retention_window)
|
|
1867
2049
|
end
|
|
1868
2050
|
end
|
|
1869
2051
|
|
|
@@ -2478,6 +2660,11 @@ module Google
|
|
|
2478
2660
|
# @return [String]
|
|
2479
2661
|
attr_accessor :etag
|
|
2480
2662
|
|
|
2663
|
+
# Experiment for the deployment.
|
|
2664
|
+
# Corresponds to the JSON property `experimentConfig`
|
|
2665
|
+
# @return [Google::Apis::CesV1::ExperimentConfig]
|
|
2666
|
+
attr_accessor :experiment_config
|
|
2667
|
+
|
|
2481
2668
|
# Identifier. The resource name of the deployment. Format: `projects/`project`/
|
|
2482
2669
|
# locations/`location`/apps/`app`/deployments/`deployment``
|
|
2483
2670
|
# Corresponds to the JSON property `name`
|
|
@@ -2500,6 +2687,7 @@ module Google
|
|
|
2500
2687
|
@create_time = args[:create_time] if args.key?(:create_time)
|
|
2501
2688
|
@display_name = args[:display_name] if args.key?(:display_name)
|
|
2502
2689
|
@etag = args[:etag] if args.key?(:etag)
|
|
2690
|
+
@experiment_config = args[:experiment_config] if args.key?(:experiment_config)
|
|
2503
2691
|
@name = args[:name] if args.key?(:name)
|
|
2504
2692
|
@update_time = args[:update_time] if args.key?(:update_time)
|
|
2505
2693
|
end
|
|
@@ -2659,18 +2847,83 @@ module Google
|
|
|
2659
2847
|
class ErrorHandlingSettings
|
|
2660
2848
|
include Google::Apis::Core::Hashable
|
|
2661
2849
|
|
|
2850
|
+
# Configuration for ending the session in case of system errors (e.g. LLM errors)
|
|
2851
|
+
# .
|
|
2852
|
+
# Corresponds to the JSON property `endSessionConfig`
|
|
2853
|
+
# @return [Google::Apis::CesV1::ErrorHandlingSettingsEndSessionConfig]
|
|
2854
|
+
attr_accessor :end_session_config
|
|
2855
|
+
|
|
2662
2856
|
# Optional. The strategy to use for error handling.
|
|
2663
2857
|
# Corresponds to the JSON property `errorHandlingStrategy`
|
|
2664
2858
|
# @return [String]
|
|
2665
2859
|
attr_accessor :error_handling_strategy
|
|
2666
2860
|
|
|
2861
|
+
# Configuration for handling fallback responses.
|
|
2862
|
+
# Corresponds to the JSON property `fallbackResponseConfig`
|
|
2863
|
+
# @return [Google::Apis::CesV1::ErrorHandlingSettingsFallbackResponseConfig]
|
|
2864
|
+
attr_accessor :fallback_response_config
|
|
2865
|
+
|
|
2667
2866
|
def initialize(**args)
|
|
2668
2867
|
update!(**args)
|
|
2669
2868
|
end
|
|
2670
2869
|
|
|
2671
2870
|
# Update properties of this object
|
|
2672
2871
|
def update!(**args)
|
|
2872
|
+
@end_session_config = args[:end_session_config] if args.key?(:end_session_config)
|
|
2673
2873
|
@error_handling_strategy = args[:error_handling_strategy] if args.key?(:error_handling_strategy)
|
|
2874
|
+
@fallback_response_config = args[:fallback_response_config] if args.key?(:fallback_response_config)
|
|
2875
|
+
end
|
|
2876
|
+
end
|
|
2877
|
+
|
|
2878
|
+
# Configuration for ending the session in case of system errors (e.g. LLM errors)
|
|
2879
|
+
# .
|
|
2880
|
+
class ErrorHandlingSettingsEndSessionConfig
|
|
2881
|
+
include Google::Apis::Core::Hashable
|
|
2882
|
+
|
|
2883
|
+
# Optional. Whether to escalate the session in EndSession. If session is
|
|
2884
|
+
# escalated, metadata in EndSession will contain `session_escalated = true`. See
|
|
2885
|
+
# https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/
|
|
2886
|
+
# deploy/google-telephony-platform#transfer_a_call_to_a_human_agent for details.
|
|
2887
|
+
# Corresponds to the JSON property `escalateSession`
|
|
2888
|
+
# @return [Boolean]
|
|
2889
|
+
attr_accessor :escalate_session
|
|
2890
|
+
alias_method :escalate_session?, :escalate_session
|
|
2891
|
+
|
|
2892
|
+
def initialize(**args)
|
|
2893
|
+
update!(**args)
|
|
2894
|
+
end
|
|
2895
|
+
|
|
2896
|
+
# Update properties of this object
|
|
2897
|
+
def update!(**args)
|
|
2898
|
+
@escalate_session = args[:escalate_session] if args.key?(:escalate_session)
|
|
2899
|
+
end
|
|
2900
|
+
end
|
|
2901
|
+
|
|
2902
|
+
# Configuration for handling fallback responses.
|
|
2903
|
+
class ErrorHandlingSettingsFallbackResponseConfig
|
|
2904
|
+
include Google::Apis::Core::Hashable
|
|
2905
|
+
|
|
2906
|
+
# Optional. The fallback messages in case of system errors (e.g. LLM errors),
|
|
2907
|
+
# mapped by [supported language code](https://docs.cloud.google.com/customer-
|
|
2908
|
+
# engagement-ai/conversational-agents/ps/reference/language).
|
|
2909
|
+
# Corresponds to the JSON property `customFallbackMessages`
|
|
2910
|
+
# @return [Hash<String,String>]
|
|
2911
|
+
attr_accessor :custom_fallback_messages
|
|
2912
|
+
|
|
2913
|
+
# Optional. The maximum number of fallback attempts to make before the agent
|
|
2914
|
+
# emitting EndSession Signal.
|
|
2915
|
+
# Corresponds to the JSON property `maxFallbackAttempts`
|
|
2916
|
+
# @return [Fixnum]
|
|
2917
|
+
attr_accessor :max_fallback_attempts
|
|
2918
|
+
|
|
2919
|
+
def initialize(**args)
|
|
2920
|
+
update!(**args)
|
|
2921
|
+
end
|
|
2922
|
+
|
|
2923
|
+
# Update properties of this object
|
|
2924
|
+
def update!(**args)
|
|
2925
|
+
@custom_fallback_messages = args[:custom_fallback_messages] if args.key?(:custom_fallback_messages)
|
|
2926
|
+
@max_fallback_attempts = args[:max_fallback_attempts] if args.key?(:max_fallback_attempts)
|
|
2674
2927
|
end
|
|
2675
2928
|
end
|
|
2676
2929
|
|
|
@@ -2924,6 +3177,11 @@ module Google
|
|
|
2924
3177
|
# @return [Hash<String,Object>]
|
|
2925
3178
|
attr_accessor :context
|
|
2926
3179
|
|
|
3180
|
+
# Mock tool calls configuration for the session.
|
|
3181
|
+
# Corresponds to the JSON property `mockConfig`
|
|
3182
|
+
# @return [Google::Apis::CesV1::MockConfig]
|
|
3183
|
+
attr_accessor :mock_config
|
|
3184
|
+
|
|
2927
3185
|
# Optional. The name of the tool to execute. Format: projects/`project`/
|
|
2928
3186
|
# locations/`location`/apps/`app`/tools/`tool`
|
|
2929
3187
|
# Corresponds to the JSON property `tool`
|
|
@@ -2948,6 +3206,7 @@ module Google
|
|
|
2948
3206
|
def update!(**args)
|
|
2949
3207
|
@args = args[:args] if args.key?(:args)
|
|
2950
3208
|
@context = args[:context] if args.key?(:context)
|
|
3209
|
+
@mock_config = args[:mock_config] if args.key?(:mock_config)
|
|
2951
3210
|
@tool = args[:tool] if args.key?(:tool)
|
|
2952
3211
|
@toolset_tool = args[:toolset_tool] if args.key?(:toolset_tool)
|
|
2953
3212
|
@variables = args[:variables] if args.key?(:variables)
|
|
@@ -2995,6 +3254,84 @@ module Google
|
|
|
2995
3254
|
end
|
|
2996
3255
|
end
|
|
2997
3256
|
|
|
3257
|
+
# Experiment for the deployment.
|
|
3258
|
+
class ExperimentConfig
|
|
3259
|
+
include Google::Apis::Core::Hashable
|
|
3260
|
+
|
|
3261
|
+
# Version release for the experiment.
|
|
3262
|
+
# Corresponds to the JSON property `versionRelease`
|
|
3263
|
+
# @return [Google::Apis::CesV1::ExperimentConfigVersionRelease]
|
|
3264
|
+
attr_accessor :version_release
|
|
3265
|
+
|
|
3266
|
+
def initialize(**args)
|
|
3267
|
+
update!(**args)
|
|
3268
|
+
end
|
|
3269
|
+
|
|
3270
|
+
# Update properties of this object
|
|
3271
|
+
def update!(**args)
|
|
3272
|
+
@version_release = args[:version_release] if args.key?(:version_release)
|
|
3273
|
+
end
|
|
3274
|
+
end
|
|
3275
|
+
|
|
3276
|
+
# Version release for the experiment.
|
|
3277
|
+
class ExperimentConfigVersionRelease
|
|
3278
|
+
include Google::Apis::Core::Hashable
|
|
3279
|
+
|
|
3280
|
+
# Optional. State of the version release.
|
|
3281
|
+
# Corresponds to the JSON property `state`
|
|
3282
|
+
# @return [String]
|
|
3283
|
+
attr_accessor :state
|
|
3284
|
+
|
|
3285
|
+
# Optional. Traffic allocations for the version release.
|
|
3286
|
+
# Corresponds to the JSON property `trafficAllocations`
|
|
3287
|
+
# @return [Array<Google::Apis::CesV1::ExperimentConfigVersionReleaseTrafficAllocation>]
|
|
3288
|
+
attr_accessor :traffic_allocations
|
|
3289
|
+
|
|
3290
|
+
def initialize(**args)
|
|
3291
|
+
update!(**args)
|
|
3292
|
+
end
|
|
3293
|
+
|
|
3294
|
+
# Update properties of this object
|
|
3295
|
+
def update!(**args)
|
|
3296
|
+
@state = args[:state] if args.key?(:state)
|
|
3297
|
+
@traffic_allocations = args[:traffic_allocations] if args.key?(:traffic_allocations)
|
|
3298
|
+
end
|
|
3299
|
+
end
|
|
3300
|
+
|
|
3301
|
+
# Traffic allocation for the version release.
|
|
3302
|
+
class ExperimentConfigVersionReleaseTrafficAllocation
|
|
3303
|
+
include Google::Apis::Core::Hashable
|
|
3304
|
+
|
|
3305
|
+
# Optional. App version of the traffic allocation. Format: `projects/`project`/
|
|
3306
|
+
# locations/`location`/apps/`app`/versions/`version``
|
|
3307
|
+
# Corresponds to the JSON property `appVersion`
|
|
3308
|
+
# @return [String]
|
|
3309
|
+
attr_accessor :app_version
|
|
3310
|
+
|
|
3311
|
+
# Optional. Id of the traffic allocation. Free format string, up to 128
|
|
3312
|
+
# characters.
|
|
3313
|
+
# Corresponds to the JSON property `id`
|
|
3314
|
+
# @return [String]
|
|
3315
|
+
attr_accessor :id
|
|
3316
|
+
|
|
3317
|
+
# Optional. Traffic percentage of the traffic allocation. Must be between 0 and
|
|
3318
|
+
# 100.
|
|
3319
|
+
# Corresponds to the JSON property `trafficPercentage`
|
|
3320
|
+
# @return [Fixnum]
|
|
3321
|
+
attr_accessor :traffic_percentage
|
|
3322
|
+
|
|
3323
|
+
def initialize(**args)
|
|
3324
|
+
update!(**args)
|
|
3325
|
+
end
|
|
3326
|
+
|
|
3327
|
+
# Update properties of this object
|
|
3328
|
+
def update!(**args)
|
|
3329
|
+
@app_version = args[:app_version] if args.key?(:app_version)
|
|
3330
|
+
@id = args[:id] if args.key?(:id)
|
|
3331
|
+
@traffic_percentage = args[:traffic_percentage] if args.key?(:traffic_percentage)
|
|
3332
|
+
end
|
|
3333
|
+
end
|
|
3334
|
+
|
|
2998
3335
|
# Request message for AgentService.ExportApp.
|
|
2999
3336
|
class ExportAppRequest
|
|
3000
3337
|
include Google::Apis::Core::Hashable
|
|
@@ -3820,10 +4157,12 @@ module Google
|
|
|
3820
4157
|
attr_accessor :enable_multilingual_support
|
|
3821
4158
|
alias_method :enable_multilingual_support?, :enable_multilingual_support
|
|
3822
4159
|
|
|
3823
|
-
# Optional.
|
|
3824
|
-
#
|
|
3825
|
-
#
|
|
3826
|
-
#
|
|
4160
|
+
# Optional. Deprecated: This feature is no longer supported. Use `
|
|
4161
|
+
# enable_multilingual_support` instead to improve handling of multilingual input.
|
|
4162
|
+
# The action to perform when an agent receives input in an unsupported language.
|
|
4163
|
+
# This can be a predefined action or a custom tool call. Valid values are: - A
|
|
4164
|
+
# tool's full resource name, which triggers a specific tool execution. - A
|
|
4165
|
+
# predefined system action, such as "escalate" or "exit", which triggers an
|
|
3827
4166
|
# EndSession signal with corresponding metadata to terminate the conversation.
|
|
3828
4167
|
# Corresponds to the JSON property `fallbackAction`
|
|
3829
4168
|
# @return [String]
|
|
@@ -4260,6 +4599,11 @@ module Google
|
|
|
4260
4599
|
# @return [Google::Apis::CesV1::RedactionConfig]
|
|
4261
4600
|
attr_accessor :redaction_config
|
|
4262
4601
|
|
|
4602
|
+
# Configuration for how the audio interactions should be recorded.
|
|
4603
|
+
# Corresponds to the JSON property `unredactedAudioRecordingConfig`
|
|
4604
|
+
# @return [Google::Apis::CesV1::AudioRecordingConfig]
|
|
4605
|
+
attr_accessor :unredacted_audio_recording_config
|
|
4606
|
+
|
|
4263
4607
|
def initialize(**args)
|
|
4264
4608
|
update!(**args)
|
|
4265
4609
|
end
|
|
@@ -4273,6 +4617,7 @@ module Google
|
|
|
4273
4617
|
@evaluation_audio_recording_config = args[:evaluation_audio_recording_config] if args.key?(:evaluation_audio_recording_config)
|
|
4274
4618
|
@metric_analysis_settings = args[:metric_analysis_settings] if args.key?(:metric_analysis_settings)
|
|
4275
4619
|
@redaction_config = args[:redaction_config] if args.key?(:redaction_config)
|
|
4620
|
+
@unredacted_audio_recording_config = args[:unredacted_audio_recording_config] if args.key?(:unredacted_audio_recording_config)
|
|
4276
4621
|
end
|
|
4277
4622
|
end
|
|
4278
4623
|
|
|
@@ -4456,6 +4801,81 @@ module Google
|
|
|
4456
4801
|
end
|
|
4457
4802
|
end
|
|
4458
4803
|
|
|
4804
|
+
# Mock tool calls configuration for the session.
|
|
4805
|
+
class MockConfig
|
|
4806
|
+
include Google::Apis::Core::Hashable
|
|
4807
|
+
|
|
4808
|
+
# Optional. All tool calls to mock for the duration of the session.
|
|
4809
|
+
# Corresponds to the JSON property `mockedToolCalls`
|
|
4810
|
+
# @return [Array<Google::Apis::CesV1::MockedToolCall>]
|
|
4811
|
+
attr_accessor :mocked_tool_calls
|
|
4812
|
+
|
|
4813
|
+
# Required. Beavhior for tool calls that don't match any args patterns in
|
|
4814
|
+
# mocked_tool_calls.
|
|
4815
|
+
# Corresponds to the JSON property `unmatchedToolCallBehavior`
|
|
4816
|
+
# @return [String]
|
|
4817
|
+
attr_accessor :unmatched_tool_call_behavior
|
|
4818
|
+
|
|
4819
|
+
def initialize(**args)
|
|
4820
|
+
update!(**args)
|
|
4821
|
+
end
|
|
4822
|
+
|
|
4823
|
+
# Update properties of this object
|
|
4824
|
+
def update!(**args)
|
|
4825
|
+
@mocked_tool_calls = args[:mocked_tool_calls] if args.key?(:mocked_tool_calls)
|
|
4826
|
+
@unmatched_tool_call_behavior = args[:unmatched_tool_call_behavior] if args.key?(:unmatched_tool_call_behavior)
|
|
4827
|
+
end
|
|
4828
|
+
end
|
|
4829
|
+
|
|
4830
|
+
# A mocked tool call. Expresses the target tool + a pattern to match against
|
|
4831
|
+
# that tool's args / inputs. If the pattern matches, then the mock response will
|
|
4832
|
+
# be returned.
|
|
4833
|
+
class MockedToolCall
|
|
4834
|
+
include Google::Apis::Core::Hashable
|
|
4835
|
+
|
|
4836
|
+
# Required. A pattern to match against the args / inputs of all dispatched tool
|
|
4837
|
+
# calls. If the tool call inputs match this pattern, then mock output will be
|
|
4838
|
+
# returned.
|
|
4839
|
+
# Corresponds to the JSON property `expectedArgsPattern`
|
|
4840
|
+
# @return [Hash<String,Object>]
|
|
4841
|
+
attr_accessor :expected_args_pattern
|
|
4842
|
+
|
|
4843
|
+
# Optional. The mock response / output to return if the tool call args / inputs
|
|
4844
|
+
# match the pattern.
|
|
4845
|
+
# Corresponds to the JSON property `mockResponse`
|
|
4846
|
+
# @return [Hash<String,Object>]
|
|
4847
|
+
attr_accessor :mock_response
|
|
4848
|
+
|
|
4849
|
+
# Optional. Deprecated. Use tool_identifier instead.
|
|
4850
|
+
# Corresponds to the JSON property `tool`
|
|
4851
|
+
# @return [String]
|
|
4852
|
+
attr_accessor :tool
|
|
4853
|
+
|
|
4854
|
+
# Optional. The name of the tool to mock. Format: `projects/`project`/locations/`
|
|
4855
|
+
# location`/apps/`app`/tools/`tool``
|
|
4856
|
+
# Corresponds to the JSON property `toolId`
|
|
4857
|
+
# @return [String]
|
|
4858
|
+
attr_accessor :tool_id
|
|
4859
|
+
|
|
4860
|
+
# A tool that is created from a toolset.
|
|
4861
|
+
# Corresponds to the JSON property `toolset`
|
|
4862
|
+
# @return [Google::Apis::CesV1::ToolsetTool]
|
|
4863
|
+
attr_accessor :toolset
|
|
4864
|
+
|
|
4865
|
+
def initialize(**args)
|
|
4866
|
+
update!(**args)
|
|
4867
|
+
end
|
|
4868
|
+
|
|
4869
|
+
# Update properties of this object
|
|
4870
|
+
def update!(**args)
|
|
4871
|
+
@expected_args_pattern = args[:expected_args_pattern] if args.key?(:expected_args_pattern)
|
|
4872
|
+
@mock_response = args[:mock_response] if args.key?(:mock_response)
|
|
4873
|
+
@tool = args[:tool] if args.key?(:tool)
|
|
4874
|
+
@tool_id = args[:tool_id] if args.key?(:tool_id)
|
|
4875
|
+
@toolset = args[:toolset] if args.key?(:toolset)
|
|
4876
|
+
end
|
|
4877
|
+
end
|
|
4878
|
+
|
|
4459
4879
|
# Model settings contains various configurations for the LLM model.
|
|
4460
4880
|
class ModelSettings
|
|
4461
4881
|
include Google::Apis::Core::Hashable
|
|
@@ -5132,6 +5552,39 @@ module Google
|
|
|
5132
5552
|
end
|
|
5133
5553
|
end
|
|
5134
5554
|
|
|
5555
|
+
# Represents a tool that allows the agent to call another remote agent.
|
|
5556
|
+
class RemoteAgentTool
|
|
5557
|
+
include Google::Apis::Core::Hashable
|
|
5558
|
+
|
|
5559
|
+
# AgentCard conveys key information about a remote agent. It is a trimmed
|
|
5560
|
+
# version of the AgentCard defined in the A2A protocol https://a2a-protocol.org/
|
|
5561
|
+
# dev/specification/#441-agentcard
|
|
5562
|
+
# Corresponds to the JSON property `agentCard`
|
|
5563
|
+
# @return [Google::Apis::CesV1::AgentCard]
|
|
5564
|
+
attr_accessor :agent_card
|
|
5565
|
+
|
|
5566
|
+
# Required. The description of the tool.
|
|
5567
|
+
# Corresponds to the JSON property `description`
|
|
5568
|
+
# @return [String]
|
|
5569
|
+
attr_accessor :description
|
|
5570
|
+
|
|
5571
|
+
# Required. The name of the tool.
|
|
5572
|
+
# Corresponds to the JSON property `name`
|
|
5573
|
+
# @return [String]
|
|
5574
|
+
attr_accessor :name
|
|
5575
|
+
|
|
5576
|
+
def initialize(**args)
|
|
5577
|
+
update!(**args)
|
|
5578
|
+
end
|
|
5579
|
+
|
|
5580
|
+
# Update properties of this object
|
|
5581
|
+
def update!(**args)
|
|
5582
|
+
@agent_card = args[:agent_card] if args.key?(:agent_card)
|
|
5583
|
+
@description = args[:description] if args.key?(:description)
|
|
5584
|
+
@name = args[:name] if args.key?(:name)
|
|
5585
|
+
end
|
|
5586
|
+
end
|
|
5587
|
+
|
|
5135
5588
|
# Request message for AgentService.RestoreAppVersion
|
|
5136
5589
|
class RestoreAppVersionRequest
|
|
5137
5590
|
include Google::Apis::Core::Hashable
|
|
@@ -5553,6 +6006,15 @@ module Google
|
|
|
5553
6006
|
# @return [String]
|
|
5554
6007
|
attr_accessor :deployment
|
|
5555
6008
|
|
|
6009
|
+
# Optional. Whether to enable streaming text outputs from the model. By default,
|
|
6010
|
+
# text outputs from the model are collected before sending to the client. NOTE:
|
|
6011
|
+
# This is only supported for text (non-voice) sessions via StreamRunSession or
|
|
6012
|
+
# BidiRunSession.
|
|
6013
|
+
# Corresponds to the JSON property `enableTextStreaming`
|
|
6014
|
+
# @return [Boolean]
|
|
6015
|
+
attr_accessor :enable_text_streaming
|
|
6016
|
+
alias_method :enable_text_streaming?, :enable_text_streaming
|
|
6017
|
+
|
|
5556
6018
|
# Optional. The entry agent to handle the session. If not specified, the session
|
|
5557
6019
|
# will be handled by the root agent of the app. Format: `projects/`project`/
|
|
5558
6020
|
# locations/`location`/apps/`app`/agents/`agent``
|
|
@@ -5612,6 +6074,7 @@ module Google
|
|
|
5612
6074
|
# Update properties of this object
|
|
5613
6075
|
def update!(**args)
|
|
5614
6076
|
@deployment = args[:deployment] if args.key?(:deployment)
|
|
6077
|
+
@enable_text_streaming = args[:enable_text_streaming] if args.key?(:enable_text_streaming)
|
|
5615
6078
|
@entry_agent = args[:entry_agent] if args.key?(:entry_agent)
|
|
5616
6079
|
@historical_contexts = args[:historical_contexts] if args.key?(:historical_contexts)
|
|
5617
6080
|
@input_audio_config = args[:input_audio_config] if args.key?(:input_audio_config)
|
|
@@ -6163,11 +6626,22 @@ module Google
|
|
|
6163
6626
|
# @return [Google::Apis::CesV1::PythonFunction]
|
|
6164
6627
|
attr_accessor :python_function
|
|
6165
6628
|
|
|
6629
|
+
# Represents a tool that allows the agent to call another remote agent.
|
|
6630
|
+
# Corresponds to the JSON property `remoteAgentTool`
|
|
6631
|
+
# @return [Google::Apis::CesV1::RemoteAgentTool]
|
|
6632
|
+
attr_accessor :remote_agent_tool
|
|
6633
|
+
|
|
6166
6634
|
# Pre-defined system tool.
|
|
6167
6635
|
# Corresponds to the JSON property `systemTool`
|
|
6168
6636
|
# @return [Google::Apis::CesV1::SystemTool]
|
|
6169
6637
|
attr_accessor :system_tool
|
|
6170
6638
|
|
|
6639
|
+
# Optional. The timeout for the tool execution. If not set, the default timeout
|
|
6640
|
+
# is 30 seconds for `SYNCHRONOUS` tools and 60 seconds for `ASYNCHRONOUS` tools.
|
|
6641
|
+
# Corresponds to the JSON property `timeout`
|
|
6642
|
+
# @return [String]
|
|
6643
|
+
attr_accessor :timeout
|
|
6644
|
+
|
|
6171
6645
|
# Configuration for tool behavior in fake mode.
|
|
6172
6646
|
# Corresponds to the JSON property `toolFakeConfig`
|
|
6173
6647
|
# @return [Google::Apis::CesV1::ToolFakeConfig]
|
|
@@ -6207,7 +6681,9 @@ module Google
|
|
|
6207
6681
|
@name = args[:name] if args.key?(:name)
|
|
6208
6682
|
@open_api_tool = args[:open_api_tool] if args.key?(:open_api_tool)
|
|
6209
6683
|
@python_function = args[:python_function] if args.key?(:python_function)
|
|
6684
|
+
@remote_agent_tool = args[:remote_agent_tool] if args.key?(:remote_agent_tool)
|
|
6210
6685
|
@system_tool = args[:system_tool] if args.key?(:system_tool)
|
|
6686
|
+
@timeout = args[:timeout] if args.key?(:timeout)
|
|
6211
6687
|
@tool_fake_config = args[:tool_fake_config] if args.key?(:tool_fake_config)
|
|
6212
6688
|
@update_time = args[:update_time] if args.key?(:update_time)
|
|
6213
6689
|
@widget_tool = args[:widget_tool] if args.key?(:widget_tool)
|
|
@@ -6682,6 +7158,29 @@ module Google
|
|
|
6682
7158
|
end
|
|
6683
7159
|
end
|
|
6684
7160
|
|
|
7161
|
+
# VPC-SC settings for the app.
|
|
7162
|
+
class VpcScSettings
|
|
7163
|
+
include Google::Apis::Core::Hashable
|
|
7164
|
+
|
|
7165
|
+
# Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are able
|
|
7166
|
+
# to directly call when VPC Service Controls are enabled. These strings must
|
|
7167
|
+
# match the origin exactly, including the port if specified. For example, "https:
|
|
7168
|
+
# //example.com" or "https://example.com:443". This list does not yet apply to
|
|
7169
|
+
# Python tools that may make direct HTTP calls.
|
|
7170
|
+
# Corresponds to the JSON property `allowedOrigins`
|
|
7171
|
+
# @return [Array<String>]
|
|
7172
|
+
attr_accessor :allowed_origins
|
|
7173
|
+
|
|
7174
|
+
def initialize(**args)
|
|
7175
|
+
update!(**args)
|
|
7176
|
+
end
|
|
7177
|
+
|
|
7178
|
+
# Update properties of this object
|
|
7179
|
+
def update!(**args)
|
|
7180
|
+
@allowed_origins = args[:allowed_origins] if args.key?(:allowed_origins)
|
|
7181
|
+
end
|
|
7182
|
+
end
|
|
7183
|
+
|
|
6685
7184
|
# Represents a single web search query and its associated search uri.
|
|
6686
7185
|
class WebSearchQuery
|
|
6687
7186
|
include Google::Apis::Core::Hashable
|
|
@@ -6735,6 +7234,11 @@ module Google
|
|
|
6735
7234
|
# @return [Google::Apis::CesV1::Schema]
|
|
6736
7235
|
attr_accessor :parameters
|
|
6737
7236
|
|
|
7237
|
+
# Configuration for the text response returned with the widget.
|
|
7238
|
+
# Corresponds to the JSON property `textResponseConfig`
|
|
7239
|
+
# @return [Google::Apis::CesV1::WidgetToolTextResponseConfig]
|
|
7240
|
+
attr_accessor :text_response_config
|
|
7241
|
+
|
|
6738
7242
|
# Optional. Configuration for rendering the widget.
|
|
6739
7243
|
# Corresponds to the JSON property `uiConfig`
|
|
6740
7244
|
# @return [Hash<String,Object>]
|
|
@@ -6756,6 +7260,7 @@ module Google
|
|
|
6756
7260
|
@description = args[:description] if args.key?(:description)
|
|
6757
7261
|
@name = args[:name] if args.key?(:name)
|
|
6758
7262
|
@parameters = args[:parameters] if args.key?(:parameters)
|
|
7263
|
+
@text_response_config = args[:text_response_config] if args.key?(:text_response_config)
|
|
6759
7264
|
@ui_config = args[:ui_config] if args.key?(:ui_config)
|
|
6760
7265
|
@widget_type = args[:widget_type] if args.key?(:widget_type)
|
|
6761
7266
|
end
|
|
@@ -6777,9 +7282,12 @@ module Google
|
|
|
6777
7282
|
# @return [String]
|
|
6778
7283
|
attr_accessor :mode
|
|
6779
7284
|
|
|
6780
|
-
#
|
|
6781
|
-
#
|
|
6782
|
-
#
|
|
7285
|
+
# A Python function tool.
|
|
7286
|
+
# Corresponds to the JSON property `pythonFunction`
|
|
7287
|
+
# @return [Google::Apis::CesV1::PythonFunction]
|
|
7288
|
+
attr_accessor :python_function
|
|
7289
|
+
|
|
7290
|
+
# Deprecated: Use `python_function` instead.
|
|
6783
7291
|
# Corresponds to the JSON property `pythonScript`
|
|
6784
7292
|
# @return [String]
|
|
6785
7293
|
attr_accessor :python_script
|
|
@@ -6799,10 +7307,43 @@ module Google
|
|
|
6799
7307
|
def update!(**args)
|
|
6800
7308
|
@field_mappings = args[:field_mappings] if args.key?(:field_mappings)
|
|
6801
7309
|
@mode = args[:mode] if args.key?(:mode)
|
|
7310
|
+
@python_function = args[:python_function] if args.key?(:python_function)
|
|
6802
7311
|
@python_script = args[:python_script] if args.key?(:python_script)
|
|
6803
7312
|
@source_tool_name = args[:source_tool_name] if args.key?(:source_tool_name)
|
|
6804
7313
|
end
|
|
6805
7314
|
end
|
|
7315
|
+
|
|
7316
|
+
# Configuration for the text response returned with the widget.
|
|
7317
|
+
class WidgetToolTextResponseConfig
|
|
7318
|
+
include Google::Apis::Core::Hashable
|
|
7319
|
+
|
|
7320
|
+
# Optional. The static text response to return when type is STATIC.
|
|
7321
|
+
# Corresponds to the JSON property `staticText`
|
|
7322
|
+
# @return [String]
|
|
7323
|
+
attr_accessor :static_text
|
|
7324
|
+
|
|
7325
|
+
# Optional. Instruction for the LLM on how to generate the text response. Used
|
|
7326
|
+
# as the description for the text response parameter if type is LLM_GENERATED.
|
|
7327
|
+
# Corresponds to the JSON property `textResponseInstruction`
|
|
7328
|
+
# @return [String]
|
|
7329
|
+
attr_accessor :text_response_instruction
|
|
7330
|
+
|
|
7331
|
+
# Optional. The strategy for providing the text response.
|
|
7332
|
+
# Corresponds to the JSON property `type`
|
|
7333
|
+
# @return [String]
|
|
7334
|
+
attr_accessor :type
|
|
7335
|
+
|
|
7336
|
+
def initialize(**args)
|
|
7337
|
+
update!(**args)
|
|
7338
|
+
end
|
|
7339
|
+
|
|
7340
|
+
# Update properties of this object
|
|
7341
|
+
def update!(**args)
|
|
7342
|
+
@static_text = args[:static_text] if args.key?(:static_text)
|
|
7343
|
+
@text_response_instruction = args[:text_response_instruction] if args.key?(:text_response_instruction)
|
|
7344
|
+
@type = args[:type] if args.key?(:type)
|
|
7345
|
+
end
|
|
7346
|
+
end
|
|
6806
7347
|
end
|
|
6807
7348
|
end
|
|
6808
7349
|
end
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module CesV1
|
|
18
18
|
# Version of the google-apis-ces_v1 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.7.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260429"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -46,6 +46,18 @@ module Google
|
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
+
class AgentCard
|
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
|
+
|
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
class AgentInterface
|
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
57
|
+
|
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
59
|
+
end
|
|
60
|
+
|
|
49
61
|
class AgentLlmAgent
|
|
50
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
63
|
|
|
@@ -58,6 +70,12 @@ module Google
|
|
|
58
70
|
include Google::Apis::Core::JsonObjectSupport
|
|
59
71
|
end
|
|
60
72
|
|
|
73
|
+
class AgentSkill
|
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
75
|
+
|
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
77
|
+
end
|
|
78
|
+
|
|
61
79
|
class AgentTool
|
|
62
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
81
|
|
|
@@ -412,6 +430,18 @@ module Google
|
|
|
412
430
|
include Google::Apis::Core::JsonObjectSupport
|
|
413
431
|
end
|
|
414
432
|
|
|
433
|
+
class ErrorHandlingSettingsEndSessionConfig
|
|
434
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
435
|
+
|
|
436
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
437
|
+
end
|
|
438
|
+
|
|
439
|
+
class ErrorHandlingSettingsFallbackResponseConfig
|
|
440
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
441
|
+
|
|
442
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
443
|
+
end
|
|
444
|
+
|
|
415
445
|
class EvaluationMetricsThresholds
|
|
416
446
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
417
447
|
|
|
@@ -466,6 +496,24 @@ module Google
|
|
|
466
496
|
include Google::Apis::Core::JsonObjectSupport
|
|
467
497
|
end
|
|
468
498
|
|
|
499
|
+
class ExperimentConfig
|
|
500
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
501
|
+
|
|
502
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
503
|
+
end
|
|
504
|
+
|
|
505
|
+
class ExperimentConfigVersionRelease
|
|
506
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
507
|
+
|
|
508
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
509
|
+
end
|
|
510
|
+
|
|
511
|
+
class ExperimentConfigVersionReleaseTrafficAllocation
|
|
512
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
513
|
+
|
|
514
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
515
|
+
end
|
|
516
|
+
|
|
469
517
|
class ExportAppRequest
|
|
470
518
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
471
519
|
|
|
@@ -712,6 +760,18 @@ module Google
|
|
|
712
760
|
include Google::Apis::Core::JsonObjectSupport
|
|
713
761
|
end
|
|
714
762
|
|
|
763
|
+
class MockConfig
|
|
764
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
765
|
+
|
|
766
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
767
|
+
end
|
|
768
|
+
|
|
769
|
+
class MockedToolCall
|
|
770
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
771
|
+
|
|
772
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
773
|
+
end
|
|
774
|
+
|
|
715
775
|
class ModelSettings
|
|
716
776
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
717
777
|
|
|
@@ -820,6 +880,12 @@ module Google
|
|
|
820
880
|
include Google::Apis::Core::JsonObjectSupport
|
|
821
881
|
end
|
|
822
882
|
|
|
883
|
+
class RemoteAgentTool
|
|
884
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
885
|
+
|
|
886
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
887
|
+
end
|
|
888
|
+
|
|
823
889
|
class RestoreAppVersionRequest
|
|
824
890
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
825
891
|
|
|
@@ -1060,6 +1126,12 @@ module Google
|
|
|
1060
1126
|
include Google::Apis::Core::JsonObjectSupport
|
|
1061
1127
|
end
|
|
1062
1128
|
|
|
1129
|
+
class VpcScSettings
|
|
1130
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
1131
|
+
|
|
1132
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
1133
|
+
end
|
|
1134
|
+
|
|
1063
1135
|
class WebSearchQuery
|
|
1064
1136
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
1065
1137
|
|
|
@@ -1078,6 +1150,12 @@ module Google
|
|
|
1078
1150
|
include Google::Apis::Core::JsonObjectSupport
|
|
1079
1151
|
end
|
|
1080
1152
|
|
|
1153
|
+
class WidgetToolTextResponseConfig
|
|
1154
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
1155
|
+
|
|
1156
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
1157
|
+
end
|
|
1158
|
+
|
|
1081
1159
|
class Action
|
|
1082
1160
|
# @private
|
|
1083
1161
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1133,6 +1211,7 @@ module Google
|
|
|
1133
1211
|
collection :transfer_rules, as: 'transferRules', class: Google::Apis::CesV1::TransferRule, decorator: Google::Apis::CesV1::TransferRule::Representation
|
|
1134
1212
|
|
|
1135
1213
|
property :update_time, as: 'updateTime'
|
|
1214
|
+
collection :validation_errors, as: 'validationErrors'
|
|
1136
1215
|
end
|
|
1137
1216
|
end
|
|
1138
1217
|
|
|
@@ -1144,6 +1223,29 @@ module Google
|
|
|
1144
1223
|
end
|
|
1145
1224
|
end
|
|
1146
1225
|
|
|
1226
|
+
class AgentCard
|
|
1227
|
+
# @private
|
|
1228
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1229
|
+
property :description, as: 'description'
|
|
1230
|
+
property :name, as: 'name'
|
|
1231
|
+
collection :skills, as: 'skills', class: Google::Apis::CesV1::AgentSkill, decorator: Google::Apis::CesV1::AgentSkill::Representation
|
|
1232
|
+
|
|
1233
|
+
collection :supported_interfaces, as: 'supportedInterfaces', class: Google::Apis::CesV1::AgentInterface, decorator: Google::Apis::CesV1::AgentInterface::Representation
|
|
1234
|
+
|
|
1235
|
+
property :version, as: 'version'
|
|
1236
|
+
end
|
|
1237
|
+
end
|
|
1238
|
+
|
|
1239
|
+
class AgentInterface
|
|
1240
|
+
# @private
|
|
1241
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1242
|
+
property :protocol_binding, as: 'protocolBinding'
|
|
1243
|
+
property :protocol_version, as: 'protocolVersion'
|
|
1244
|
+
property :tenant, as: 'tenant'
|
|
1245
|
+
property :url, as: 'url'
|
|
1246
|
+
end
|
|
1247
|
+
end
|
|
1248
|
+
|
|
1147
1249
|
class AgentLlmAgent
|
|
1148
1250
|
# @private
|
|
1149
1251
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1162,9 +1264,23 @@ module Google
|
|
|
1162
1264
|
end
|
|
1163
1265
|
end
|
|
1164
1266
|
|
|
1267
|
+
class AgentSkill
|
|
1268
|
+
# @private
|
|
1269
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1270
|
+
property :description, as: 'description'
|
|
1271
|
+
collection :examples, as: 'examples'
|
|
1272
|
+
property :id, as: 'id'
|
|
1273
|
+
collection :input_modes, as: 'inputModes'
|
|
1274
|
+
property :name, as: 'name'
|
|
1275
|
+
collection :output_modes, as: 'outputModes'
|
|
1276
|
+
collection :tags, as: 'tags'
|
|
1277
|
+
end
|
|
1278
|
+
end
|
|
1279
|
+
|
|
1165
1280
|
class AgentTool
|
|
1166
1281
|
# @private
|
|
1167
1282
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1283
|
+
property :agent, as: 'agent'
|
|
1168
1284
|
property :description, as: 'description'
|
|
1169
1285
|
property :name, as: 'name'
|
|
1170
1286
|
property :root_agent, as: 'rootAgent'
|
|
@@ -1253,8 +1369,11 @@ module Google
|
|
|
1253
1369
|
|
|
1254
1370
|
property :tool_execution_mode, as: 'toolExecutionMode'
|
|
1255
1371
|
property :update_time, as: 'updateTime'
|
|
1372
|
+
collection :validation_errors, as: 'validationErrors'
|
|
1256
1373
|
collection :variable_declarations, as: 'variableDeclarations', class: Google::Apis::CesV1::AppVariableDeclaration, decorator: Google::Apis::CesV1::AppVariableDeclaration::Representation
|
|
1257
1374
|
|
|
1375
|
+
property :vpc_sc_settings, as: 'vpcScSettings', class: Google::Apis::CesV1::VpcScSettings, decorator: Google::Apis::CesV1::VpcScSettings::Representation
|
|
1376
|
+
|
|
1258
1377
|
end
|
|
1259
1378
|
end
|
|
1260
1379
|
|
|
@@ -1559,6 +1678,7 @@ module Google
|
|
|
1559
1678
|
# @private
|
|
1560
1679
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1561
1680
|
property :disable_conversation_logging, as: 'disableConversationLogging'
|
|
1681
|
+
property :retention_window, as: 'retentionWindow'
|
|
1562
1682
|
end
|
|
1563
1683
|
end
|
|
1564
1684
|
|
|
@@ -1742,6 +1862,8 @@ module Google
|
|
|
1742
1862
|
property :create_time, as: 'createTime'
|
|
1743
1863
|
property :display_name, as: 'displayName'
|
|
1744
1864
|
property :etag, as: 'etag'
|
|
1865
|
+
property :experiment_config, as: 'experimentConfig', class: Google::Apis::CesV1::ExperimentConfig, decorator: Google::Apis::CesV1::ExperimentConfig::Representation
|
|
1866
|
+
|
|
1745
1867
|
property :name, as: 'name'
|
|
1746
1868
|
property :update_time, as: 'updateTime'
|
|
1747
1869
|
end
|
|
@@ -1797,7 +1919,26 @@ module Google
|
|
|
1797
1919
|
class ErrorHandlingSettings
|
|
1798
1920
|
# @private
|
|
1799
1921
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1922
|
+
property :end_session_config, as: 'endSessionConfig', class: Google::Apis::CesV1::ErrorHandlingSettingsEndSessionConfig, decorator: Google::Apis::CesV1::ErrorHandlingSettingsEndSessionConfig::Representation
|
|
1923
|
+
|
|
1800
1924
|
property :error_handling_strategy, as: 'errorHandlingStrategy'
|
|
1925
|
+
property :fallback_response_config, as: 'fallbackResponseConfig', class: Google::Apis::CesV1::ErrorHandlingSettingsFallbackResponseConfig, decorator: Google::Apis::CesV1::ErrorHandlingSettingsFallbackResponseConfig::Representation
|
|
1926
|
+
|
|
1927
|
+
end
|
|
1928
|
+
end
|
|
1929
|
+
|
|
1930
|
+
class ErrorHandlingSettingsEndSessionConfig
|
|
1931
|
+
# @private
|
|
1932
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1933
|
+
property :escalate_session, as: 'escalateSession'
|
|
1934
|
+
end
|
|
1935
|
+
end
|
|
1936
|
+
|
|
1937
|
+
class ErrorHandlingSettingsFallbackResponseConfig
|
|
1938
|
+
# @private
|
|
1939
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1940
|
+
hash :custom_fallback_messages, as: 'customFallbackMessages'
|
|
1941
|
+
property :max_fallback_attempts, as: 'maxFallbackAttempts'
|
|
1801
1942
|
end
|
|
1802
1943
|
end
|
|
1803
1944
|
|
|
@@ -1875,6 +2016,8 @@ module Google
|
|
|
1875
2016
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1876
2017
|
hash :args, as: 'args'
|
|
1877
2018
|
hash :context, as: 'context'
|
|
2019
|
+
property :mock_config, as: 'mockConfig', class: Google::Apis::CesV1::MockConfig, decorator: Google::Apis::CesV1::MockConfig::Representation
|
|
2020
|
+
|
|
1878
2021
|
property :tool, as: 'tool'
|
|
1879
2022
|
property :toolset_tool, as: 'toolsetTool', class: Google::Apis::CesV1::ToolsetTool, decorator: Google::Apis::CesV1::ToolsetTool::Representation
|
|
1880
2023
|
|
|
@@ -1893,6 +2036,32 @@ module Google
|
|
|
1893
2036
|
end
|
|
1894
2037
|
end
|
|
1895
2038
|
|
|
2039
|
+
class ExperimentConfig
|
|
2040
|
+
# @private
|
|
2041
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2042
|
+
property :version_release, as: 'versionRelease', class: Google::Apis::CesV1::ExperimentConfigVersionRelease, decorator: Google::Apis::CesV1::ExperimentConfigVersionRelease::Representation
|
|
2043
|
+
|
|
2044
|
+
end
|
|
2045
|
+
end
|
|
2046
|
+
|
|
2047
|
+
class ExperimentConfigVersionRelease
|
|
2048
|
+
# @private
|
|
2049
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2050
|
+
property :state, as: 'state'
|
|
2051
|
+
collection :traffic_allocations, as: 'trafficAllocations', class: Google::Apis::CesV1::ExperimentConfigVersionReleaseTrafficAllocation, decorator: Google::Apis::CesV1::ExperimentConfigVersionReleaseTrafficAllocation::Representation
|
|
2052
|
+
|
|
2053
|
+
end
|
|
2054
|
+
end
|
|
2055
|
+
|
|
2056
|
+
class ExperimentConfigVersionReleaseTrafficAllocation
|
|
2057
|
+
# @private
|
|
2058
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2059
|
+
property :app_version, as: 'appVersion'
|
|
2060
|
+
property :id, as: 'id'
|
|
2061
|
+
property :traffic_percentage, as: 'trafficPercentage'
|
|
2062
|
+
end
|
|
2063
|
+
end
|
|
2064
|
+
|
|
1896
2065
|
class ExportAppRequest
|
|
1897
2066
|
# @private
|
|
1898
2067
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -2264,6 +2433,8 @@ module Google
|
|
|
2264
2433
|
|
|
2265
2434
|
property :redaction_config, as: 'redactionConfig', class: Google::Apis::CesV1::RedactionConfig, decorator: Google::Apis::CesV1::RedactionConfig::Representation
|
|
2266
2435
|
|
|
2436
|
+
property :unredacted_audio_recording_config, as: 'unredactedAudioRecordingConfig', class: Google::Apis::CesV1::AudioRecordingConfig, decorator: Google::Apis::CesV1::AudioRecordingConfig::Representation
|
|
2437
|
+
|
|
2267
2438
|
end
|
|
2268
2439
|
end
|
|
2269
2440
|
|
|
@@ -2318,6 +2489,27 @@ module Google
|
|
|
2318
2489
|
end
|
|
2319
2490
|
end
|
|
2320
2491
|
|
|
2492
|
+
class MockConfig
|
|
2493
|
+
# @private
|
|
2494
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2495
|
+
collection :mocked_tool_calls, as: 'mockedToolCalls', class: Google::Apis::CesV1::MockedToolCall, decorator: Google::Apis::CesV1::MockedToolCall::Representation
|
|
2496
|
+
|
|
2497
|
+
property :unmatched_tool_call_behavior, as: 'unmatchedToolCallBehavior'
|
|
2498
|
+
end
|
|
2499
|
+
end
|
|
2500
|
+
|
|
2501
|
+
class MockedToolCall
|
|
2502
|
+
# @private
|
|
2503
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2504
|
+
hash :expected_args_pattern, as: 'expectedArgsPattern'
|
|
2505
|
+
hash :mock_response, as: 'mockResponse'
|
|
2506
|
+
property :tool, as: 'tool'
|
|
2507
|
+
property :tool_id, as: 'toolId'
|
|
2508
|
+
property :toolset, as: 'toolset', class: Google::Apis::CesV1::ToolsetTool, decorator: Google::Apis::CesV1::ToolsetTool::Representation
|
|
2509
|
+
|
|
2510
|
+
end
|
|
2511
|
+
end
|
|
2512
|
+
|
|
2321
2513
|
class ModelSettings
|
|
2322
2514
|
# @private
|
|
2323
2515
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -2502,6 +2694,16 @@ module Google
|
|
|
2502
2694
|
end
|
|
2503
2695
|
end
|
|
2504
2696
|
|
|
2697
|
+
class RemoteAgentTool
|
|
2698
|
+
# @private
|
|
2699
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2700
|
+
property :agent_card, as: 'agentCard', class: Google::Apis::CesV1::AgentCard, decorator: Google::Apis::CesV1::AgentCard::Representation
|
|
2701
|
+
|
|
2702
|
+
property :description, as: 'description'
|
|
2703
|
+
property :name, as: 'name'
|
|
2704
|
+
end
|
|
2705
|
+
end
|
|
2706
|
+
|
|
2505
2707
|
class RestoreAppVersionRequest
|
|
2506
2708
|
# @private
|
|
2507
2709
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -2631,6 +2833,7 @@ module Google
|
|
|
2631
2833
|
# @private
|
|
2632
2834
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2633
2835
|
property :deployment, as: 'deployment'
|
|
2836
|
+
property :enable_text_streaming, as: 'enableTextStreaming'
|
|
2634
2837
|
property :entry_agent, as: 'entryAgent'
|
|
2635
2838
|
collection :historical_contexts, as: 'historicalContexts', class: Google::Apis::CesV1::Message, decorator: Google::Apis::CesV1::Message::Representation
|
|
2636
2839
|
|
|
@@ -2792,8 +2995,11 @@ module Google
|
|
|
2792
2995
|
|
|
2793
2996
|
property :python_function, as: 'pythonFunction', class: Google::Apis::CesV1::PythonFunction, decorator: Google::Apis::CesV1::PythonFunction::Representation
|
|
2794
2997
|
|
|
2998
|
+
property :remote_agent_tool, as: 'remoteAgentTool', class: Google::Apis::CesV1::RemoteAgentTool, decorator: Google::Apis::CesV1::RemoteAgentTool::Representation
|
|
2999
|
+
|
|
2795
3000
|
property :system_tool, as: 'systemTool', class: Google::Apis::CesV1::SystemTool, decorator: Google::Apis::CesV1::SystemTool::Representation
|
|
2796
3001
|
|
|
3002
|
+
property :timeout, as: 'timeout'
|
|
2797
3003
|
property :tool_fake_config, as: 'toolFakeConfig', class: Google::Apis::CesV1::ToolFakeConfig, decorator: Google::Apis::CesV1::ToolFakeConfig::Representation
|
|
2798
3004
|
|
|
2799
3005
|
property :update_time, as: 'updateTime'
|
|
@@ -2952,6 +3158,13 @@ module Google
|
|
|
2952
3158
|
end
|
|
2953
3159
|
end
|
|
2954
3160
|
|
|
3161
|
+
class VpcScSettings
|
|
3162
|
+
# @private
|
|
3163
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
3164
|
+
collection :allowed_origins, as: 'allowedOrigins'
|
|
3165
|
+
end
|
|
3166
|
+
end
|
|
3167
|
+
|
|
2955
3168
|
class WebSearchQuery
|
|
2956
3169
|
# @private
|
|
2957
3170
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -2969,6 +3182,8 @@ module Google
|
|
|
2969
3182
|
property :name, as: 'name'
|
|
2970
3183
|
property :parameters, as: 'parameters', class: Google::Apis::CesV1::Schema, decorator: Google::Apis::CesV1::Schema::Representation
|
|
2971
3184
|
|
|
3185
|
+
property :text_response_config, as: 'textResponseConfig', class: Google::Apis::CesV1::WidgetToolTextResponseConfig, decorator: Google::Apis::CesV1::WidgetToolTextResponseConfig::Representation
|
|
3186
|
+
|
|
2972
3187
|
hash :ui_config, as: 'uiConfig'
|
|
2973
3188
|
property :widget_type, as: 'widgetType'
|
|
2974
3189
|
end
|
|
@@ -2979,10 +3194,21 @@ module Google
|
|
|
2979
3194
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2980
3195
|
hash :field_mappings, as: 'fieldMappings'
|
|
2981
3196
|
property :mode, as: 'mode'
|
|
3197
|
+
property :python_function, as: 'pythonFunction', class: Google::Apis::CesV1::PythonFunction, decorator: Google::Apis::CesV1::PythonFunction::Representation
|
|
3198
|
+
|
|
2982
3199
|
property :python_script, as: 'pythonScript'
|
|
2983
3200
|
property :source_tool_name, as: 'sourceToolName'
|
|
2984
3201
|
end
|
|
2985
3202
|
end
|
|
3203
|
+
|
|
3204
|
+
class WidgetToolTextResponseConfig
|
|
3205
|
+
# @private
|
|
3206
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
3207
|
+
property :static_text, as: 'staticText'
|
|
3208
|
+
property :text_response_instruction, as: 'textResponseInstruction'
|
|
3209
|
+
property :type, as: 'type'
|
|
3210
|
+
end
|
|
3211
|
+
end
|
|
2986
3212
|
end
|
|
2987
3213
|
end
|
|
2988
3214
|
end
|
|
@@ -82,15 +82,20 @@ module Google
|
|
|
82
82
|
end
|
|
83
83
|
|
|
84
84
|
# Lists information about the supported locations for this service. This method
|
|
85
|
-
#
|
|
86
|
-
#
|
|
87
|
-
#
|
|
88
|
-
#
|
|
85
|
+
# lists locations based on the resource scope provided in the
|
|
86
|
+
# ListLocationsRequest.name field: * **Global locations**: If `name` is empty,
|
|
87
|
+
# the method lists the public locations available to all projects. * **Project-
|
|
88
|
+
# specific locations**: If `name` follows the format `projects/`project``, the
|
|
89
|
+
# method lists locations visible to that specific project. This includes public,
|
|
90
|
+
# private, or other project-specific locations enabled for the project. For gRPC
|
|
91
|
+
# and client library implementations, the resource name is passed as the `name`
|
|
92
|
+
# field. For direct service calls, the resource name is incorporated into the
|
|
93
|
+
# request path based on the specific service implementation and version.
|
|
89
94
|
# @param [String] name
|
|
90
95
|
# The resource that owns the locations collection, if applicable.
|
|
91
96
|
# @param [Array<String>, String] extra_location_types
|
|
92
|
-
# Optional. Do not use this field
|
|
93
|
-
#
|
|
97
|
+
# Optional. Do not use this field unless explicitly documented otherwise. This
|
|
98
|
+
# is primarily for internal usage.
|
|
94
99
|
# @param [String] filter
|
|
95
100
|
# A filter to narrow down results to a preferred subset. The filtering language
|
|
96
101
|
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
|
@@ -1525,6 +1530,45 @@ module Google
|
|
|
1525
1530
|
execute_or_queue_command(command, &block)
|
|
1526
1531
|
end
|
|
1527
1532
|
|
|
1533
|
+
# Initiates a single-turn interaction with the CES agent. Uses server-side
|
|
1534
|
+
# streaming to deliver incremental results and partial responses as they are
|
|
1535
|
+
# generated. By default, complete responses (e.g., messages from callbacks or
|
|
1536
|
+
# full LLM responses) are sent to the client as soon as they are available. To
|
|
1537
|
+
# enable streaming individual text chunks directly from the model, set
|
|
1538
|
+
# enable_text_streaming to true.
|
|
1539
|
+
# @param [String] session
|
|
1540
|
+
# Required. The unique identifier of the session. Format: `projects/`project`/
|
|
1541
|
+
# locations/`location`/apps/`app`/sessions/`session``
|
|
1542
|
+
# @param [Google::Apis::CesV1::RunSessionRequest] run_session_request_object
|
|
1543
|
+
# @param [String] fields
|
|
1544
|
+
# Selector specifying which fields to include in a partial response.
|
|
1545
|
+
# @param [String] quota_user
|
|
1546
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1547
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1548
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1549
|
+
# Request-specific options
|
|
1550
|
+
#
|
|
1551
|
+
# @yield [result, err] Result & error if block supplied
|
|
1552
|
+
# @yieldparam result [Google::Apis::CesV1::RunSessionResponse] parsed result object
|
|
1553
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1554
|
+
#
|
|
1555
|
+
# @return [Google::Apis::CesV1::RunSessionResponse]
|
|
1556
|
+
#
|
|
1557
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1558
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1559
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1560
|
+
def stream_project_location_app_session_run_session(session, run_session_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1561
|
+
command = make_simple_command(:post, 'v1/{+session}:streamRunSession', options)
|
|
1562
|
+
command.request_representation = Google::Apis::CesV1::RunSessionRequest::Representation
|
|
1563
|
+
command.request_object = run_session_request_object
|
|
1564
|
+
command.response_representation = Google::Apis::CesV1::RunSessionResponse::Representation
|
|
1565
|
+
command.response_class = Google::Apis::CesV1::RunSessionResponse
|
|
1566
|
+
command.params['session'] = session unless session.nil?
|
|
1567
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1568
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1569
|
+
execute_or_queue_command(command, &block)
|
|
1570
|
+
end
|
|
1571
|
+
|
|
1528
1572
|
# Creates a new tool in the given app.
|
|
1529
1573
|
# @param [String] parent
|
|
1530
1574
|
# Required. The resource name of the app to create a tool in.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-ces_v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -58,7 +58,7 @@ licenses:
|
|
|
58
58
|
metadata:
|
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-ces_v1/CHANGELOG.md
|
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-ces_v1/v0.
|
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-ces_v1/v0.7.0
|
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-ces_v1
|
|
63
63
|
rdoc_options: []
|
|
64
64
|
require_paths:
|