aws-sdk-bedrockruntime 1.41.0 → 1.43.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/client.rb +108 -35
- data/lib/aws-sdk-bedrockruntime/client_api.rb +27 -0
- data/lib/aws-sdk-bedrockruntime/types.rb +119 -10
- data/lib/aws-sdk-bedrockruntime.rb +1 -1
- data/sig/client.rbs +25 -5
- data/sig/types.rbs +36 -10
- 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: 01ca98a7431e868f90e1e847e206af0a3a51cc9f67b00cb90d6a4ce5d01760ab
|
4
|
+
data.tar.gz: dc510bf498b5977831b44c8b2a2655907aa69f3ecd18a33ffa3a946adf168738
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8050bb5f6451ef3aa3c1b03dc9f18bf44c612b446d09c78b4191787162ac191fa2521f25365c8813ffd6011d4eb9d0bd59485f186212eed46e31378929ea798
|
7
|
+
data.tar.gz: 646b5aa373058b4f9376a4591fa894a0f62cbbede5f146028d53725fee114296868e4e8d502364c9e05f807740da6a74a0767f213f45d168f058a3449b8384fa
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.43.0 (2025-04-07)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - New options for how to handle harmful content detected by Amazon Bedrock Guardrails.
|
8
|
+
|
9
|
+
1.42.0 (2025-03-31)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Add Prompt Caching support to Converse and ConverseStream APIs
|
13
|
+
|
4
14
|
1.41.0 (2025-03-28)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.43.0
|
@@ -503,10 +503,21 @@ module Aws::BedrockRuntime
|
|
503
503
|
# @option params [required, Array<Types::GuardrailContentBlock>] :content
|
504
504
|
# The content details used in the request to apply the guardrail.
|
505
505
|
#
|
506
|
+
# @option params [String] :output_scope
|
507
|
+
# Specifies the scope of the output that you get in the response. Set to
|
508
|
+
# `FULL` to return the entire output, including any detected and
|
509
|
+
# non-detected entries in the response for enhanced debugging.
|
510
|
+
#
|
511
|
+
# Note that the full output scope doesn't apply to word filters or
|
512
|
+
# regex in sensitive information filters. It does apply to all other
|
513
|
+
# filtering policies, including sensitive information with filters that
|
514
|
+
# can detect personally identifiable information (PII).
|
515
|
+
#
|
506
516
|
# @return [Types::ApplyGuardrailResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
507
517
|
#
|
508
518
|
# * {Types::ApplyGuardrailResponse#usage #usage} => Types::GuardrailUsage
|
509
519
|
# * {Types::ApplyGuardrailResponse#action #action} => String
|
520
|
+
# * {Types::ApplyGuardrailResponse#action_reason #action_reason} => String
|
510
521
|
# * {Types::ApplyGuardrailResponse#outputs #outputs} => Array<Types::GuardrailOutputContent>
|
511
522
|
# * {Types::ApplyGuardrailResponse#assessments #assessments} => Array<Types::GuardrailAssessment>
|
512
523
|
# * {Types::ApplyGuardrailResponse#guardrail_coverage #guardrail_coverage} => Types::GuardrailCoverage
|
@@ -531,6 +542,7 @@ module Aws::BedrockRuntime
|
|
531
542
|
# },
|
532
543
|
# },
|
533
544
|
# ],
|
545
|
+
# output_scope: "INTERVENTIONS", # accepts INTERVENTIONS, FULL
|
534
546
|
# })
|
535
547
|
#
|
536
548
|
# @example Response structure
|
@@ -543,39 +555,47 @@ module Aws::BedrockRuntime
|
|
543
555
|
# resp.usage.contextual_grounding_policy_units #=> Integer
|
544
556
|
# resp.usage.content_policy_image_units #=> Integer
|
545
557
|
# resp.action #=> String, one of "NONE", "GUARDRAIL_INTERVENED"
|
558
|
+
# resp.action_reason #=> String
|
546
559
|
# resp.outputs #=> Array
|
547
560
|
# resp.outputs[0].text #=> String
|
548
561
|
# resp.assessments #=> Array
|
549
562
|
# resp.assessments[0].topic_policy.topics #=> Array
|
550
563
|
# resp.assessments[0].topic_policy.topics[0].name #=> String
|
551
564
|
# resp.assessments[0].topic_policy.topics[0].type #=> String, one of "DENY"
|
552
|
-
# resp.assessments[0].topic_policy.topics[0].action #=> String, one of "BLOCKED"
|
565
|
+
# resp.assessments[0].topic_policy.topics[0].action #=> String, one of "BLOCKED", "NONE"
|
566
|
+
# resp.assessments[0].topic_policy.topics[0].detected #=> Boolean
|
553
567
|
# resp.assessments[0].content_policy.filters #=> Array
|
554
568
|
# resp.assessments[0].content_policy.filters[0].type #=> String, one of "INSULTS", "HATE", "SEXUAL", "VIOLENCE", "MISCONDUCT", "PROMPT_ATTACK"
|
555
569
|
# resp.assessments[0].content_policy.filters[0].confidence #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
|
556
570
|
# resp.assessments[0].content_policy.filters[0].filter_strength #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
|
557
|
-
# resp.assessments[0].content_policy.filters[0].action #=> String, one of "BLOCKED"
|
571
|
+
# resp.assessments[0].content_policy.filters[0].action #=> String, one of "BLOCKED", "NONE"
|
572
|
+
# resp.assessments[0].content_policy.filters[0].detected #=> Boolean
|
558
573
|
# resp.assessments[0].word_policy.custom_words #=> Array
|
559
574
|
# resp.assessments[0].word_policy.custom_words[0].match #=> String
|
560
|
-
# resp.assessments[0].word_policy.custom_words[0].action #=> String, one of "BLOCKED"
|
575
|
+
# resp.assessments[0].word_policy.custom_words[0].action #=> String, one of "BLOCKED", "NONE"
|
576
|
+
# resp.assessments[0].word_policy.custom_words[0].detected #=> Boolean
|
561
577
|
# resp.assessments[0].word_policy.managed_word_lists #=> Array
|
562
578
|
# resp.assessments[0].word_policy.managed_word_lists[0].match #=> String
|
563
579
|
# resp.assessments[0].word_policy.managed_word_lists[0].type #=> String, one of "PROFANITY"
|
564
|
-
# resp.assessments[0].word_policy.managed_word_lists[0].action #=> String, one of "BLOCKED"
|
580
|
+
# resp.assessments[0].word_policy.managed_word_lists[0].action #=> String, one of "BLOCKED", "NONE"
|
581
|
+
# resp.assessments[0].word_policy.managed_word_lists[0].detected #=> Boolean
|
565
582
|
# resp.assessments[0].sensitive_information_policy.pii_entities #=> Array
|
566
583
|
# resp.assessments[0].sensitive_information_policy.pii_entities[0].match #=> String
|
567
584
|
# resp.assessments[0].sensitive_information_policy.pii_entities[0].type #=> String, one of "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"
|
568
|
-
# resp.assessments[0].sensitive_information_policy.pii_entities[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
|
585
|
+
# resp.assessments[0].sensitive_information_policy.pii_entities[0].action #=> String, one of "ANONYMIZED", "BLOCKED", "NONE"
|
586
|
+
# resp.assessments[0].sensitive_information_policy.pii_entities[0].detected #=> Boolean
|
569
587
|
# resp.assessments[0].sensitive_information_policy.regexes #=> Array
|
570
588
|
# resp.assessments[0].sensitive_information_policy.regexes[0].name #=> String
|
571
589
|
# resp.assessments[0].sensitive_information_policy.regexes[0].match #=> String
|
572
590
|
# resp.assessments[0].sensitive_information_policy.regexes[0].regex #=> String
|
573
|
-
# resp.assessments[0].sensitive_information_policy.regexes[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
|
591
|
+
# resp.assessments[0].sensitive_information_policy.regexes[0].action #=> String, one of "ANONYMIZED", "BLOCKED", "NONE"
|
592
|
+
# resp.assessments[0].sensitive_information_policy.regexes[0].detected #=> Boolean
|
574
593
|
# resp.assessments[0].contextual_grounding_policy.filters #=> Array
|
575
594
|
# resp.assessments[0].contextual_grounding_policy.filters[0].type #=> String, one of "GROUNDING", "RELEVANCE"
|
576
595
|
# resp.assessments[0].contextual_grounding_policy.filters[0].threshold #=> Float
|
577
596
|
# resp.assessments[0].contextual_grounding_policy.filters[0].score #=> Float
|
578
597
|
# resp.assessments[0].contextual_grounding_policy.filters[0].action #=> String, one of "BLOCKED", "NONE"
|
598
|
+
# resp.assessments[0].contextual_grounding_policy.filters[0].detected #=> Boolean
|
579
599
|
# resp.assessments[0].invocation_metrics.guardrail_processing_latency #=> Integer
|
580
600
|
# resp.assessments[0].invocation_metrics.usage.topic_policy_units #=> Integer
|
581
601
|
# resp.assessments[0].invocation_metrics.usage.content_policy_units #=> Integer
|
@@ -869,6 +889,9 @@ module Aws::BedrockRuntime
|
|
869
889
|
# },
|
870
890
|
# },
|
871
891
|
# },
|
892
|
+
# cache_point: {
|
893
|
+
# type: "default", # required, accepts default
|
894
|
+
# },
|
872
895
|
# reasoning_content: {
|
873
896
|
# reasoning_text: {
|
874
897
|
# text: "String", # required
|
@@ -895,6 +918,9 @@ module Aws::BedrockRuntime
|
|
895
918
|
# },
|
896
919
|
# },
|
897
920
|
# },
|
921
|
+
# cache_point: {
|
922
|
+
# type: "default", # required, accepts default
|
923
|
+
# },
|
898
924
|
# },
|
899
925
|
# ],
|
900
926
|
# inference_config: {
|
@@ -914,6 +940,9 @@ module Aws::BedrockRuntime
|
|
914
940
|
# },
|
915
941
|
# },
|
916
942
|
# },
|
943
|
+
# cache_point: {
|
944
|
+
# type: "default", # required, accepts default
|
945
|
+
# },
|
917
946
|
# },
|
918
947
|
# ],
|
919
948
|
# tool_choice: {
|
@@ -929,7 +958,7 @@ module Aws::BedrockRuntime
|
|
929
958
|
# guardrail_config: {
|
930
959
|
# guardrail_identifier: "GuardrailIdentifier", # required
|
931
960
|
# guardrail_version: "GuardrailVersion", # required
|
932
|
-
# trace: "enabled", # accepts enabled, disabled
|
961
|
+
# trace: "enabled", # accepts enabled, disabled, enabled_full
|
933
962
|
# },
|
934
963
|
# additional_model_request_fields: {
|
935
964
|
# },
|
@@ -981,6 +1010,7 @@ module Aws::BedrockRuntime
|
|
981
1010
|
# resp.output.message.content[0].guard_content.text.qualifiers[0] #=> String, one of "grounding_source", "query", "guard_content"
|
982
1011
|
# resp.output.message.content[0].guard_content.image.format #=> String, one of "png", "jpeg"
|
983
1012
|
# resp.output.message.content[0].guard_content.image.source.bytes #=> String
|
1013
|
+
# resp.output.message.content[0].cache_point.type #=> String, one of "default"
|
984
1014
|
# resp.output.message.content[0].reasoning_content.reasoning_text.text #=> String
|
985
1015
|
# resp.output.message.content[0].reasoning_content.reasoning_text.signature #=> String
|
986
1016
|
# resp.output.message.content[0].reasoning_content.redacted_content #=> String
|
@@ -988,6 +1018,8 @@ module Aws::BedrockRuntime
|
|
988
1018
|
# resp.usage.input_tokens #=> Integer
|
989
1019
|
# resp.usage.output_tokens #=> Integer
|
990
1020
|
# resp.usage.total_tokens #=> Integer
|
1021
|
+
# resp.usage.cache_read_input_tokens #=> Integer
|
1022
|
+
# resp.usage.cache_write_input_tokens #=> Integer
|
991
1023
|
# resp.metrics.latency_ms #=> Integer
|
992
1024
|
# resp.trace.guardrail.model_output #=> Array
|
993
1025
|
# resp.trace.guardrail.model_output[0] #=> String
|
@@ -995,33 +1027,40 @@ module Aws::BedrockRuntime
|
|
995
1027
|
# resp.trace.guardrail.input_assessment["String"].topic_policy.topics #=> Array
|
996
1028
|
# resp.trace.guardrail.input_assessment["String"].topic_policy.topics[0].name #=> String
|
997
1029
|
# resp.trace.guardrail.input_assessment["String"].topic_policy.topics[0].type #=> String, one of "DENY"
|
998
|
-
# resp.trace.guardrail.input_assessment["String"].topic_policy.topics[0].action #=> String, one of "BLOCKED"
|
1030
|
+
# resp.trace.guardrail.input_assessment["String"].topic_policy.topics[0].action #=> String, one of "BLOCKED", "NONE"
|
1031
|
+
# resp.trace.guardrail.input_assessment["String"].topic_policy.topics[0].detected #=> Boolean
|
999
1032
|
# resp.trace.guardrail.input_assessment["String"].content_policy.filters #=> Array
|
1000
1033
|
# resp.trace.guardrail.input_assessment["String"].content_policy.filters[0].type #=> String, one of "INSULTS", "HATE", "SEXUAL", "VIOLENCE", "MISCONDUCT", "PROMPT_ATTACK"
|
1001
1034
|
# resp.trace.guardrail.input_assessment["String"].content_policy.filters[0].confidence #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
|
1002
1035
|
# resp.trace.guardrail.input_assessment["String"].content_policy.filters[0].filter_strength #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
|
1003
|
-
# resp.trace.guardrail.input_assessment["String"].content_policy.filters[0].action #=> String, one of "BLOCKED"
|
1036
|
+
# resp.trace.guardrail.input_assessment["String"].content_policy.filters[0].action #=> String, one of "BLOCKED", "NONE"
|
1037
|
+
# resp.trace.guardrail.input_assessment["String"].content_policy.filters[0].detected #=> Boolean
|
1004
1038
|
# resp.trace.guardrail.input_assessment["String"].word_policy.custom_words #=> Array
|
1005
1039
|
# resp.trace.guardrail.input_assessment["String"].word_policy.custom_words[0].match #=> String
|
1006
|
-
# resp.trace.guardrail.input_assessment["String"].word_policy.custom_words[0].action #=> String, one of "BLOCKED"
|
1040
|
+
# resp.trace.guardrail.input_assessment["String"].word_policy.custom_words[0].action #=> String, one of "BLOCKED", "NONE"
|
1041
|
+
# resp.trace.guardrail.input_assessment["String"].word_policy.custom_words[0].detected #=> Boolean
|
1007
1042
|
# resp.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists #=> Array
|
1008
1043
|
# resp.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists[0].match #=> String
|
1009
1044
|
# resp.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists[0].type #=> String, one of "PROFANITY"
|
1010
|
-
# resp.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists[0].action #=> String, one of "BLOCKED"
|
1045
|
+
# resp.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists[0].action #=> String, one of "BLOCKED", "NONE"
|
1046
|
+
# resp.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists[0].detected #=> Boolean
|
1011
1047
|
# resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities #=> Array
|
1012
1048
|
# resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities[0].match #=> String
|
1013
1049
|
# resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities[0].type #=> String, one of "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"
|
1014
|
-
# resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
|
1050
|
+
# resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities[0].action #=> String, one of "ANONYMIZED", "BLOCKED", "NONE"
|
1051
|
+
# resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities[0].detected #=> Boolean
|
1015
1052
|
# resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes #=> Array
|
1016
1053
|
# resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].name #=> String
|
1017
1054
|
# resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].match #=> String
|
1018
1055
|
# resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].regex #=> String
|
1019
|
-
# resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
|
1056
|
+
# resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].action #=> String, one of "ANONYMIZED", "BLOCKED", "NONE"
|
1057
|
+
# resp.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].detected #=> Boolean
|
1020
1058
|
# resp.trace.guardrail.input_assessment["String"].contextual_grounding_policy.filters #=> Array
|
1021
1059
|
# resp.trace.guardrail.input_assessment["String"].contextual_grounding_policy.filters[0].type #=> String, one of "GROUNDING", "RELEVANCE"
|
1022
1060
|
# resp.trace.guardrail.input_assessment["String"].contextual_grounding_policy.filters[0].threshold #=> Float
|
1023
1061
|
# resp.trace.guardrail.input_assessment["String"].contextual_grounding_policy.filters[0].score #=> Float
|
1024
1062
|
# resp.trace.guardrail.input_assessment["String"].contextual_grounding_policy.filters[0].action #=> String, one of "BLOCKED", "NONE"
|
1063
|
+
# resp.trace.guardrail.input_assessment["String"].contextual_grounding_policy.filters[0].detected #=> Boolean
|
1025
1064
|
# resp.trace.guardrail.input_assessment["String"].invocation_metrics.guardrail_processing_latency #=> Integer
|
1026
1065
|
# resp.trace.guardrail.input_assessment["String"].invocation_metrics.usage.topic_policy_units #=> Integer
|
1027
1066
|
# resp.trace.guardrail.input_assessment["String"].invocation_metrics.usage.content_policy_units #=> Integer
|
@@ -1039,33 +1078,40 @@ module Aws::BedrockRuntime
|
|
1039
1078
|
# resp.trace.guardrail.output_assessments["String"][0].topic_policy.topics #=> Array
|
1040
1079
|
# resp.trace.guardrail.output_assessments["String"][0].topic_policy.topics[0].name #=> String
|
1041
1080
|
# resp.trace.guardrail.output_assessments["String"][0].topic_policy.topics[0].type #=> String, one of "DENY"
|
1042
|
-
# resp.trace.guardrail.output_assessments["String"][0].topic_policy.topics[0].action #=> String, one of "BLOCKED"
|
1081
|
+
# resp.trace.guardrail.output_assessments["String"][0].topic_policy.topics[0].action #=> String, one of "BLOCKED", "NONE"
|
1082
|
+
# resp.trace.guardrail.output_assessments["String"][0].topic_policy.topics[0].detected #=> Boolean
|
1043
1083
|
# resp.trace.guardrail.output_assessments["String"][0].content_policy.filters #=> Array
|
1044
1084
|
# resp.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].type #=> String, one of "INSULTS", "HATE", "SEXUAL", "VIOLENCE", "MISCONDUCT", "PROMPT_ATTACK"
|
1045
1085
|
# resp.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].confidence #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
|
1046
1086
|
# resp.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].filter_strength #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
|
1047
|
-
# resp.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].action #=> String, one of "BLOCKED"
|
1087
|
+
# resp.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].action #=> String, one of "BLOCKED", "NONE"
|
1088
|
+
# resp.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].detected #=> Boolean
|
1048
1089
|
# resp.trace.guardrail.output_assessments["String"][0].word_policy.custom_words #=> Array
|
1049
1090
|
# resp.trace.guardrail.output_assessments["String"][0].word_policy.custom_words[0].match #=> String
|
1050
|
-
# resp.trace.guardrail.output_assessments["String"][0].word_policy.custom_words[0].action #=> String, one of "BLOCKED"
|
1091
|
+
# resp.trace.guardrail.output_assessments["String"][0].word_policy.custom_words[0].action #=> String, one of "BLOCKED", "NONE"
|
1092
|
+
# resp.trace.guardrail.output_assessments["String"][0].word_policy.custom_words[0].detected #=> Boolean
|
1051
1093
|
# resp.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists #=> Array
|
1052
1094
|
# resp.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists[0].match #=> String
|
1053
1095
|
# resp.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists[0].type #=> String, one of "PROFANITY"
|
1054
|
-
# resp.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists[0].action #=> String, one of "BLOCKED"
|
1096
|
+
# resp.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists[0].action #=> String, one of "BLOCKED", "NONE"
|
1097
|
+
# resp.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists[0].detected #=> Boolean
|
1055
1098
|
# resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities #=> Array
|
1056
1099
|
# resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities[0].match #=> String
|
1057
1100
|
# resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities[0].type #=> String, one of "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"
|
1058
|
-
# resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
|
1101
|
+
# resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities[0].action #=> String, one of "ANONYMIZED", "BLOCKED", "NONE"
|
1102
|
+
# resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities[0].detected #=> Boolean
|
1059
1103
|
# resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes #=> Array
|
1060
1104
|
# resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].name #=> String
|
1061
1105
|
# resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].match #=> String
|
1062
1106
|
# resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].regex #=> String
|
1063
|
-
# resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
|
1107
|
+
# resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].action #=> String, one of "ANONYMIZED", "BLOCKED", "NONE"
|
1108
|
+
# resp.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].detected #=> Boolean
|
1064
1109
|
# resp.trace.guardrail.output_assessments["String"][0].contextual_grounding_policy.filters #=> Array
|
1065
1110
|
# resp.trace.guardrail.output_assessments["String"][0].contextual_grounding_policy.filters[0].type #=> String, one of "GROUNDING", "RELEVANCE"
|
1066
1111
|
# resp.trace.guardrail.output_assessments["String"][0].contextual_grounding_policy.filters[0].threshold #=> Float
|
1067
1112
|
# resp.trace.guardrail.output_assessments["String"][0].contextual_grounding_policy.filters[0].score #=> Float
|
1068
1113
|
# resp.trace.guardrail.output_assessments["String"][0].contextual_grounding_policy.filters[0].action #=> String, one of "BLOCKED", "NONE"
|
1114
|
+
# resp.trace.guardrail.output_assessments["String"][0].contextual_grounding_policy.filters[0].detected #=> Boolean
|
1069
1115
|
# resp.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_processing_latency #=> Integer
|
1070
1116
|
# resp.trace.guardrail.output_assessments["String"][0].invocation_metrics.usage.topic_policy_units #=> Integer
|
1071
1117
|
# resp.trace.guardrail.output_assessments["String"][0].invocation_metrics.usage.content_policy_units #=> Integer
|
@@ -1078,6 +1124,7 @@ module Aws::BedrockRuntime
|
|
1078
1124
|
# resp.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.text_characters.total #=> Integer
|
1079
1125
|
# resp.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.images.guarded #=> Integer
|
1080
1126
|
# resp.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.images.total #=> Integer
|
1127
|
+
# resp.trace.guardrail.action_reason #=> String
|
1081
1128
|
# resp.trace.prompt_router.invoked_model_id #=> String
|
1082
1129
|
# resp.performance_config.latency #=> String, one of "standard", "optimized"
|
1083
1130
|
#
|
@@ -1535,6 +1582,9 @@ module Aws::BedrockRuntime
|
|
1535
1582
|
# },
|
1536
1583
|
# },
|
1537
1584
|
# },
|
1585
|
+
# cache_point: {
|
1586
|
+
# type: "default", # required, accepts default
|
1587
|
+
# },
|
1538
1588
|
# reasoning_content: {
|
1539
1589
|
# reasoning_text: {
|
1540
1590
|
# text: "String", # required
|
@@ -1561,6 +1611,9 @@ module Aws::BedrockRuntime
|
|
1561
1611
|
# },
|
1562
1612
|
# },
|
1563
1613
|
# },
|
1614
|
+
# cache_point: {
|
1615
|
+
# type: "default", # required, accepts default
|
1616
|
+
# },
|
1564
1617
|
# },
|
1565
1618
|
# ],
|
1566
1619
|
# inference_config: {
|
@@ -1580,6 +1633,9 @@ module Aws::BedrockRuntime
|
|
1580
1633
|
# },
|
1581
1634
|
# },
|
1582
1635
|
# },
|
1636
|
+
# cache_point: {
|
1637
|
+
# type: "default", # required, accepts default
|
1638
|
+
# },
|
1583
1639
|
# },
|
1584
1640
|
# ],
|
1585
1641
|
# tool_choice: {
|
@@ -1595,7 +1651,7 @@ module Aws::BedrockRuntime
|
|
1595
1651
|
# guardrail_config: {
|
1596
1652
|
# guardrail_identifier: "GuardrailIdentifier", # required
|
1597
1653
|
# guardrail_version: "GuardrailVersion", # required
|
1598
|
-
# trace: "enabled", # accepts enabled, disabled
|
1654
|
+
# trace: "enabled", # accepts enabled, disabled, enabled_full
|
1599
1655
|
# stream_processing_mode: "sync", # accepts sync, async
|
1600
1656
|
# },
|
1601
1657
|
# additional_model_request_fields: {
|
@@ -1646,6 +1702,8 @@ module Aws::BedrockRuntime
|
|
1646
1702
|
# event.usage.input_tokens #=> Integer
|
1647
1703
|
# event.usage.output_tokens #=> Integer
|
1648
1704
|
# event.usage.total_tokens #=> Integer
|
1705
|
+
# event.usage.cache_read_input_tokens #=> Integer
|
1706
|
+
# event.usage.cache_write_input_tokens #=> Integer
|
1649
1707
|
# event.metrics.latency_ms #=> Integer
|
1650
1708
|
# event.trace.guardrail.model_output #=> Array
|
1651
1709
|
# event.trace.guardrail.model_output[0] #=> String
|
@@ -1653,33 +1711,40 @@ module Aws::BedrockRuntime
|
|
1653
1711
|
# event.trace.guardrail.input_assessment["String"].topic_policy.topics #=> Array
|
1654
1712
|
# event.trace.guardrail.input_assessment["String"].topic_policy.topics[0].name #=> String
|
1655
1713
|
# event.trace.guardrail.input_assessment["String"].topic_policy.topics[0].type #=> String, one of "DENY"
|
1656
|
-
# event.trace.guardrail.input_assessment["String"].topic_policy.topics[0].action #=> String, one of "BLOCKED"
|
1714
|
+
# event.trace.guardrail.input_assessment["String"].topic_policy.topics[0].action #=> String, one of "BLOCKED", "NONE"
|
1715
|
+
# event.trace.guardrail.input_assessment["String"].topic_policy.topics[0].detected #=> Boolean
|
1657
1716
|
# event.trace.guardrail.input_assessment["String"].content_policy.filters #=> Array
|
1658
1717
|
# event.trace.guardrail.input_assessment["String"].content_policy.filters[0].type #=> String, one of "INSULTS", "HATE", "SEXUAL", "VIOLENCE", "MISCONDUCT", "PROMPT_ATTACK"
|
1659
1718
|
# event.trace.guardrail.input_assessment["String"].content_policy.filters[0].confidence #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
|
1660
1719
|
# event.trace.guardrail.input_assessment["String"].content_policy.filters[0].filter_strength #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
|
1661
|
-
# event.trace.guardrail.input_assessment["String"].content_policy.filters[0].action #=> String, one of "BLOCKED"
|
1720
|
+
# event.trace.guardrail.input_assessment["String"].content_policy.filters[0].action #=> String, one of "BLOCKED", "NONE"
|
1721
|
+
# event.trace.guardrail.input_assessment["String"].content_policy.filters[0].detected #=> Boolean
|
1662
1722
|
# event.trace.guardrail.input_assessment["String"].word_policy.custom_words #=> Array
|
1663
1723
|
# event.trace.guardrail.input_assessment["String"].word_policy.custom_words[0].match #=> String
|
1664
|
-
# event.trace.guardrail.input_assessment["String"].word_policy.custom_words[0].action #=> String, one of "BLOCKED"
|
1724
|
+
# event.trace.guardrail.input_assessment["String"].word_policy.custom_words[0].action #=> String, one of "BLOCKED", "NONE"
|
1725
|
+
# event.trace.guardrail.input_assessment["String"].word_policy.custom_words[0].detected #=> Boolean
|
1665
1726
|
# event.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists #=> Array
|
1666
1727
|
# event.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists[0].match #=> String
|
1667
1728
|
# event.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists[0].type #=> String, one of "PROFANITY"
|
1668
|
-
# event.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists[0].action #=> String, one of "BLOCKED"
|
1729
|
+
# event.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists[0].action #=> String, one of "BLOCKED", "NONE"
|
1730
|
+
# event.trace.guardrail.input_assessment["String"].word_policy.managed_word_lists[0].detected #=> Boolean
|
1669
1731
|
# event.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities #=> Array
|
1670
1732
|
# event.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities[0].match #=> String
|
1671
1733
|
# event.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities[0].type #=> String, one of "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"
|
1672
|
-
# event.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
|
1734
|
+
# event.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities[0].action #=> String, one of "ANONYMIZED", "BLOCKED", "NONE"
|
1735
|
+
# event.trace.guardrail.input_assessment["String"].sensitive_information_policy.pii_entities[0].detected #=> Boolean
|
1673
1736
|
# event.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes #=> Array
|
1674
1737
|
# event.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].name #=> String
|
1675
1738
|
# event.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].match #=> String
|
1676
1739
|
# event.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].regex #=> String
|
1677
|
-
# event.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
|
1740
|
+
# event.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].action #=> String, one of "ANONYMIZED", "BLOCKED", "NONE"
|
1741
|
+
# event.trace.guardrail.input_assessment["String"].sensitive_information_policy.regexes[0].detected #=> Boolean
|
1678
1742
|
# event.trace.guardrail.input_assessment["String"].contextual_grounding_policy.filters #=> Array
|
1679
1743
|
# event.trace.guardrail.input_assessment["String"].contextual_grounding_policy.filters[0].type #=> String, one of "GROUNDING", "RELEVANCE"
|
1680
1744
|
# event.trace.guardrail.input_assessment["String"].contextual_grounding_policy.filters[0].threshold #=> Float
|
1681
1745
|
# event.trace.guardrail.input_assessment["String"].contextual_grounding_policy.filters[0].score #=> Float
|
1682
1746
|
# event.trace.guardrail.input_assessment["String"].contextual_grounding_policy.filters[0].action #=> String, one of "BLOCKED", "NONE"
|
1747
|
+
# event.trace.guardrail.input_assessment["String"].contextual_grounding_policy.filters[0].detected #=> Boolean
|
1683
1748
|
# event.trace.guardrail.input_assessment["String"].invocation_metrics.guardrail_processing_latency #=> Integer
|
1684
1749
|
# event.trace.guardrail.input_assessment["String"].invocation_metrics.usage.topic_policy_units #=> Integer
|
1685
1750
|
# event.trace.guardrail.input_assessment["String"].invocation_metrics.usage.content_policy_units #=> Integer
|
@@ -1697,33 +1762,40 @@ module Aws::BedrockRuntime
|
|
1697
1762
|
# event.trace.guardrail.output_assessments["String"][0].topic_policy.topics #=> Array
|
1698
1763
|
# event.trace.guardrail.output_assessments["String"][0].topic_policy.topics[0].name #=> String
|
1699
1764
|
# event.trace.guardrail.output_assessments["String"][0].topic_policy.topics[0].type #=> String, one of "DENY"
|
1700
|
-
# event.trace.guardrail.output_assessments["String"][0].topic_policy.topics[0].action #=> String, one of "BLOCKED"
|
1765
|
+
# event.trace.guardrail.output_assessments["String"][0].topic_policy.topics[0].action #=> String, one of "BLOCKED", "NONE"
|
1766
|
+
# event.trace.guardrail.output_assessments["String"][0].topic_policy.topics[0].detected #=> Boolean
|
1701
1767
|
# event.trace.guardrail.output_assessments["String"][0].content_policy.filters #=> Array
|
1702
1768
|
# event.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].type #=> String, one of "INSULTS", "HATE", "SEXUAL", "VIOLENCE", "MISCONDUCT", "PROMPT_ATTACK"
|
1703
1769
|
# event.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].confidence #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
|
1704
1770
|
# event.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].filter_strength #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
|
1705
|
-
# event.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].action #=> String, one of "BLOCKED"
|
1771
|
+
# event.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].action #=> String, one of "BLOCKED", "NONE"
|
1772
|
+
# event.trace.guardrail.output_assessments["String"][0].content_policy.filters[0].detected #=> Boolean
|
1706
1773
|
# event.trace.guardrail.output_assessments["String"][0].word_policy.custom_words #=> Array
|
1707
1774
|
# event.trace.guardrail.output_assessments["String"][0].word_policy.custom_words[0].match #=> String
|
1708
|
-
# event.trace.guardrail.output_assessments["String"][0].word_policy.custom_words[0].action #=> String, one of "BLOCKED"
|
1775
|
+
# event.trace.guardrail.output_assessments["String"][0].word_policy.custom_words[0].action #=> String, one of "BLOCKED", "NONE"
|
1776
|
+
# event.trace.guardrail.output_assessments["String"][0].word_policy.custom_words[0].detected #=> Boolean
|
1709
1777
|
# event.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists #=> Array
|
1710
1778
|
# event.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists[0].match #=> String
|
1711
1779
|
# event.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists[0].type #=> String, one of "PROFANITY"
|
1712
|
-
# event.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists[0].action #=> String, one of "BLOCKED"
|
1780
|
+
# event.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists[0].action #=> String, one of "BLOCKED", "NONE"
|
1781
|
+
# event.trace.guardrail.output_assessments["String"][0].word_policy.managed_word_lists[0].detected #=> Boolean
|
1713
1782
|
# event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities #=> Array
|
1714
1783
|
# event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities[0].match #=> String
|
1715
1784
|
# event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities[0].type #=> String, one of "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"
|
1716
|
-
# event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
|
1785
|
+
# event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities[0].action #=> String, one of "ANONYMIZED", "BLOCKED", "NONE"
|
1786
|
+
# event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.pii_entities[0].detected #=> Boolean
|
1717
1787
|
# event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes #=> Array
|
1718
1788
|
# event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].name #=> String
|
1719
1789
|
# event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].match #=> String
|
1720
1790
|
# event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].regex #=> String
|
1721
|
-
# event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].action #=> String, one of "ANONYMIZED", "BLOCKED"
|
1791
|
+
# event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].action #=> String, one of "ANONYMIZED", "BLOCKED", "NONE"
|
1792
|
+
# event.trace.guardrail.output_assessments["String"][0].sensitive_information_policy.regexes[0].detected #=> Boolean
|
1722
1793
|
# event.trace.guardrail.output_assessments["String"][0].contextual_grounding_policy.filters #=> Array
|
1723
1794
|
# event.trace.guardrail.output_assessments["String"][0].contextual_grounding_policy.filters[0].type #=> String, one of "GROUNDING", "RELEVANCE"
|
1724
1795
|
# event.trace.guardrail.output_assessments["String"][0].contextual_grounding_policy.filters[0].threshold #=> Float
|
1725
1796
|
# event.trace.guardrail.output_assessments["String"][0].contextual_grounding_policy.filters[0].score #=> Float
|
1726
1797
|
# event.trace.guardrail.output_assessments["String"][0].contextual_grounding_policy.filters[0].action #=> String, one of "BLOCKED", "NONE"
|
1798
|
+
# event.trace.guardrail.output_assessments["String"][0].contextual_grounding_policy.filters[0].detected #=> Boolean
|
1727
1799
|
# event.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_processing_latency #=> Integer
|
1728
1800
|
# event.trace.guardrail.output_assessments["String"][0].invocation_metrics.usage.topic_policy_units #=> Integer
|
1729
1801
|
# event.trace.guardrail.output_assessments["String"][0].invocation_metrics.usage.content_policy_units #=> Integer
|
@@ -1736,6 +1808,7 @@ module Aws::BedrockRuntime
|
|
1736
1808
|
# event.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.text_characters.total #=> Integer
|
1737
1809
|
# event.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.images.guarded #=> Integer
|
1738
1810
|
# event.trace.guardrail.output_assessments["String"][0].invocation_metrics.guardrail_coverage.images.total #=> Integer
|
1811
|
+
# event.trace.guardrail.action_reason #=> String
|
1739
1812
|
# event.trace.prompt_router.invoked_model_id #=> String
|
1740
1813
|
# event.performance_config.latency #=> String, one of "standard", "optimized"
|
1741
1814
|
#
|
@@ -1953,7 +2026,7 @@ module Aws::BedrockRuntime
|
|
1953
2026
|
# content_type: "MimeType",
|
1954
2027
|
# accept: "MimeType",
|
1955
2028
|
# model_id: "InvokeModelIdentifier", # required
|
1956
|
-
# trace: "ENABLED", # accepts ENABLED, DISABLED
|
2029
|
+
# trace: "ENABLED", # accepts ENABLED, DISABLED, ENABLED_FULL
|
1957
2030
|
# guardrail_identifier: "GuardrailIdentifier",
|
1958
2031
|
# guardrail_version: "GuardrailVersion",
|
1959
2032
|
# performance_config_latency: "standard", # accepts standard, optimized
|
@@ -2244,7 +2317,7 @@ module Aws::BedrockRuntime
|
|
2244
2317
|
# content_type: "MimeType",
|
2245
2318
|
# accept: "MimeType",
|
2246
2319
|
# model_id: "InvokeModelIdentifier", # required
|
2247
|
-
# trace: "ENABLED", # accepts ENABLED, DISABLED
|
2320
|
+
# trace: "ENABLED", # accepts ENABLED, DISABLED, ENABLED_FULL
|
2248
2321
|
# guardrail_identifier: "GuardrailIdentifier",
|
2249
2322
|
# guardrail_version: "GuardrailVersion",
|
2250
2323
|
# performance_config_latency: "standard", # accepts standard, optimized
|
@@ -2475,7 +2548,7 @@ module Aws::BedrockRuntime
|
|
2475
2548
|
tracer: tracer
|
2476
2549
|
)
|
2477
2550
|
context[:gem_name] = 'aws-sdk-bedrockruntime'
|
2478
|
-
context[:gem_version] = '1.
|
2551
|
+
context[:gem_version] = '1.43.0'
|
2479
2552
|
Seahorse::Client::Request.new(handlers, context)
|
2480
2553
|
end
|
2481
2554
|
|
@@ -31,6 +31,9 @@ module Aws::BedrockRuntime
|
|
31
31
|
AutoToolChoice = Shapes::StructureShape.new(name: 'AutoToolChoice')
|
32
32
|
Blob = Shapes::BlobShape.new(name: 'Blob')
|
33
33
|
Body = Shapes::BlobShape.new(name: 'Body')
|
34
|
+
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
35
|
+
CachePointBlock = Shapes::StructureShape.new(name: 'CachePointBlock')
|
36
|
+
CachePointType = Shapes::StringShape.new(name: 'CachePointType')
|
34
37
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
35
38
|
ContentBlock = Shapes::UnionShape.new(name: 'ContentBlock')
|
36
39
|
ContentBlockDelta = Shapes::UnionShape.new(name: 'ContentBlockDelta')
|
@@ -115,6 +118,7 @@ module Aws::BedrockRuntime
|
|
115
118
|
GuardrailManagedWordType = Shapes::StringShape.new(name: 'GuardrailManagedWordType')
|
116
119
|
GuardrailOutputContent = Shapes::StructureShape.new(name: 'GuardrailOutputContent')
|
117
120
|
GuardrailOutputContentList = Shapes::ListShape.new(name: 'GuardrailOutputContentList')
|
121
|
+
GuardrailOutputScope = Shapes::StringShape.new(name: 'GuardrailOutputScope')
|
118
122
|
GuardrailOutputText = Shapes::StringShape.new(name: 'GuardrailOutputText')
|
119
123
|
GuardrailPiiEntityFilter = Shapes::StructureShape.new(name: 'GuardrailPiiEntityFilter')
|
120
124
|
GuardrailPiiEntityFilterList = Shapes::ListShape.new(name: 'GuardrailPiiEntityFilterList')
|
@@ -220,6 +224,8 @@ module Aws::BedrockRuntime
|
|
220
224
|
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
221
225
|
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp', timestampFormat: "iso8601")
|
222
226
|
TokenUsage = Shapes::StructureShape.new(name: 'TokenUsage')
|
227
|
+
TokenUsageCacheReadInputTokensInteger = Shapes::IntegerShape.new(name: 'TokenUsageCacheReadInputTokensInteger')
|
228
|
+
TokenUsageCacheWriteInputTokensInteger = Shapes::IntegerShape.new(name: 'TokenUsageCacheWriteInputTokensInteger')
|
223
229
|
TokenUsageInputTokensInteger = Shapes::IntegerShape.new(name: 'TokenUsageInputTokensInteger')
|
224
230
|
TokenUsageOutputTokensInteger = Shapes::IntegerShape.new(name: 'TokenUsageOutputTokensInteger')
|
225
231
|
TokenUsageTotalTokensInteger = Shapes::IntegerShape.new(name: 'TokenUsageTotalTokensInteger')
|
@@ -254,10 +260,12 @@ module Aws::BedrockRuntime
|
|
254
260
|
ApplyGuardrailRequest.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, required: true, location: "uri", location_name: "guardrailVersion"))
|
255
261
|
ApplyGuardrailRequest.add_member(:source, Shapes::ShapeRef.new(shape: GuardrailContentSource, required: true, location_name: "source"))
|
256
262
|
ApplyGuardrailRequest.add_member(:content, Shapes::ShapeRef.new(shape: GuardrailContentBlockList, required: true, location_name: "content"))
|
263
|
+
ApplyGuardrailRequest.add_member(:output_scope, Shapes::ShapeRef.new(shape: GuardrailOutputScope, location_name: "outputScope"))
|
257
264
|
ApplyGuardrailRequest.struct_class = Types::ApplyGuardrailRequest
|
258
265
|
|
259
266
|
ApplyGuardrailResponse.add_member(:usage, Shapes::ShapeRef.new(shape: GuardrailUsage, required: true, location_name: "usage"))
|
260
267
|
ApplyGuardrailResponse.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailAction, required: true, location_name: "action"))
|
268
|
+
ApplyGuardrailResponse.add_member(:action_reason, Shapes::ShapeRef.new(shape: String, location_name: "actionReason"))
|
261
269
|
ApplyGuardrailResponse.add_member(:outputs, Shapes::ShapeRef.new(shape: GuardrailOutputContentList, required: true, location_name: "outputs"))
|
262
270
|
ApplyGuardrailResponse.add_member(:assessments, Shapes::ShapeRef.new(shape: GuardrailAssessmentList, required: true, location_name: "assessments"))
|
263
271
|
ApplyGuardrailResponse.add_member(:guardrail_coverage, Shapes::ShapeRef.new(shape: GuardrailCoverage, location_name: "guardrailCoverage"))
|
@@ -289,6 +297,9 @@ module Aws::BedrockRuntime
|
|
289
297
|
|
290
298
|
AutoToolChoice.struct_class = Types::AutoToolChoice
|
291
299
|
|
300
|
+
CachePointBlock.add_member(:type, Shapes::ShapeRef.new(shape: CachePointType, required: true, location_name: "type"))
|
301
|
+
CachePointBlock.struct_class = Types::CachePointBlock
|
302
|
+
|
292
303
|
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
293
304
|
ConflictException.struct_class = Types::ConflictException
|
294
305
|
|
@@ -299,6 +310,7 @@ module Aws::BedrockRuntime
|
|
299
310
|
ContentBlock.add_member(:tool_use, Shapes::ShapeRef.new(shape: ToolUseBlock, location_name: "toolUse"))
|
300
311
|
ContentBlock.add_member(:tool_result, Shapes::ShapeRef.new(shape: ToolResultBlock, location_name: "toolResult"))
|
301
312
|
ContentBlock.add_member(:guard_content, Shapes::ShapeRef.new(shape: GuardrailConverseContentBlock, location_name: "guardContent"))
|
313
|
+
ContentBlock.add_member(:cache_point, Shapes::ShapeRef.new(shape: CachePointBlock, location_name: "cachePoint"))
|
302
314
|
ContentBlock.add_member(:reasoning_content, Shapes::ShapeRef.new(shape: ReasoningContentBlock, location_name: "reasoningContent"))
|
303
315
|
ContentBlock.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
304
316
|
ContentBlock.add_member_subclass(:text, Types::ContentBlock::Text)
|
@@ -308,6 +320,7 @@ module Aws::BedrockRuntime
|
|
308
320
|
ContentBlock.add_member_subclass(:tool_use, Types::ContentBlock::ToolUse)
|
309
321
|
ContentBlock.add_member_subclass(:tool_result, Types::ContentBlock::ToolResult)
|
310
322
|
ContentBlock.add_member_subclass(:guard_content, Types::ContentBlock::GuardContent)
|
323
|
+
ContentBlock.add_member_subclass(:cache_point, Types::ContentBlock::CachePoint)
|
311
324
|
ContentBlock.add_member_subclass(:reasoning_content, Types::ContentBlock::ReasoningContent)
|
312
325
|
ContentBlock.add_member_subclass(:unknown, Types::ContentBlock::Unknown)
|
313
326
|
ContentBlock.struct_class = Types::ContentBlock
|
@@ -484,6 +497,7 @@ module Aws::BedrockRuntime
|
|
484
497
|
GuardrailContentFilter.add_member(:confidence, Shapes::ShapeRef.new(shape: GuardrailContentFilterConfidence, required: true, location_name: "confidence"))
|
485
498
|
GuardrailContentFilter.add_member(:filter_strength, Shapes::ShapeRef.new(shape: GuardrailContentFilterStrength, location_name: "filterStrength"))
|
486
499
|
GuardrailContentFilter.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailContentPolicyAction, required: true, location_name: "action"))
|
500
|
+
GuardrailContentFilter.add_member(:detected, Shapes::ShapeRef.new(shape: Boolean, location_name: "detected"))
|
487
501
|
GuardrailContentFilter.struct_class = Types::GuardrailContentFilter
|
488
502
|
|
489
503
|
GuardrailContentFilterList.member = Shapes::ShapeRef.new(shape: GuardrailContentFilter)
|
@@ -497,6 +511,7 @@ module Aws::BedrockRuntime
|
|
497
511
|
GuardrailContextualGroundingFilter.add_member(:threshold, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingFilterThresholdDouble, required: true, location_name: "threshold"))
|
498
512
|
GuardrailContextualGroundingFilter.add_member(:score, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingFilterScoreDouble, required: true, location_name: "score"))
|
499
513
|
GuardrailContextualGroundingFilter.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingPolicyAction, required: true, location_name: "action"))
|
514
|
+
GuardrailContextualGroundingFilter.add_member(:detected, Shapes::ShapeRef.new(shape: Boolean, location_name: "detected"))
|
500
515
|
GuardrailContextualGroundingFilter.struct_class = Types::GuardrailContextualGroundingFilter
|
501
516
|
|
502
517
|
GuardrailContextualGroundingFilters.member = Shapes::ShapeRef.new(shape: GuardrailContextualGroundingFilter)
|
@@ -534,6 +549,7 @@ module Aws::BedrockRuntime
|
|
534
549
|
|
535
550
|
GuardrailCustomWord.add_member(:match, Shapes::ShapeRef.new(shape: String, required: true, location_name: "match"))
|
536
551
|
GuardrailCustomWord.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailWordPolicyAction, required: true, location_name: "action"))
|
552
|
+
GuardrailCustomWord.add_member(:detected, Shapes::ShapeRef.new(shape: Boolean, location_name: "detected"))
|
537
553
|
GuardrailCustomWord.struct_class = Types::GuardrailCustomWord
|
538
554
|
|
539
555
|
GuardrailCustomWordList.member = Shapes::ShapeRef.new(shape: GuardrailCustomWord)
|
@@ -560,6 +576,7 @@ module Aws::BedrockRuntime
|
|
560
576
|
GuardrailManagedWord.add_member(:match, Shapes::ShapeRef.new(shape: String, required: true, location_name: "match"))
|
561
577
|
GuardrailManagedWord.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailManagedWordType, required: true, location_name: "type"))
|
562
578
|
GuardrailManagedWord.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailWordPolicyAction, required: true, location_name: "action"))
|
579
|
+
GuardrailManagedWord.add_member(:detected, Shapes::ShapeRef.new(shape: Boolean, location_name: "detected"))
|
563
580
|
GuardrailManagedWord.struct_class = Types::GuardrailManagedWord
|
564
581
|
|
565
582
|
GuardrailManagedWordList.member = Shapes::ShapeRef.new(shape: GuardrailManagedWord)
|
@@ -572,6 +589,7 @@ module Aws::BedrockRuntime
|
|
572
589
|
GuardrailPiiEntityFilter.add_member(:match, Shapes::ShapeRef.new(shape: String, required: true, location_name: "match"))
|
573
590
|
GuardrailPiiEntityFilter.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailPiiEntityType, required: true, location_name: "type"))
|
574
591
|
GuardrailPiiEntityFilter.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationPolicyAction, required: true, location_name: "action"))
|
592
|
+
GuardrailPiiEntityFilter.add_member(:detected, Shapes::ShapeRef.new(shape: Boolean, location_name: "detected"))
|
575
593
|
GuardrailPiiEntityFilter.struct_class = Types::GuardrailPiiEntityFilter
|
576
594
|
|
577
595
|
GuardrailPiiEntityFilterList.member = Shapes::ShapeRef.new(shape: GuardrailPiiEntityFilter)
|
@@ -580,6 +598,7 @@ module Aws::BedrockRuntime
|
|
580
598
|
GuardrailRegexFilter.add_member(:match, Shapes::ShapeRef.new(shape: String, location_name: "match"))
|
581
599
|
GuardrailRegexFilter.add_member(:regex, Shapes::ShapeRef.new(shape: String, location_name: "regex"))
|
582
600
|
GuardrailRegexFilter.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationPolicyAction, required: true, location_name: "action"))
|
601
|
+
GuardrailRegexFilter.add_member(:detected, Shapes::ShapeRef.new(shape: Boolean, location_name: "detected"))
|
583
602
|
GuardrailRegexFilter.struct_class = Types::GuardrailRegexFilter
|
584
603
|
|
585
604
|
GuardrailRegexFilterList.member = Shapes::ShapeRef.new(shape: GuardrailRegexFilter)
|
@@ -605,6 +624,7 @@ module Aws::BedrockRuntime
|
|
605
624
|
GuardrailTopic.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
|
606
625
|
GuardrailTopic.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailTopicType, required: true, location_name: "type"))
|
607
626
|
GuardrailTopic.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailTopicPolicyAction, required: true, location_name: "action"))
|
627
|
+
GuardrailTopic.add_member(:detected, Shapes::ShapeRef.new(shape: Boolean, location_name: "detected"))
|
608
628
|
GuardrailTopic.struct_class = Types::GuardrailTopic
|
609
629
|
|
610
630
|
GuardrailTopicList.member = Shapes::ShapeRef.new(shape: GuardrailTopic)
|
@@ -615,6 +635,7 @@ module Aws::BedrockRuntime
|
|
615
635
|
GuardrailTraceAssessment.add_member(:model_output, Shapes::ShapeRef.new(shape: ModelOutputs, location_name: "modelOutput"))
|
616
636
|
GuardrailTraceAssessment.add_member(:input_assessment, Shapes::ShapeRef.new(shape: GuardrailAssessmentMap, location_name: "inputAssessment"))
|
617
637
|
GuardrailTraceAssessment.add_member(:output_assessments, Shapes::ShapeRef.new(shape: GuardrailAssessmentListMap, location_name: "outputAssessments"))
|
638
|
+
GuardrailTraceAssessment.add_member(:action_reason, Shapes::ShapeRef.new(shape: String, location_name: "actionReason"))
|
618
639
|
GuardrailTraceAssessment.struct_class = Types::GuardrailTraceAssessment
|
619
640
|
|
620
641
|
GuardrailUsage.add_member(:topic_policy_units, Shapes::ShapeRef.new(shape: GuardrailTopicPolicyUnitsProcessed, required: true, location_name: "topicPolicyUnits"))
|
@@ -813,9 +834,11 @@ module Aws::BedrockRuntime
|
|
813
834
|
|
814
835
|
SystemContentBlock.add_member(:text, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "text"))
|
815
836
|
SystemContentBlock.add_member(:guard_content, Shapes::ShapeRef.new(shape: GuardrailConverseContentBlock, location_name: "guardContent"))
|
837
|
+
SystemContentBlock.add_member(:cache_point, Shapes::ShapeRef.new(shape: CachePointBlock, location_name: "cachePoint"))
|
816
838
|
SystemContentBlock.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
817
839
|
SystemContentBlock.add_member_subclass(:text, Types::SystemContentBlock::Text)
|
818
840
|
SystemContentBlock.add_member_subclass(:guard_content, Types::SystemContentBlock::GuardContent)
|
841
|
+
SystemContentBlock.add_member_subclass(:cache_point, Types::SystemContentBlock::CachePoint)
|
819
842
|
SystemContentBlock.add_member_subclass(:unknown, Types::SystemContentBlock::Unknown)
|
820
843
|
SystemContentBlock.struct_class = Types::SystemContentBlock
|
821
844
|
|
@@ -833,11 +856,15 @@ module Aws::BedrockRuntime
|
|
833
856
|
TokenUsage.add_member(:input_tokens, Shapes::ShapeRef.new(shape: TokenUsageInputTokensInteger, required: true, location_name: "inputTokens"))
|
834
857
|
TokenUsage.add_member(:output_tokens, Shapes::ShapeRef.new(shape: TokenUsageOutputTokensInteger, required: true, location_name: "outputTokens"))
|
835
858
|
TokenUsage.add_member(:total_tokens, Shapes::ShapeRef.new(shape: TokenUsageTotalTokensInteger, required: true, location_name: "totalTokens"))
|
859
|
+
TokenUsage.add_member(:cache_read_input_tokens, Shapes::ShapeRef.new(shape: TokenUsageCacheReadInputTokensInteger, location_name: "cacheReadInputTokens"))
|
860
|
+
TokenUsage.add_member(:cache_write_input_tokens, Shapes::ShapeRef.new(shape: TokenUsageCacheWriteInputTokensInteger, location_name: "cacheWriteInputTokens"))
|
836
861
|
TokenUsage.struct_class = Types::TokenUsage
|
837
862
|
|
838
863
|
Tool.add_member(:tool_spec, Shapes::ShapeRef.new(shape: ToolSpecification, location_name: "toolSpec"))
|
864
|
+
Tool.add_member(:cache_point, Shapes::ShapeRef.new(shape: CachePointBlock, location_name: "cachePoint"))
|
839
865
|
Tool.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
840
866
|
Tool.add_member_subclass(:tool_spec, Types::Tool::ToolSpec)
|
867
|
+
Tool.add_member_subclass(:cache_point, Types::Tool::CachePoint)
|
841
868
|
Tool.add_member_subclass(:unknown, Types::Tool::Unknown)
|
842
869
|
Tool.struct_class = Types::Tool
|
843
870
|
|
@@ -54,13 +54,25 @@ module Aws::BedrockRuntime
|
|
54
54
|
# The content details used in the request to apply the guardrail.
|
55
55
|
# @return [Array<Types::GuardrailContentBlock>]
|
56
56
|
#
|
57
|
+
# @!attribute [rw] output_scope
|
58
|
+
# Specifies the scope of the output that you get in the response. Set
|
59
|
+
# to `FULL` to return the entire output, including any detected and
|
60
|
+
# non-detected entries in the response for enhanced debugging.
|
61
|
+
#
|
62
|
+
# Note that the full output scope doesn't apply to word filters or
|
63
|
+
# regex in sensitive information filters. It does apply to all other
|
64
|
+
# filtering policies, including sensitive information with filters
|
65
|
+
# that can detect personally identifiable information (PII).
|
66
|
+
# @return [String]
|
67
|
+
#
|
57
68
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ApplyGuardrailRequest AWS API Documentation
|
58
69
|
#
|
59
70
|
class ApplyGuardrailRequest < Struct.new(
|
60
71
|
:guardrail_identifier,
|
61
72
|
:guardrail_version,
|
62
73
|
:source,
|
63
|
-
:content
|
74
|
+
:content,
|
75
|
+
:output_scope)
|
64
76
|
SENSITIVE = []
|
65
77
|
include Aws::Structure
|
66
78
|
end
|
@@ -73,6 +85,10 @@ module Aws::BedrockRuntime
|
|
73
85
|
# The action taken in the response from the guardrail.
|
74
86
|
# @return [String]
|
75
87
|
#
|
88
|
+
# @!attribute [rw] action_reason
|
89
|
+
# The reason for the action taken when harmful content is detected.
|
90
|
+
# @return [String]
|
91
|
+
#
|
76
92
|
# @!attribute [rw] outputs
|
77
93
|
# The output details in the response from the guardrail.
|
78
94
|
# @return [Array<Types::GuardrailOutputContent>]
|
@@ -90,6 +106,7 @@ module Aws::BedrockRuntime
|
|
90
106
|
class ApplyGuardrailResponse < Struct.new(
|
91
107
|
:usage,
|
92
108
|
:action,
|
109
|
+
:action_reason,
|
93
110
|
:outputs,
|
94
111
|
:assessments,
|
95
112
|
:guardrail_coverage)
|
@@ -208,6 +225,21 @@ module Aws::BedrockRuntime
|
|
208
225
|
#
|
209
226
|
class AutoToolChoice < Aws::EmptyStructure; end
|
210
227
|
|
228
|
+
# Defines a section of content to be cached for reuse in subsequent API
|
229
|
+
# calls.
|
230
|
+
#
|
231
|
+
# @!attribute [rw] type
|
232
|
+
# Specifies the type of cache point within the CachePointBlock.
|
233
|
+
# @return [String]
|
234
|
+
#
|
235
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/CachePointBlock AWS API Documentation
|
236
|
+
#
|
237
|
+
class CachePointBlock < Struct.new(
|
238
|
+
:type)
|
239
|
+
SENSITIVE = []
|
240
|
+
include Aws::Structure
|
241
|
+
end
|
242
|
+
|
211
243
|
# Error occurred because of a conflict while performing an operation.
|
212
244
|
#
|
213
245
|
# @!attribute [rw] message
|
@@ -270,6 +302,10 @@ module Aws::BedrockRuntime
|
|
270
302
|
# the *Amazon Bedrock User Guide*. </p>
|
271
303
|
# @return [Types::GuardrailConverseContentBlock]
|
272
304
|
#
|
305
|
+
# @!attribute [rw] cache_point
|
306
|
+
# CachePoint to include in the message.
|
307
|
+
# @return [Types::CachePointBlock]
|
308
|
+
#
|
273
309
|
# @!attribute [rw] reasoning_content
|
274
310
|
# Contains content regarding the reasoning that is carried out by the
|
275
311
|
# model. Reasoning refers to a Chain of Thought (CoT) that the model
|
@@ -286,6 +322,7 @@ module Aws::BedrockRuntime
|
|
286
322
|
:tool_use,
|
287
323
|
:tool_result,
|
288
324
|
:guard_content,
|
325
|
+
:cache_point,
|
289
326
|
:reasoning_content,
|
290
327
|
:unknown)
|
291
328
|
SENSITIVE = [:reasoning_content]
|
@@ -299,6 +336,7 @@ module Aws::BedrockRuntime
|
|
299
336
|
class ToolUse < ContentBlock; end
|
300
337
|
class ToolResult < ContentBlock; end
|
301
338
|
class GuardContent < ContentBlock; end
|
339
|
+
class CachePoint < ContentBlock; end
|
302
340
|
class ReasoningContent < ContentBlock; end
|
303
341
|
class Unknown < ContentBlock; end
|
304
342
|
end
|
@@ -1140,13 +1178,19 @@ module Aws::BedrockRuntime
|
|
1140
1178
|
# The guardrail action.
|
1141
1179
|
# @return [String]
|
1142
1180
|
#
|
1181
|
+
# @!attribute [rw] detected
|
1182
|
+
# Indicates whether content that breaches the guardrail configuration
|
1183
|
+
# is detected.
|
1184
|
+
# @return [Boolean]
|
1185
|
+
#
|
1143
1186
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailContentFilter AWS API Documentation
|
1144
1187
|
#
|
1145
1188
|
class GuardrailContentFilter < Struct.new(
|
1146
1189
|
:type,
|
1147
1190
|
:confidence,
|
1148
1191
|
:filter_strength,
|
1149
|
-
:action
|
1192
|
+
:action,
|
1193
|
+
:detected)
|
1150
1194
|
SENSITIVE = []
|
1151
1195
|
include Aws::Structure
|
1152
1196
|
end
|
@@ -1184,13 +1228,20 @@ module Aws::BedrockRuntime
|
|
1184
1228
|
# The action performed by the guardrails contextual grounding filter.
|
1185
1229
|
# @return [String]
|
1186
1230
|
#
|
1231
|
+
# @!attribute [rw] detected
|
1232
|
+
# Indicates whether content that fails the contextual grounding
|
1233
|
+
# evaluation (grounding or relevance score less than the corresponding
|
1234
|
+
# threshold) was detected.
|
1235
|
+
# @return [Boolean]
|
1236
|
+
#
|
1187
1237
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailContextualGroundingFilter AWS API Documentation
|
1188
1238
|
#
|
1189
1239
|
class GuardrailContextualGroundingFilter < Struct.new(
|
1190
1240
|
:type,
|
1191
1241
|
:threshold,
|
1192
1242
|
:score,
|
1193
|
-
:action
|
1243
|
+
:action,
|
1244
|
+
:detected)
|
1194
1245
|
SENSITIVE = []
|
1195
1246
|
include Aws::Structure
|
1196
1247
|
end
|
@@ -1342,11 +1393,17 @@ module Aws::BedrockRuntime
|
|
1342
1393
|
# The action for the custom word.
|
1343
1394
|
# @return [String]
|
1344
1395
|
#
|
1396
|
+
# @!attribute [rw] detected
|
1397
|
+
# Indicates whether custom word content that breaches the guardrail
|
1398
|
+
# configuration is detected.
|
1399
|
+
# @return [Boolean]
|
1400
|
+
#
|
1345
1401
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailCustomWord AWS API Documentation
|
1346
1402
|
#
|
1347
1403
|
class GuardrailCustomWord < Struct.new(
|
1348
1404
|
:match,
|
1349
|
-
:action
|
1405
|
+
:action,
|
1406
|
+
:detected)
|
1350
1407
|
SENSITIVE = []
|
1351
1408
|
include Aws::Structure
|
1352
1409
|
end
|
@@ -1454,12 +1511,18 @@ module Aws::BedrockRuntime
|
|
1454
1511
|
# The action for the managed word.
|
1455
1512
|
# @return [String]
|
1456
1513
|
#
|
1514
|
+
# @!attribute [rw] detected
|
1515
|
+
# Indicates whether managed word content that breaches the guardrail
|
1516
|
+
# configuration is detected.
|
1517
|
+
# @return [Boolean]
|
1518
|
+
#
|
1457
1519
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailManagedWord AWS API Documentation
|
1458
1520
|
#
|
1459
1521
|
class GuardrailManagedWord < Struct.new(
|
1460
1522
|
:match,
|
1461
1523
|
:type,
|
1462
|
-
:action
|
1524
|
+
:action,
|
1525
|
+
:detected)
|
1463
1526
|
SENSITIVE = []
|
1464
1527
|
include Aws::Structure
|
1465
1528
|
end
|
@@ -1493,12 +1556,18 @@ module Aws::BedrockRuntime
|
|
1493
1556
|
# The PII entity filter action.
|
1494
1557
|
# @return [String]
|
1495
1558
|
#
|
1559
|
+
# @!attribute [rw] detected
|
1560
|
+
# Indicates whether personally identifiable information (PII) that
|
1561
|
+
# breaches the guardrail configuration is detected.
|
1562
|
+
# @return [Boolean]
|
1563
|
+
#
|
1496
1564
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailPiiEntityFilter AWS API Documentation
|
1497
1565
|
#
|
1498
1566
|
class GuardrailPiiEntityFilter < Struct.new(
|
1499
1567
|
:match,
|
1500
1568
|
:type,
|
1501
|
-
:action
|
1569
|
+
:action,
|
1570
|
+
:detected)
|
1502
1571
|
SENSITIVE = []
|
1503
1572
|
include Aws::Structure
|
1504
1573
|
end
|
@@ -1521,13 +1590,19 @@ module Aws::BedrockRuntime
|
|
1521
1590
|
# The region filter action.
|
1522
1591
|
# @return [String]
|
1523
1592
|
#
|
1593
|
+
# @!attribute [rw] detected
|
1594
|
+
# Indicates whether custom regex entities that breach the guardrail
|
1595
|
+
# configuration are detected.
|
1596
|
+
# @return [Boolean]
|
1597
|
+
#
|
1524
1598
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailRegexFilter AWS API Documentation
|
1525
1599
|
#
|
1526
1600
|
class GuardrailRegexFilter < Struct.new(
|
1527
1601
|
:name,
|
1528
1602
|
:match,
|
1529
1603
|
:regex,
|
1530
|
-
:action
|
1604
|
+
:action,
|
1605
|
+
:detected)
|
1531
1606
|
SENSITIVE = []
|
1532
1607
|
include Aws::Structure
|
1533
1608
|
end
|
@@ -1637,12 +1712,18 @@ module Aws::BedrockRuntime
|
|
1637
1712
|
# The action the guardrail should take when it intervenes on a topic.
|
1638
1713
|
# @return [String]
|
1639
1714
|
#
|
1715
|
+
# @!attribute [rw] detected
|
1716
|
+
# Indicates whether topic content that breaches the guardrail
|
1717
|
+
# configuration is detected.
|
1718
|
+
# @return [Boolean]
|
1719
|
+
#
|
1640
1720
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailTopic AWS API Documentation
|
1641
1721
|
#
|
1642
1722
|
class GuardrailTopic < Struct.new(
|
1643
1723
|
:name,
|
1644
1724
|
:type,
|
1645
|
-
:action
|
1725
|
+
:action,
|
1726
|
+
:detected)
|
1646
1727
|
SENSITIVE = []
|
1647
1728
|
include Aws::Structure
|
1648
1729
|
end
|
@@ -1676,12 +1757,18 @@ module Aws::BedrockRuntime
|
|
1676
1757
|
# the output assessments.
|
1677
1758
|
# @return [Hash<String,Array<Types::GuardrailAssessment>>]
|
1678
1759
|
#
|
1760
|
+
# @!attribute [rw] action_reason
|
1761
|
+
# Provides the reason for the action taken when harmful content is
|
1762
|
+
# detected.
|
1763
|
+
# @return [String]
|
1764
|
+
#
|
1679
1765
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailTraceAssessment AWS API Documentation
|
1680
1766
|
#
|
1681
1767
|
class GuardrailTraceAssessment < Struct.new(
|
1682
1768
|
:model_output,
|
1683
1769
|
:input_assessment,
|
1684
|
-
:output_assessments
|
1770
|
+
:output_assessments,
|
1771
|
+
:action_reason)
|
1685
1772
|
SENSITIVE = []
|
1686
1773
|
include Aws::Structure
|
1687
1774
|
end
|
@@ -2698,11 +2785,16 @@ module Aws::BedrockRuntime
|
|
2698
2785
|
# [2]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html
|
2699
2786
|
# @return [Types::GuardrailConverseContentBlock]
|
2700
2787
|
#
|
2788
|
+
# @!attribute [rw] cache_point
|
2789
|
+
# CachePoint to include in the system prompt.
|
2790
|
+
# @return [Types::CachePointBlock]
|
2791
|
+
#
|
2701
2792
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/SystemContentBlock AWS API Documentation
|
2702
2793
|
#
|
2703
2794
|
class SystemContentBlock < Struct.new(
|
2704
2795
|
:text,
|
2705
2796
|
:guard_content,
|
2797
|
+
:cache_point,
|
2706
2798
|
:unknown)
|
2707
2799
|
SENSITIVE = []
|
2708
2800
|
include Aws::Structure
|
@@ -2710,6 +2802,7 @@ module Aws::BedrockRuntime
|
|
2710
2802
|
|
2711
2803
|
class Text < SystemContentBlock; end
|
2712
2804
|
class GuardContent < SystemContentBlock; end
|
2805
|
+
class CachePoint < SystemContentBlock; end
|
2713
2806
|
class Unknown < SystemContentBlock; end
|
2714
2807
|
end
|
2715
2808
|
|
@@ -2766,12 +2859,22 @@ module Aws::BedrockRuntime
|
|
2766
2859
|
# The total of input tokens and tokens generated by the model.
|
2767
2860
|
# @return [Integer]
|
2768
2861
|
#
|
2862
|
+
# @!attribute [rw] cache_read_input_tokens
|
2863
|
+
# The number of input tokens read from the cache for the request.
|
2864
|
+
# @return [Integer]
|
2865
|
+
#
|
2866
|
+
# @!attribute [rw] cache_write_input_tokens
|
2867
|
+
# The number of input tokens written to the cache for the request.
|
2868
|
+
# @return [Integer]
|
2869
|
+
#
|
2769
2870
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/TokenUsage AWS API Documentation
|
2770
2871
|
#
|
2771
2872
|
class TokenUsage < Struct.new(
|
2772
2873
|
:input_tokens,
|
2773
2874
|
:output_tokens,
|
2774
|
-
:total_tokens
|
2875
|
+
:total_tokens,
|
2876
|
+
:cache_read_input_tokens,
|
2877
|
+
:cache_write_input_tokens)
|
2775
2878
|
SENSITIVE = []
|
2776
2879
|
include Aws::Structure
|
2777
2880
|
end
|
@@ -2790,16 +2893,22 @@ module Aws::BedrockRuntime
|
|
2790
2893
|
# The specfication for the tool.
|
2791
2894
|
# @return [Types::ToolSpecification]
|
2792
2895
|
#
|
2896
|
+
# @!attribute [rw] cache_point
|
2897
|
+
# CachePoint to include in the tool configuration.
|
2898
|
+
# @return [Types::CachePointBlock]
|
2899
|
+
#
|
2793
2900
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/Tool AWS API Documentation
|
2794
2901
|
#
|
2795
2902
|
class Tool < Struct.new(
|
2796
2903
|
:tool_spec,
|
2904
|
+
:cache_point,
|
2797
2905
|
:unknown)
|
2798
2906
|
SENSITIVE = []
|
2799
2907
|
include Aws::Structure
|
2800
2908
|
include Aws::Structure::Union
|
2801
2909
|
|
2802
2910
|
class ToolSpec < Tool; end
|
2911
|
+
class CachePoint < Tool; end
|
2803
2912
|
class Unknown < Tool; end
|
2804
2913
|
end
|
2805
2914
|
|
data/sig/client.rbs
CHANGED
@@ -84,6 +84,7 @@ module Aws
|
|
84
84
|
include ::Seahorse::Client::_ResponseSuccess[Types::ApplyGuardrailResponse]
|
85
85
|
def usage: () -> Types::GuardrailUsage
|
86
86
|
def action: () -> ("NONE" | "GUARDRAIL_INTERVENED")
|
87
|
+
def action_reason: () -> ::String
|
87
88
|
def outputs: () -> ::Array[Types::GuardrailOutputContent]
|
88
89
|
def assessments: () -> ::Array[Types::GuardrailAssessment]
|
89
90
|
def guardrail_coverage: () -> Types::GuardrailCoverage
|
@@ -106,7 +107,8 @@ module Aws
|
|
106
107
|
}
|
107
108
|
}?
|
108
109
|
},
|
109
|
-
]
|
110
|
+
],
|
111
|
+
?output_scope: ("INTERVENTIONS" | "FULL")
|
110
112
|
) -> _ApplyGuardrailResponseSuccess
|
111
113
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ApplyGuardrailResponseSuccess
|
112
114
|
|
@@ -204,6 +206,9 @@ module Aws
|
|
204
206
|
}
|
205
207
|
}?
|
206
208
|
}?,
|
209
|
+
cache_point: {
|
210
|
+
type: ("default")
|
211
|
+
}?,
|
207
212
|
reasoning_content: {
|
208
213
|
reasoning_text: {
|
209
214
|
text: ::String,
|
@@ -229,6 +234,9 @@ module Aws
|
|
229
234
|
bytes: ::String?
|
230
235
|
}
|
231
236
|
}?
|
237
|
+
}?,
|
238
|
+
cache_point: {
|
239
|
+
type: ("default")
|
232
240
|
}?
|
233
241
|
},
|
234
242
|
],
|
@@ -248,6 +256,9 @@ module Aws
|
|
248
256
|
json: {
|
249
257
|
}?
|
250
258
|
}
|
259
|
+
}?,
|
260
|
+
cache_point: {
|
261
|
+
type: ("default")
|
251
262
|
}?
|
252
263
|
},
|
253
264
|
],
|
@@ -264,7 +275,7 @@ module Aws
|
|
264
275
|
?guardrail_config: {
|
265
276
|
guardrail_identifier: ::String,
|
266
277
|
guardrail_version: ::String,
|
267
|
-
trace: ("enabled" | "disabled")?
|
278
|
+
trace: ("enabled" | "disabled" | "enabled_full")?
|
268
279
|
},
|
269
280
|
?additional_model_request_fields: {
|
270
281
|
},
|
@@ -367,6 +378,9 @@ module Aws
|
|
367
378
|
}
|
368
379
|
}?
|
369
380
|
}?,
|
381
|
+
cache_point: {
|
382
|
+
type: ("default")
|
383
|
+
}?,
|
370
384
|
reasoning_content: {
|
371
385
|
reasoning_text: {
|
372
386
|
text: ::String,
|
@@ -392,6 +406,9 @@ module Aws
|
|
392
406
|
bytes: ::String?
|
393
407
|
}
|
394
408
|
}?
|
409
|
+
}?,
|
410
|
+
cache_point: {
|
411
|
+
type: ("default")
|
395
412
|
}?
|
396
413
|
},
|
397
414
|
],
|
@@ -411,6 +428,9 @@ module Aws
|
|
411
428
|
json: {
|
412
429
|
}?
|
413
430
|
}
|
431
|
+
}?,
|
432
|
+
cache_point: {
|
433
|
+
type: ("default")
|
414
434
|
}?
|
415
435
|
},
|
416
436
|
],
|
@@ -427,7 +447,7 @@ module Aws
|
|
427
447
|
?guardrail_config: {
|
428
448
|
guardrail_identifier: ::String,
|
429
449
|
guardrail_version: ::String,
|
430
|
-
trace: ("enabled" | "disabled")?,
|
450
|
+
trace: ("enabled" | "disabled" | "enabled_full")?,
|
431
451
|
stream_processing_mode: ("sync" | "async")?
|
432
452
|
},
|
433
453
|
?additional_model_request_fields: {
|
@@ -473,7 +493,7 @@ module Aws
|
|
473
493
|
?content_type: ::String,
|
474
494
|
?accept: ::String,
|
475
495
|
model_id: ::String,
|
476
|
-
?trace: ("ENABLED" | "DISABLED"),
|
496
|
+
?trace: ("ENABLED" | "DISABLED" | "ENABLED_FULL"),
|
477
497
|
?guardrail_identifier: ::String,
|
478
498
|
?guardrail_version: ::String,
|
479
499
|
?performance_config_latency: ("standard" | "optimized")
|
@@ -492,7 +512,7 @@ module Aws
|
|
492
512
|
?content_type: ::String,
|
493
513
|
?accept: ::String,
|
494
514
|
model_id: ::String,
|
495
|
-
?trace: ("ENABLED" | "DISABLED"),
|
515
|
+
?trace: ("ENABLED" | "DISABLED" | "ENABLED_FULL"),
|
496
516
|
?guardrail_identifier: ::String,
|
497
517
|
?guardrail_version: ::String,
|
498
518
|
?performance_config_latency: ("standard" | "optimized")
|
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,11 @@ module Aws::BedrockRuntime
|
|
67
69
|
class AutoToolChoice < Aws::EmptyStructure
|
68
70
|
end
|
69
71
|
|
72
|
+
class CachePointBlock
|
73
|
+
attr_accessor type: ("default")
|
74
|
+
SENSITIVE: []
|
75
|
+
end
|
76
|
+
|
70
77
|
class ConflictException
|
71
78
|
attr_accessor message: ::String
|
72
79
|
SENSITIVE: []
|
@@ -80,6 +87,7 @@ module Aws::BedrockRuntime
|
|
80
87
|
attr_accessor tool_use: Types::ToolUseBlock
|
81
88
|
attr_accessor tool_result: Types::ToolResultBlock
|
82
89
|
attr_accessor guard_content: Types::GuardrailConverseContentBlock
|
90
|
+
attr_accessor cache_point: Types::CachePointBlock
|
83
91
|
attr_accessor reasoning_content: Types::ReasoningContentBlock
|
84
92
|
attr_accessor unknown: untyped
|
85
93
|
SENSITIVE: [:reasoning_content]
|
@@ -98,6 +106,8 @@ module Aws::BedrockRuntime
|
|
98
106
|
end
|
99
107
|
class GuardContent < ContentBlock
|
100
108
|
end
|
109
|
+
class CachePoint < ContentBlock
|
110
|
+
end
|
101
111
|
class ReasoningContent < ContentBlock
|
102
112
|
end
|
103
113
|
class Unknown < ContentBlock
|
@@ -289,7 +299,7 @@ module Aws::BedrockRuntime
|
|
289
299
|
class GuardrailConfiguration
|
290
300
|
attr_accessor guardrail_identifier: ::String
|
291
301
|
attr_accessor guardrail_version: ::String
|
292
|
-
attr_accessor trace: ("enabled" | "disabled")
|
302
|
+
attr_accessor trace: ("enabled" | "disabled" | "enabled_full")
|
293
303
|
SENSITIVE: []
|
294
304
|
end
|
295
305
|
|
@@ -311,7 +321,8 @@ module Aws::BedrockRuntime
|
|
311
321
|
attr_accessor type: ("INSULTS" | "HATE" | "SEXUAL" | "VIOLENCE" | "MISCONDUCT" | "PROMPT_ATTACK")
|
312
322
|
attr_accessor confidence: ("NONE" | "LOW" | "MEDIUM" | "HIGH")
|
313
323
|
attr_accessor filter_strength: ("NONE" | "LOW" | "MEDIUM" | "HIGH")
|
314
|
-
attr_accessor action: ("BLOCKED")
|
324
|
+
attr_accessor action: ("BLOCKED" | "NONE")
|
325
|
+
attr_accessor detected: bool
|
315
326
|
SENSITIVE: []
|
316
327
|
end
|
317
328
|
|
@@ -325,6 +336,7 @@ module Aws::BedrockRuntime
|
|
325
336
|
attr_accessor threshold: ::Float
|
326
337
|
attr_accessor score: ::Float
|
327
338
|
attr_accessor action: ("BLOCKED" | "NONE")
|
339
|
+
attr_accessor detected: bool
|
328
340
|
SENSITIVE: []
|
329
341
|
end
|
330
342
|
|
@@ -378,7 +390,8 @@ module Aws::BedrockRuntime
|
|
378
390
|
|
379
391
|
class GuardrailCustomWord
|
380
392
|
attr_accessor match: ::String
|
381
|
-
attr_accessor action: ("BLOCKED")
|
393
|
+
attr_accessor action: ("BLOCKED" | "NONE")
|
394
|
+
attr_accessor detected: bool
|
382
395
|
SENSITIVE: []
|
383
396
|
end
|
384
397
|
|
@@ -415,7 +428,8 @@ module Aws::BedrockRuntime
|
|
415
428
|
class GuardrailManagedWord
|
416
429
|
attr_accessor match: ::String
|
417
430
|
attr_accessor type: ("PROFANITY")
|
418
|
-
attr_accessor action: ("BLOCKED")
|
431
|
+
attr_accessor action: ("BLOCKED" | "NONE")
|
432
|
+
attr_accessor detected: bool
|
419
433
|
SENSITIVE: []
|
420
434
|
end
|
421
435
|
|
@@ -427,7 +441,8 @@ module Aws::BedrockRuntime
|
|
427
441
|
class GuardrailPiiEntityFilter
|
428
442
|
attr_accessor match: ::String
|
429
443
|
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")
|
430
|
-
attr_accessor action: ("ANONYMIZED" | "BLOCKED")
|
444
|
+
attr_accessor action: ("ANONYMIZED" | "BLOCKED" | "NONE")
|
445
|
+
attr_accessor detected: bool
|
431
446
|
SENSITIVE: []
|
432
447
|
end
|
433
448
|
|
@@ -435,7 +450,8 @@ module Aws::BedrockRuntime
|
|
435
450
|
attr_accessor name: ::String
|
436
451
|
attr_accessor match: ::String
|
437
452
|
attr_accessor regex: ::String
|
438
|
-
attr_accessor action: ("ANONYMIZED" | "BLOCKED")
|
453
|
+
attr_accessor action: ("ANONYMIZED" | "BLOCKED" | "NONE")
|
454
|
+
attr_accessor detected: bool
|
439
455
|
SENSITIVE: []
|
440
456
|
end
|
441
457
|
|
@@ -448,7 +464,7 @@ module Aws::BedrockRuntime
|
|
448
464
|
class GuardrailStreamConfiguration
|
449
465
|
attr_accessor guardrail_identifier: ::String
|
450
466
|
attr_accessor guardrail_version: ::String
|
451
|
-
attr_accessor trace: ("enabled" | "disabled")
|
467
|
+
attr_accessor trace: ("enabled" | "disabled" | "enabled_full")
|
452
468
|
attr_accessor stream_processing_mode: ("sync" | "async")
|
453
469
|
SENSITIVE: []
|
454
470
|
end
|
@@ -468,7 +484,8 @@ module Aws::BedrockRuntime
|
|
468
484
|
class GuardrailTopic
|
469
485
|
attr_accessor name: ::String
|
470
486
|
attr_accessor type: ("DENY")
|
471
|
-
attr_accessor action: ("BLOCKED")
|
487
|
+
attr_accessor action: ("BLOCKED" | "NONE")
|
488
|
+
attr_accessor detected: bool
|
472
489
|
SENSITIVE: []
|
473
490
|
end
|
474
491
|
|
@@ -481,6 +498,7 @@ module Aws::BedrockRuntime
|
|
481
498
|
attr_accessor model_output: ::Array[::String]
|
482
499
|
attr_accessor input_assessment: ::Hash[::String, Types::GuardrailAssessment]
|
483
500
|
attr_accessor output_assessments: ::Hash[::String, ::Array[Types::GuardrailAssessment]]
|
501
|
+
attr_accessor action_reason: ::String
|
484
502
|
SENSITIVE: []
|
485
503
|
end
|
486
504
|
|
@@ -537,7 +555,7 @@ module Aws::BedrockRuntime
|
|
537
555
|
attr_accessor content_type: ::String
|
538
556
|
attr_accessor accept: ::String
|
539
557
|
attr_accessor model_id: ::String
|
540
|
-
attr_accessor trace: ("ENABLED" | "DISABLED")
|
558
|
+
attr_accessor trace: ("ENABLED" | "DISABLED" | "ENABLED_FULL")
|
541
559
|
attr_accessor guardrail_identifier: ::String
|
542
560
|
attr_accessor guardrail_version: ::String
|
543
561
|
attr_accessor performance_config_latency: ("standard" | "optimized")
|
@@ -556,7 +574,7 @@ module Aws::BedrockRuntime
|
|
556
574
|
attr_accessor content_type: ::String
|
557
575
|
attr_accessor accept: ::String
|
558
576
|
attr_accessor model_id: ::String
|
559
|
-
attr_accessor trace: ("ENABLED" | "DISABLED")
|
577
|
+
attr_accessor trace: ("ENABLED" | "DISABLED" | "ENABLED_FULL")
|
560
578
|
attr_accessor guardrail_identifier: ::String
|
561
579
|
attr_accessor guardrail_version: ::String
|
562
580
|
attr_accessor performance_config_latency: ("standard" | "optimized")
|
@@ -740,6 +758,7 @@ module Aws::BedrockRuntime
|
|
740
758
|
class SystemContentBlock
|
741
759
|
attr_accessor text: ::String
|
742
760
|
attr_accessor guard_content: Types::GuardrailConverseContentBlock
|
761
|
+
attr_accessor cache_point: Types::CachePointBlock
|
743
762
|
attr_accessor unknown: untyped
|
744
763
|
SENSITIVE: []
|
745
764
|
|
@@ -747,6 +766,8 @@ module Aws::BedrockRuntime
|
|
747
766
|
end
|
748
767
|
class GuardContent < SystemContentBlock
|
749
768
|
end
|
769
|
+
class CachePoint < SystemContentBlock
|
770
|
+
end
|
750
771
|
class Unknown < SystemContentBlock
|
751
772
|
end
|
752
773
|
end
|
@@ -767,16 +788,21 @@ module Aws::BedrockRuntime
|
|
767
788
|
attr_accessor input_tokens: ::Integer
|
768
789
|
attr_accessor output_tokens: ::Integer
|
769
790
|
attr_accessor total_tokens: ::Integer
|
791
|
+
attr_accessor cache_read_input_tokens: ::Integer
|
792
|
+
attr_accessor cache_write_input_tokens: ::Integer
|
770
793
|
SENSITIVE: []
|
771
794
|
end
|
772
795
|
|
773
796
|
class Tool
|
774
797
|
attr_accessor tool_spec: Types::ToolSpecification
|
798
|
+
attr_accessor cache_point: Types::CachePointBlock
|
775
799
|
attr_accessor unknown: untyped
|
776
800
|
SENSITIVE: []
|
777
801
|
|
778
802
|
class ToolSpec < Tool
|
779
803
|
end
|
804
|
+
class CachePoint < Tool
|
805
|
+
end
|
780
806
|
class Unknown < Tool
|
781
807
|
end
|
782
808
|
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.43.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-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|