aws-sdk-bedrockruntime 1.42.0 → 1.44.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockruntime/async_client.rb +626 -0
- data/lib/aws-sdk-bedrockruntime/client.rb +85 -35
- data/lib/aws-sdk-bedrockruntime/client_api.rb +72 -4
- data/lib/aws-sdk-bedrockruntime/event_streams.rb +87 -0
- data/lib/aws-sdk-bedrockruntime/types.rb +190 -9
- data/lib/aws-sdk-bedrockruntime.rb +2 -1
- data/sig/client.rbs +18 -5
- data/sig/types.rbs +51 -10
- metadata +3 -2
data/sig/types.rbs
CHANGED
@@ -21,12 +21,14 @@ module Aws::BedrockRuntime
|
|
21
21
|
attr_accessor guardrail_version: ::String
|
22
22
|
attr_accessor source: ("INPUT" | "OUTPUT")
|
23
23
|
attr_accessor content: ::Array[Types::GuardrailContentBlock]
|
24
|
+
attr_accessor output_scope: ("INTERVENTIONS" | "FULL")
|
24
25
|
SENSITIVE: []
|
25
26
|
end
|
26
27
|
|
27
28
|
class ApplyGuardrailResponse
|
28
29
|
attr_accessor usage: Types::GuardrailUsage
|
29
30
|
attr_accessor action: ("NONE" | "GUARDRAIL_INTERVENED")
|
31
|
+
attr_accessor action_reason: ::String
|
30
32
|
attr_accessor outputs: ::Array[Types::GuardrailOutputContent]
|
31
33
|
attr_accessor assessments: ::Array[Types::GuardrailAssessment]
|
32
34
|
attr_accessor guardrail_coverage: Types::GuardrailCoverage
|
@@ -67,6 +69,18 @@ module Aws::BedrockRuntime
|
|
67
69
|
class AutoToolChoice < Aws::EmptyStructure
|
68
70
|
end
|
69
71
|
|
72
|
+
class BidirectionalInputPayloadPart
|
73
|
+
attr_accessor bytes: ::String
|
74
|
+
attr_accessor event_type: untyped
|
75
|
+
SENSITIVE: [:bytes]
|
76
|
+
end
|
77
|
+
|
78
|
+
class BidirectionalOutputPayloadPart
|
79
|
+
attr_accessor bytes: ::String
|
80
|
+
attr_accessor event_type: untyped
|
81
|
+
SENSITIVE: [:bytes]
|
82
|
+
end
|
83
|
+
|
70
84
|
class CachePointBlock
|
71
85
|
attr_accessor type: ("default")
|
72
86
|
SENSITIVE: []
|
@@ -297,7 +311,7 @@ module Aws::BedrockRuntime
|
|
297
311
|
class GuardrailConfiguration
|
298
312
|
attr_accessor guardrail_identifier: ::String
|
299
313
|
attr_accessor guardrail_version: ::String
|
300
|
-
attr_accessor trace: ("enabled" | "disabled")
|
314
|
+
attr_accessor trace: ("enabled" | "disabled" | "enabled_full")
|
301
315
|
SENSITIVE: []
|
302
316
|
end
|
303
317
|
|
@@ -319,7 +333,8 @@ module Aws::BedrockRuntime
|
|
319
333
|
attr_accessor type: ("INSULTS" | "HATE" | "SEXUAL" | "VIOLENCE" | "MISCONDUCT" | "PROMPT_ATTACK")
|
320
334
|
attr_accessor confidence: ("NONE" | "LOW" | "MEDIUM" | "HIGH")
|
321
335
|
attr_accessor filter_strength: ("NONE" | "LOW" | "MEDIUM" | "HIGH")
|
322
|
-
attr_accessor action: ("BLOCKED")
|
336
|
+
attr_accessor action: ("BLOCKED" | "NONE")
|
337
|
+
attr_accessor detected: bool
|
323
338
|
SENSITIVE: []
|
324
339
|
end
|
325
340
|
|
@@ -333,6 +348,7 @@ module Aws::BedrockRuntime
|
|
333
348
|
attr_accessor threshold: ::Float
|
334
349
|
attr_accessor score: ::Float
|
335
350
|
attr_accessor action: ("BLOCKED" | "NONE")
|
351
|
+
attr_accessor detected: bool
|
336
352
|
SENSITIVE: []
|
337
353
|
end
|
338
354
|
|
@@ -386,7 +402,8 @@ module Aws::BedrockRuntime
|
|
386
402
|
|
387
403
|
class GuardrailCustomWord
|
388
404
|
attr_accessor match: ::String
|
389
|
-
attr_accessor action: ("BLOCKED")
|
405
|
+
attr_accessor action: ("BLOCKED" | "NONE")
|
406
|
+
attr_accessor detected: bool
|
390
407
|
SENSITIVE: []
|
391
408
|
end
|
392
409
|
|
@@ -423,7 +440,8 @@ module Aws::BedrockRuntime
|
|
423
440
|
class GuardrailManagedWord
|
424
441
|
attr_accessor match: ::String
|
425
442
|
attr_accessor type: ("PROFANITY")
|
426
|
-
attr_accessor action: ("BLOCKED")
|
443
|
+
attr_accessor action: ("BLOCKED" | "NONE")
|
444
|
+
attr_accessor detected: bool
|
427
445
|
SENSITIVE: []
|
428
446
|
end
|
429
447
|
|
@@ -435,7 +453,8 @@ module Aws::BedrockRuntime
|
|
435
453
|
class GuardrailPiiEntityFilter
|
436
454
|
attr_accessor match: ::String
|
437
455
|
attr_accessor type: ("ADDRESS" | "AGE" | "AWS_ACCESS_KEY" | "AWS_SECRET_KEY" | "CA_HEALTH_NUMBER" | "CA_SOCIAL_INSURANCE_NUMBER" | "CREDIT_DEBIT_CARD_CVV" | "CREDIT_DEBIT_CARD_EXPIRY" | "CREDIT_DEBIT_CARD_NUMBER" | "DRIVER_ID" | "EMAIL" | "INTERNATIONAL_BANK_ACCOUNT_NUMBER" | "IP_ADDRESS" | "LICENSE_PLATE" | "MAC_ADDRESS" | "NAME" | "PASSWORD" | "PHONE" | "PIN" | "SWIFT_CODE" | "UK_NATIONAL_HEALTH_SERVICE_NUMBER" | "UK_NATIONAL_INSURANCE_NUMBER" | "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER" | "URL" | "USERNAME" | "US_BANK_ACCOUNT_NUMBER" | "US_BANK_ROUTING_NUMBER" | "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER" | "US_PASSPORT_NUMBER" | "US_SOCIAL_SECURITY_NUMBER" | "VEHICLE_IDENTIFICATION_NUMBER")
|
438
|
-
attr_accessor action: ("ANONYMIZED" | "BLOCKED")
|
456
|
+
attr_accessor action: ("ANONYMIZED" | "BLOCKED" | "NONE")
|
457
|
+
attr_accessor detected: bool
|
439
458
|
SENSITIVE: []
|
440
459
|
end
|
441
460
|
|
@@ -443,7 +462,8 @@ module Aws::BedrockRuntime
|
|
443
462
|
attr_accessor name: ::String
|
444
463
|
attr_accessor match: ::String
|
445
464
|
attr_accessor regex: ::String
|
446
|
-
attr_accessor action: ("ANONYMIZED" | "BLOCKED")
|
465
|
+
attr_accessor action: ("ANONYMIZED" | "BLOCKED" | "NONE")
|
466
|
+
attr_accessor detected: bool
|
447
467
|
SENSITIVE: []
|
448
468
|
end
|
449
469
|
|
@@ -456,7 +476,7 @@ module Aws::BedrockRuntime
|
|
456
476
|
class GuardrailStreamConfiguration
|
457
477
|
attr_accessor guardrail_identifier: ::String
|
458
478
|
attr_accessor guardrail_version: ::String
|
459
|
-
attr_accessor trace: ("enabled" | "disabled")
|
479
|
+
attr_accessor trace: ("enabled" | "disabled" | "enabled_full")
|
460
480
|
attr_accessor stream_processing_mode: ("sync" | "async")
|
461
481
|
SENSITIVE: []
|
462
482
|
end
|
@@ -476,7 +496,8 @@ module Aws::BedrockRuntime
|
|
476
496
|
class GuardrailTopic
|
477
497
|
attr_accessor name: ::String
|
478
498
|
attr_accessor type: ("DENY")
|
479
|
-
attr_accessor action: ("BLOCKED")
|
499
|
+
attr_accessor action: ("BLOCKED" | "NONE")
|
500
|
+
attr_accessor detected: bool
|
480
501
|
SENSITIVE: []
|
481
502
|
end
|
482
503
|
|
@@ -489,6 +510,7 @@ module Aws::BedrockRuntime
|
|
489
510
|
attr_accessor model_output: ::Array[::String]
|
490
511
|
attr_accessor input_assessment: ::Hash[::String, Types::GuardrailAssessment]
|
491
512
|
attr_accessor output_assessments: ::Hash[::String, ::Array[Types::GuardrailAssessment]]
|
513
|
+
attr_accessor action_reason: ::String
|
492
514
|
SENSITIVE: []
|
493
515
|
end
|
494
516
|
|
@@ -545,7 +567,7 @@ module Aws::BedrockRuntime
|
|
545
567
|
attr_accessor content_type: ::String
|
546
568
|
attr_accessor accept: ::String
|
547
569
|
attr_accessor model_id: ::String
|
548
|
-
attr_accessor trace: ("ENABLED" | "DISABLED")
|
570
|
+
attr_accessor trace: ("ENABLED" | "DISABLED" | "ENABLED_FULL")
|
549
571
|
attr_accessor guardrail_identifier: ::String
|
550
572
|
attr_accessor guardrail_version: ::String
|
551
573
|
attr_accessor performance_config_latency: ("standard" | "optimized")
|
@@ -559,12 +581,23 @@ module Aws::BedrockRuntime
|
|
559
581
|
SENSITIVE: [:body]
|
560
582
|
end
|
561
583
|
|
584
|
+
class InvokeModelWithBidirectionalStreamRequest
|
585
|
+
attr_accessor model_id: ::String
|
586
|
+
attr_accessor body: Types::InvokeModelWithBidirectionalStreamInput
|
587
|
+
SENSITIVE: []
|
588
|
+
end
|
589
|
+
|
590
|
+
class InvokeModelWithBidirectionalStreamResponse
|
591
|
+
attr_accessor body: Types::InvokeModelWithBidirectionalStreamOutput
|
592
|
+
SENSITIVE: []
|
593
|
+
end
|
594
|
+
|
562
595
|
class InvokeModelWithResponseStreamRequest
|
563
596
|
attr_accessor body: ::String
|
564
597
|
attr_accessor content_type: ::String
|
565
598
|
attr_accessor accept: ::String
|
566
599
|
attr_accessor model_id: ::String
|
567
|
-
attr_accessor trace: ("ENABLED" | "DISABLED")
|
600
|
+
attr_accessor trace: ("ENABLED" | "DISABLED" | "ENABLED_FULL")
|
568
601
|
attr_accessor guardrail_identifier: ::String
|
569
602
|
attr_accessor guardrail_version: ::String
|
570
603
|
attr_accessor performance_config_latency: ("standard" | "optimized")
|
@@ -916,6 +949,14 @@ module Aws::BedrockRuntime
|
|
916
949
|
def event_types: () -> [:message_start, :content_block_start, :content_block_delta, :content_block_stop, :message_stop, :metadata, :internal_server_exception, :model_stream_error_exception, :validation_exception, :throttling_exception, :service_unavailable_exception]
|
917
950
|
end
|
918
951
|
|
952
|
+
class InvokeModelWithBidirectionalStreamInput < Enumerator[untyped, untyped]
|
953
|
+
def event_types: () -> [:chunk]
|
954
|
+
end
|
955
|
+
|
956
|
+
class InvokeModelWithBidirectionalStreamOutput < Enumerator[untyped, untyped]
|
957
|
+
def event_types: () -> [:chunk, :internal_server_exception, :model_stream_error_exception, :validation_exception, :throttling_exception, :model_timeout_exception, :service_unavailable_exception]
|
958
|
+
end
|
959
|
+
|
919
960
|
class ResponseStream < Enumerator[untyped, untyped]
|
920
961
|
def event_types: () -> [:chunk, :internal_server_exception, :model_stream_error_exception, :validation_exception, :throttling_exception, :model_timeout_exception, :service_unavailable_exception]
|
921
962
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-bedrockruntime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.44.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: 2025-
|
11
|
+
date: 2025-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -56,6 +56,7 @@ files:
|
|
56
56
|
- LICENSE.txt
|
57
57
|
- VERSION
|
58
58
|
- lib/aws-sdk-bedrockruntime.rb
|
59
|
+
- lib/aws-sdk-bedrockruntime/async_client.rb
|
59
60
|
- lib/aws-sdk-bedrockruntime/client.rb
|
60
61
|
- lib/aws-sdk-bedrockruntime/client_api.rb
|
61
62
|
- lib/aws-sdk-bedrockruntime/customizations.rb
|