aws-sdk-bedrockagentruntime 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockagentruntime/client.rb +85 -62
- data/lib/aws-sdk-bedrockagentruntime.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a7807ae877e929d1ebf772ede849e026038aef63d4cab849617d61b17ca4ab2
|
4
|
+
data.tar.gz: 65456ef078ed1cf91f3f6bb9771417e2a8754a9112f73f40a967c8e2d931a04c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c87fb48cd5dca38d6bc19cab8ffd706e48d38b824eb5fab4bcada125e8c03de0b2bf8e9fa2952390d2b3a52b5f9691a9c4ef1dbfd41750f7841d9ae1af99b0b7
|
7
|
+
data.tar.gz: 5c541812632089ec05e6323e2297a14795fd4964742bd7fab30c5ca2d365828c62c9babe1460cbcd9d0aa866364692cf21fafdc191e81fcad22b5362b8672258
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.7.0
|
@@ -22,6 +22,7 @@ require 'aws-sdk-core/plugins/endpoint_pattern.rb'
|
|
22
22
|
require 'aws-sdk-core/plugins/response_paging.rb'
|
23
23
|
require 'aws-sdk-core/plugins/stub_responses.rb'
|
24
24
|
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
25
|
+
require 'aws-sdk-core/plugins/invocation_id.rb'
|
25
26
|
require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
26
27
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
27
28
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
@@ -73,6 +74,7 @@ module Aws::BedrockAgentRuntime
|
|
73
74
|
add_plugin(Aws::Plugins::ResponsePaging)
|
74
75
|
add_plugin(Aws::Plugins::StubResponses)
|
75
76
|
add_plugin(Aws::Plugins::IdempotencyToken)
|
77
|
+
add_plugin(Aws::Plugins::InvocationId)
|
76
78
|
add_plugin(Aws::Plugins::JsonvalueConverter)
|
77
79
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
78
80
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
@@ -198,10 +200,17 @@ module Aws::BedrockAgentRuntime
|
|
198
200
|
# When set to 'true' the request body will not be compressed
|
199
201
|
# for supported operations.
|
200
202
|
#
|
201
|
-
# @option options [String] :endpoint
|
202
|
-
#
|
203
|
-
#
|
204
|
-
#
|
203
|
+
# @option options [String, URI::HTTPS, URI::HTTP] :endpoint
|
204
|
+
# Normally you should not configure the `:endpoint` option
|
205
|
+
# directly. This is normally constructed from the `:region`
|
206
|
+
# option. Configuring `:endpoint` is normally reserved for
|
207
|
+
# connecting to test or custom endpoints. The endpoint should
|
208
|
+
# be a URI formatted like:
|
209
|
+
#
|
210
|
+
# 'http://example.com'
|
211
|
+
# 'https://example.com'
|
212
|
+
# 'http://example.com:123'
|
213
|
+
#
|
205
214
|
#
|
206
215
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
207
216
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -348,50 +357,65 @@ module Aws::BedrockAgentRuntime
|
|
348
357
|
# @option options [Aws::BedrockAgentRuntime::EndpointProvider] :endpoint_provider
|
349
358
|
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::BedrockAgentRuntime::EndpointParameters`
|
350
359
|
#
|
351
|
-
# @option options [
|
352
|
-
#
|
353
|
-
#
|
354
|
-
#
|
355
|
-
#
|
356
|
-
#
|
357
|
-
#
|
358
|
-
#
|
359
|
-
#
|
360
|
-
#
|
361
|
-
#
|
362
|
-
# @option options [Float] :
|
363
|
-
#
|
364
|
-
#
|
365
|
-
#
|
366
|
-
#
|
367
|
-
#
|
368
|
-
#
|
369
|
-
#
|
370
|
-
#
|
371
|
-
#
|
372
|
-
#
|
373
|
-
#
|
374
|
-
#
|
375
|
-
#
|
360
|
+
# @option options [Float] :http_continue_timeout (1)
|
361
|
+
# The number of seconds to wait for a 100-continue response before sending the
|
362
|
+
# request body. This option has no effect unless the request has "Expect"
|
363
|
+
# header set to "100-continue". Defaults to `nil` which disables this
|
364
|
+
# behaviour. This value can safely be set per request on the session.
|
365
|
+
#
|
366
|
+
# @option options [Float] :http_idle_timeout (5)
|
367
|
+
# The number of seconds a connection is allowed to sit idle before it
|
368
|
+
# is considered stale. Stale connections are closed and removed from the
|
369
|
+
# pool before making a request.
|
370
|
+
#
|
371
|
+
# @option options [Float] :http_open_timeout (15)
|
372
|
+
# The default number of seconds to wait for response data.
|
373
|
+
# This value can safely be set per-request on the session.
|
374
|
+
#
|
375
|
+
# @option options [URI::HTTP,String] :http_proxy
|
376
|
+
# A proxy to send requests through. Formatted like 'http://proxy.com:123'.
|
377
|
+
#
|
378
|
+
# @option options [Float] :http_read_timeout (60)
|
379
|
+
# The default number of seconds to wait for response data.
|
380
|
+
# This value can safely be set per-request on the session.
|
381
|
+
#
|
382
|
+
# @option options [Boolean] :http_wire_trace (false)
|
383
|
+
# When `true`, HTTP debug output will be sent to the `:logger`.
|
384
|
+
#
|
385
|
+
# @option options [Proc] :on_chunk_received
|
386
|
+
# When a Proc object is provided, it will be used as callback when each chunk
|
387
|
+
# of the response body is received. It provides three arguments: the chunk,
|
388
|
+
# the number of bytes received, and the total number of
|
389
|
+
# bytes in the response (or nil if the server did not send a `content-length`).
|
390
|
+
#
|
391
|
+
# @option options [Proc] :on_chunk_sent
|
392
|
+
# When a Proc object is provided, it will be used as callback when each chunk
|
393
|
+
# of the request body is sent. It provides three arguments: the chunk,
|
394
|
+
# the number of bytes read from the body, and the total number of
|
395
|
+
# bytes in the body.
|
396
|
+
#
|
397
|
+
# @option options [Boolean] :raise_response_errors (true)
|
398
|
+
# When `true`, response errors are raised.
|
399
|
+
#
|
400
|
+
# @option options [String] :ssl_ca_bundle
|
401
|
+
# Full path to the SSL certificate authority bundle file that should be used when
|
402
|
+
# verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
|
403
|
+
# `:ssl_ca_directory` the the system default will be used if available.
|
404
|
+
#
|
405
|
+
# @option options [String] :ssl_ca_directory
|
406
|
+
# Full path of the directory that contains the unbundled SSL certificate
|
407
|
+
# authority files for verifying peer certificates. If you do
|
408
|
+
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
|
409
|
+
# default will be used if available.
|
376
410
|
#
|
377
|
-
# @option options [
|
378
|
-
#
|
411
|
+
# @option options [String] :ssl_ca_store
|
412
|
+
# Sets the X509::Store to verify peer certificate.
|
379
413
|
#
|
380
|
-
# @option options [
|
381
|
-
#
|
382
|
-
# connection.
|
414
|
+
# @option options [Float] :ssl_timeout
|
415
|
+
# Sets the SSL timeout in seconds
|
383
416
|
#
|
384
|
-
# @option options [
|
385
|
-
#
|
386
|
-
# verifying peer certificates. If you do not pass
|
387
|
-
# `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
|
388
|
-
# will be used if available.
|
389
|
-
#
|
390
|
-
# @option options [String] :ssl_ca_directory Full path of the
|
391
|
-
# directory that contains the unbundled SSL certificate
|
392
|
-
# authority files for verifying peer certificates. If you do
|
393
|
-
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
|
394
|
-
# system default will be used if available.
|
417
|
+
# @option options [Boolean] :ssl_verify_peer (true)
|
418
|
+
# When `true`, SSL peer certificates are verified when establishing a connection.
|
395
419
|
#
|
396
420
|
def initialize(*args)
|
397
421
|
super
|
@@ -476,22 +500,22 @@ module Aws::BedrockAgentRuntime
|
|
476
500
|
#
|
477
501
|
# @example EventStream Operation Example
|
478
502
|
#
|
479
|
-
# You can process event once it arrives immediately, or wait until
|
480
|
-
# full response complete and iterate through eventstream enumerator.
|
503
|
+
# You can process the event once it arrives immediately, or wait until the
|
504
|
+
# full response is complete and iterate through the eventstream enumerator.
|
481
505
|
#
|
482
506
|
# To interact with event immediately, you need to register #invoke_agent
|
483
|
-
# with callbacks
|
484
|
-
#
|
507
|
+
# with callbacks. Callbacks can be registered for specific events or for all
|
508
|
+
# events, including error events.
|
485
509
|
#
|
486
|
-
# Callbacks can be passed
|
487
|
-
# statement attached to #invoke_agent call directly. Hybrid
|
488
|
-
# is also supported.
|
510
|
+
# Callbacks can be passed into the `:event_stream_handler` option or within a
|
511
|
+
# block statement attached to the #invoke_agent call directly. Hybrid
|
512
|
+
# pattern of both is also supported.
|
489
513
|
#
|
490
|
-
# `:event_stream_handler` option takes in either Proc object or
|
514
|
+
# `:event_stream_handler` option takes in either a Proc object or
|
491
515
|
# Aws::BedrockAgentRuntime::EventStreams::ResponseStream object.
|
492
516
|
#
|
493
|
-
# Usage pattern a):
|
494
|
-
# Example for registering callbacks for all event types and error event
|
517
|
+
# Usage pattern a): Callbacks with a block attached to #invoke_agent
|
518
|
+
# Example for registering callbacks for all event types and an error event
|
495
519
|
#
|
496
520
|
# client.invoke_agent( # params input# ) do |stream|
|
497
521
|
# stream.on_error_event do |event|
|
@@ -511,9 +535,9 @@ module Aws::BedrockAgentRuntime
|
|
511
535
|
#
|
512
536
|
# end
|
513
537
|
#
|
514
|
-
# Usage pattern b):
|
538
|
+
# Usage pattern b): Pass in `:event_stream_handler` for #invoke_agent
|
515
539
|
#
|
516
|
-
# 1)
|
540
|
+
# 1) Create a Aws::BedrockAgentRuntime::EventStreams::ResponseStream object
|
517
541
|
# Example for registering callbacks with specific events
|
518
542
|
#
|
519
543
|
# handler = Aws::BedrockAgentRuntime::EventStreams::ResponseStream.new
|
@@ -556,7 +580,7 @@ module Aws::BedrockAgentRuntime
|
|
556
580
|
#
|
557
581
|
# client.invoke_agent( # params input #, event_stream_handler: handler)
|
558
582
|
#
|
559
|
-
# 2)
|
583
|
+
# 2) Use a Ruby Proc object
|
560
584
|
# Example for registering callbacks with specific events
|
561
585
|
#
|
562
586
|
# handler = Proc.new do |stream|
|
@@ -600,7 +624,7 @@ module Aws::BedrockAgentRuntime
|
|
600
624
|
#
|
601
625
|
# client.invoke_agent( # params input #, event_stream_handler: handler)
|
602
626
|
#
|
603
|
-
# Usage pattern c):
|
627
|
+
# Usage pattern c): Hybrid pattern of a) and b)
|
604
628
|
#
|
605
629
|
# handler = Aws::BedrockAgentRuntime::EventStreams::ResponseStream.new
|
606
630
|
# handler.on_access_denied_exception_event do |event|
|
@@ -651,8 +675,7 @@ module Aws::BedrockAgentRuntime
|
|
651
675
|
# end
|
652
676
|
# end
|
653
677
|
#
|
654
|
-
#
|
655
|
-
# iterate through events after response complete.
|
678
|
+
# You can also iterate through events after the response complete.
|
656
679
|
#
|
657
680
|
# Events are available at resp.completion # => Enumerator
|
658
681
|
# For parameter input example, please refer to following request syntax
|
@@ -1173,7 +1196,7 @@ module Aws::BedrockAgentRuntime
|
|
1173
1196
|
params: params,
|
1174
1197
|
config: config)
|
1175
1198
|
context[:gem_name] = 'aws-sdk-bedrockagentruntime'
|
1176
|
-
context[:gem_version] = '1.
|
1199
|
+
context[:gem_version] = '1.7.0'
|
1177
1200
|
Seahorse::Client::Request.new(handlers, context)
|
1178
1201
|
end
|
1179
1202
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-bedrockagentruntime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.193.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.193.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|