aws-sdk-bedrockagent 1.11.0 → 1.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7130a7c2088fc3208d84451fbdd4be02843625a4b2aed90e252391d8e4f5274d
4
- data.tar.gz: b322fb04c07acc514472af031d12586a7b7c9b8c9fa34ebb5cf69ec54e1a6d4b
3
+ metadata.gz: 4c9528347dbcf412e1c778bfb86c91e2669151935de7d35e1f734f292560ae8e
4
+ data.tar.gz: 7dbe069ab4d18e4308b8bd4762a6c2d2224925a68e1130ae801a050de00c9d7a
5
5
  SHA512:
6
- metadata.gz: b76480d57c64c12b6dc09d5a6ae2bd14ecfda3ffefc07677fdd4274d3d038cf90fbd241a7e21ec38fdc368f6c4c37440c2938167e77565df706e89a098f673d9
7
- data.tar.gz: cb7064ffac037568e48b6d825853ac2526e8869746564f32331a2c7a411f3a62e369deb76ccb63255dfc8486b9e6b0025b314c47b1a244d6f3a1f9d6d83a9b62
6
+ metadata.gz: e8e03c5ae773d36b1332e33805a38598d2787c0c8297aac49cb78cca5b280cacd54d2af57adb4a98e4b3fd45abbf0ceff9897f4bd792fb76c0972b85ef5ae19c
7
+ data.tar.gz: 789beadc0e9fe4e10ee9df3f905a330e8a31bcb1d6b1fcb09fb26631018e9c433697a1fd8939cae34290366450cdb0a67cf9e3a5956f27a459938d8a3eb2278e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.13.0 (2024-05-30)
5
+ ------------------
6
+
7
+ * Feature - With this release, Knowledge bases for Bedrock adds support for Titan Text Embedding v2.
8
+
9
+ 1.12.0 (2024-05-20)
10
+ ------------------
11
+
12
+ * Feature - This release adds support for using Guardrails with Bedrock Agents.
13
+
4
14
  1.11.0 (2024-05-13)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.11.0
1
+ 1.13.0
@@ -534,6 +534,10 @@ module Aws::BedrockAgent
534
534
  # The foundation model to be used for orchestration by the agent you
535
535
  # create.
536
536
  #
537
+ # @option params [Types::GuardrailConfiguration] :guardrail_configuration
538
+ # The unique Guardrail configuration assigned to the agent when it is
539
+ # created.
540
+ #
537
541
  # @option params [Integer] :idle_session_ttl_in_seconds
538
542
  # The number of seconds for which Amazon Bedrock keeps information about
539
543
  # a user's conversation with the agent.
@@ -570,6 +574,10 @@ module Aws::BedrockAgent
570
574
  # customer_encryption_key_arn: "KmsKeyArn",
571
575
  # description: "Description",
572
576
  # foundation_model: "ModelIdentifier",
577
+ # guardrail_configuration: {
578
+ # guardrail_identifier: "GuardrailIdentifier",
579
+ # guardrail_version: "GuardrailVersion",
580
+ # },
573
581
  # idle_session_ttl_in_seconds: 1,
574
582
  # instruction: "Instruction",
575
583
  # prompt_override_configuration: {
@@ -611,6 +619,8 @@ module Aws::BedrockAgent
611
619
  # resp.agent.failure_reasons #=> Array
612
620
  # resp.agent.failure_reasons[0] #=> String
613
621
  # resp.agent.foundation_model #=> String
622
+ # resp.agent.guardrail_configuration.guardrail_identifier #=> String
623
+ # resp.agent.guardrail_configuration.guardrail_version #=> String
614
624
  # resp.agent.idle_session_ttl_in_seconds #=> Integer
615
625
  # resp.agent.instruction #=> String
616
626
  # resp.agent.prepared_at #=> Time
@@ -1087,6 +1097,11 @@ module Aws::BedrockAgent
1087
1097
  # type: "VECTOR", # required, accepts VECTOR
1088
1098
  # vector_knowledge_base_configuration: {
1089
1099
  # embedding_model_arn: "BedrockEmbeddingModelArn", # required
1100
+ # embedding_model_configuration: {
1101
+ # bedrock_embedding_model_configuration: {
1102
+ # dimensions: 1,
1103
+ # },
1104
+ # },
1090
1105
  # },
1091
1106
  # },
1092
1107
  # name: "Name", # required
@@ -1161,6 +1176,7 @@ module Aws::BedrockAgent
1161
1176
  # resp.knowledge_base.knowledge_base_arn #=> String
1162
1177
  # resp.knowledge_base.knowledge_base_configuration.type #=> String, one of "VECTOR"
1163
1178
  # resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.embedding_model_arn #=> String
1179
+ # resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.dimensions #=> Integer
1164
1180
  # resp.knowledge_base.knowledge_base_id #=> String
1165
1181
  # resp.knowledge_base.name #=> String
1166
1182
  # resp.knowledge_base.role_arn #=> String
@@ -1495,6 +1511,8 @@ module Aws::BedrockAgent
1495
1511
  # resp.agent.failure_reasons #=> Array
1496
1512
  # resp.agent.failure_reasons[0] #=> String
1497
1513
  # resp.agent.foundation_model #=> String
1514
+ # resp.agent.guardrail_configuration.guardrail_identifier #=> String
1515
+ # resp.agent.guardrail_configuration.guardrail_version #=> String
1498
1516
  # resp.agent.idle_session_ttl_in_seconds #=> Integer
1499
1517
  # resp.agent.instruction #=> String
1500
1518
  # resp.agent.prepared_at #=> Time
@@ -1709,6 +1727,8 @@ module Aws::BedrockAgent
1709
1727
  # resp.agent_version.failure_reasons #=> Array
1710
1728
  # resp.agent_version.failure_reasons[0] #=> String
1711
1729
  # resp.agent_version.foundation_model #=> String
1730
+ # resp.agent_version.guardrail_configuration.guardrail_identifier #=> String
1731
+ # resp.agent_version.guardrail_configuration.guardrail_version #=> String
1712
1732
  # resp.agent_version.idle_session_ttl_in_seconds #=> Integer
1713
1733
  # resp.agent_version.instruction #=> String
1714
1734
  # resp.agent_version.prompt_override_configuration.override_lambda #=> String
@@ -1867,6 +1887,7 @@ module Aws::BedrockAgent
1867
1887
  # resp.knowledge_base.knowledge_base_arn #=> String
1868
1888
  # resp.knowledge_base.knowledge_base_configuration.type #=> String, one of "VECTOR"
1869
1889
  # resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.embedding_model_arn #=> String
1890
+ # resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.dimensions #=> Integer
1870
1891
  # resp.knowledge_base.knowledge_base_id #=> String
1871
1892
  # resp.knowledge_base.name #=> String
1872
1893
  # resp.knowledge_base.role_arn #=> String
@@ -2123,6 +2144,8 @@ module Aws::BedrockAgent
2123
2144
  # resp.agent_version_summaries[0].agent_version #=> String
2124
2145
  # resp.agent_version_summaries[0].created_at #=> Time
2125
2146
  # resp.agent_version_summaries[0].description #=> String
2147
+ # resp.agent_version_summaries[0].guardrail_configuration.guardrail_identifier #=> String
2148
+ # resp.agent_version_summaries[0].guardrail_configuration.guardrail_version #=> String
2126
2149
  # resp.agent_version_summaries[0].updated_at #=> Time
2127
2150
  # resp.next_token #=> String
2128
2151
  #
@@ -2171,6 +2194,8 @@ module Aws::BedrockAgent
2171
2194
  # resp.agent_summaries[0].agent_name #=> String
2172
2195
  # resp.agent_summaries[0].agent_status #=> String, one of "CREATING", "PREPARING", "PREPARED", "NOT_PREPARED", "DELETING", "FAILED", "VERSIONING", "UPDATING"
2173
2196
  # resp.agent_summaries[0].description #=> String
2197
+ # resp.agent_summaries[0].guardrail_configuration.guardrail_identifier #=> String
2198
+ # resp.agent_summaries[0].guardrail_configuration.guardrail_version #=> String
2174
2199
  # resp.agent_summaries[0].latest_agent_version #=> String
2175
2200
  # resp.agent_summaries[0].updated_at #=> Time
2176
2201
  # resp.next_token #=> String
@@ -2586,6 +2611,10 @@ module Aws::BedrockAgent
2586
2611
  # Specifies a new foundation model to be used for orchestration by the
2587
2612
  # agent.
2588
2613
  #
2614
+ # @option params [Types::GuardrailConfiguration] :guardrail_configuration
2615
+ # The unique Guardrail configuration assigned to the agent when it is
2616
+ # updated.
2617
+ #
2589
2618
  # @option params [Integer] :idle_session_ttl_in_seconds
2590
2619
  # The number of seconds for which Amazon Bedrock keeps information about
2591
2620
  # a user's conversation with the agent.
@@ -2619,6 +2648,10 @@ module Aws::BedrockAgent
2619
2648
  # customer_encryption_key_arn: "KmsKeyArn",
2620
2649
  # description: "Description",
2621
2650
  # foundation_model: "ModelIdentifier", # required
2651
+ # guardrail_configuration: {
2652
+ # guardrail_identifier: "GuardrailIdentifier",
2653
+ # guardrail_version: "GuardrailVersion",
2654
+ # },
2622
2655
  # idle_session_ttl_in_seconds: 1,
2623
2656
  # instruction: "Instruction",
2624
2657
  # prompt_override_configuration: {
@@ -2657,6 +2690,8 @@ module Aws::BedrockAgent
2657
2690
  # resp.agent.failure_reasons #=> Array
2658
2691
  # resp.agent.failure_reasons[0] #=> String
2659
2692
  # resp.agent.foundation_model #=> String
2693
+ # resp.agent.guardrail_configuration.guardrail_identifier #=> String
2694
+ # resp.agent.guardrail_configuration.guardrail_version #=> String
2660
2695
  # resp.agent.idle_session_ttl_in_seconds #=> Integer
2661
2696
  # resp.agent.instruction #=> String
2662
2697
  # resp.agent.prepared_at #=> Time
@@ -3101,6 +3136,11 @@ module Aws::BedrockAgent
3101
3136
  # type: "VECTOR", # required, accepts VECTOR
3102
3137
  # vector_knowledge_base_configuration: {
3103
3138
  # embedding_model_arn: "BedrockEmbeddingModelArn", # required
3139
+ # embedding_model_configuration: {
3140
+ # bedrock_embedding_model_configuration: {
3141
+ # dimensions: 1,
3142
+ # },
3143
+ # },
3104
3144
  # },
3105
3145
  # },
3106
3146
  # knowledge_base_id: "Id", # required
@@ -3173,6 +3213,7 @@ module Aws::BedrockAgent
3173
3213
  # resp.knowledge_base.knowledge_base_arn #=> String
3174
3214
  # resp.knowledge_base.knowledge_base_configuration.type #=> String, one of "VECTOR"
3175
3215
  # resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.embedding_model_arn #=> String
3216
+ # resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.dimensions #=> Integer
3176
3217
  # resp.knowledge_base.knowledge_base_id #=> String
3177
3218
  # resp.knowledge_base.name #=> String
3178
3219
  # resp.knowledge_base.role_arn #=> String
@@ -3235,7 +3276,7 @@ module Aws::BedrockAgent
3235
3276
  params: params,
3236
3277
  config: config)
3237
3278
  context[:gem_name] = 'aws-sdk-bedrockagent'
3238
- context[:gem_version] = '1.11.0'
3279
+ context[:gem_version] = '1.13.0'
3239
3280
  Seahorse::Client::Request.new(handlers, context)
3240
3281
  end
3241
3282
 
@@ -47,6 +47,7 @@ module Aws::BedrockAgent
47
47
  AssociateAgentKnowledgeBaseResponse = Shapes::StructureShape.new(name: 'AssociateAgentKnowledgeBaseResponse')
48
48
  BasePromptTemplate = Shapes::StringShape.new(name: 'BasePromptTemplate')
49
49
  BedrockEmbeddingModelArn = Shapes::StringShape.new(name: 'BedrockEmbeddingModelArn')
50
+ BedrockEmbeddingModelConfiguration = Shapes::StructureShape.new(name: 'BedrockEmbeddingModelConfiguration')
50
51
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
51
52
  BucketOwnerAccountId = Shapes::StringShape.new(name: 'BucketOwnerAccountId')
52
53
  ChunkingConfiguration = Shapes::StructureShape.new(name: 'ChunkingConfiguration')
@@ -87,9 +88,11 @@ module Aws::BedrockAgent
87
88
  DeleteKnowledgeBaseRequest = Shapes::StructureShape.new(name: 'DeleteKnowledgeBaseRequest')
88
89
  DeleteKnowledgeBaseResponse = Shapes::StructureShape.new(name: 'DeleteKnowledgeBaseResponse')
89
90
  Description = Shapes::StringShape.new(name: 'Description')
91
+ Dimensions = Shapes::IntegerShape.new(name: 'Dimensions')
90
92
  DisassociateAgentKnowledgeBaseRequest = Shapes::StructureShape.new(name: 'DisassociateAgentKnowledgeBaseRequest')
91
93
  DisassociateAgentKnowledgeBaseResponse = Shapes::StructureShape.new(name: 'DisassociateAgentKnowledgeBaseResponse')
92
94
  DraftVersion = Shapes::StringShape.new(name: 'DraftVersion')
95
+ EmbeddingModelConfiguration = Shapes::StructureShape.new(name: 'EmbeddingModelConfiguration')
93
96
  FailureReason = Shapes::StringShape.new(name: 'FailureReason')
94
97
  FailureReasons = Shapes::ListShape.new(name: 'FailureReasons')
95
98
  FieldName = Shapes::StringShape.new(name: 'FieldName')
@@ -116,6 +119,9 @@ module Aws::BedrockAgent
116
119
  GetIngestionJobResponse = Shapes::StructureShape.new(name: 'GetIngestionJobResponse')
117
120
  GetKnowledgeBaseRequest = Shapes::StructureShape.new(name: 'GetKnowledgeBaseRequest')
118
121
  GetKnowledgeBaseResponse = Shapes::StructureShape.new(name: 'GetKnowledgeBaseResponse')
122
+ GuardrailConfiguration = Shapes::StructureShape.new(name: 'GuardrailConfiguration')
123
+ GuardrailIdentifier = Shapes::StringShape.new(name: 'GuardrailIdentifier')
124
+ GuardrailVersion = Shapes::StringShape.new(name: 'GuardrailVersion')
119
125
  Id = Shapes::StringShape.new(name: 'Id')
120
126
  InferenceConfiguration = Shapes::StructureShape.new(name: 'InferenceConfiguration')
121
127
  IngestionJob = Shapes::StructureShape.new(name: 'IngestionJob')
@@ -300,6 +306,7 @@ module Aws::BedrockAgent
300
306
  Agent.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
301
307
  Agent.add_member(:failure_reasons, Shapes::ShapeRef.new(shape: FailureReasons, location_name: "failureReasons"))
302
308
  Agent.add_member(:foundation_model, Shapes::ShapeRef.new(shape: ModelIdentifier, location_name: "foundationModel"))
309
+ Agent.add_member(:guardrail_configuration, Shapes::ShapeRef.new(shape: GuardrailConfiguration, location_name: "guardrailConfiguration"))
303
310
  Agent.add_member(:idle_session_ttl_in_seconds, Shapes::ShapeRef.new(shape: SessionTTL, required: true, location_name: "idleSessionTTLInSeconds"))
304
311
  Agent.add_member(:instruction, Shapes::ShapeRef.new(shape: Instruction, location_name: "instruction"))
305
312
  Agent.add_member(:prepared_at, Shapes::ShapeRef.new(shape: DateTimestamp, location_name: "preparedAt"))
@@ -384,6 +391,7 @@ module Aws::BedrockAgent
384
391
  AgentSummary.add_member(:agent_name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "agentName"))
385
392
  AgentSummary.add_member(:agent_status, Shapes::ShapeRef.new(shape: AgentStatus, required: true, location_name: "agentStatus"))
386
393
  AgentSummary.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
394
+ AgentSummary.add_member(:guardrail_configuration, Shapes::ShapeRef.new(shape: GuardrailConfiguration, location_name: "guardrailConfiguration"))
387
395
  AgentSummary.add_member(:latest_agent_version, Shapes::ShapeRef.new(shape: Version, location_name: "latestAgentVersion"))
388
396
  AgentSummary.add_member(:updated_at, Shapes::ShapeRef.new(shape: DateTimestamp, required: true, location_name: "updatedAt"))
389
397
  AgentSummary.struct_class = Types::AgentSummary
@@ -398,6 +406,7 @@ module Aws::BedrockAgent
398
406
  AgentVersion.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
399
407
  AgentVersion.add_member(:failure_reasons, Shapes::ShapeRef.new(shape: FailureReasons, location_name: "failureReasons"))
400
408
  AgentVersion.add_member(:foundation_model, Shapes::ShapeRef.new(shape: ModelIdentifier, location_name: "foundationModel"))
409
+ AgentVersion.add_member(:guardrail_configuration, Shapes::ShapeRef.new(shape: GuardrailConfiguration, location_name: "guardrailConfiguration"))
401
410
  AgentVersion.add_member(:idle_session_ttl_in_seconds, Shapes::ShapeRef.new(shape: SessionTTL, required: true, location_name: "idleSessionTTLInSeconds"))
402
411
  AgentVersion.add_member(:instruction, Shapes::ShapeRef.new(shape: Instruction, location_name: "instruction"))
403
412
  AgentVersion.add_member(:prompt_override_configuration, Shapes::ShapeRef.new(shape: PromptOverrideConfiguration, location_name: "promptOverrideConfiguration"))
@@ -413,6 +422,7 @@ module Aws::BedrockAgent
413
422
  AgentVersionSummary.add_member(:agent_version, Shapes::ShapeRef.new(shape: Version, required: true, location_name: "agentVersion"))
414
423
  AgentVersionSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: DateTimestamp, required: true, location_name: "createdAt"))
415
424
  AgentVersionSummary.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
425
+ AgentVersionSummary.add_member(:guardrail_configuration, Shapes::ShapeRef.new(shape: GuardrailConfiguration, location_name: "guardrailConfiguration"))
416
426
  AgentVersionSummary.add_member(:updated_at, Shapes::ShapeRef.new(shape: DateTimestamp, required: true, location_name: "updatedAt"))
417
427
  AgentVersionSummary.struct_class = Types::AgentVersionSummary
418
428
 
@@ -426,6 +436,9 @@ module Aws::BedrockAgent
426
436
  AssociateAgentKnowledgeBaseResponse.add_member(:agent_knowledge_base, Shapes::ShapeRef.new(shape: AgentKnowledgeBase, required: true, location_name: "agentKnowledgeBase"))
427
437
  AssociateAgentKnowledgeBaseResponse.struct_class = Types::AssociateAgentKnowledgeBaseResponse
428
438
 
439
+ BedrockEmbeddingModelConfiguration.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "dimensions"))
440
+ BedrockEmbeddingModelConfiguration.struct_class = Types::BedrockEmbeddingModelConfiguration
441
+
429
442
  ChunkingConfiguration.add_member(:chunking_strategy, Shapes::ShapeRef.new(shape: ChunkingStrategy, required: true, location_name: "chunkingStrategy"))
430
443
  ChunkingConfiguration.add_member(:fixed_size_chunking_configuration, Shapes::ShapeRef.new(shape: FixedSizeChunkingConfiguration, location_name: "fixedSizeChunkingConfiguration"))
431
444
  ChunkingConfiguration.struct_class = Types::ChunkingConfiguration
@@ -465,6 +478,7 @@ module Aws::BedrockAgent
465
478
  CreateAgentRequest.add_member(:customer_encryption_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "customerEncryptionKeyArn"))
466
479
  CreateAgentRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
467
480
  CreateAgentRequest.add_member(:foundation_model, Shapes::ShapeRef.new(shape: ModelIdentifier, location_name: "foundationModel"))
481
+ CreateAgentRequest.add_member(:guardrail_configuration, Shapes::ShapeRef.new(shape: GuardrailConfiguration, location_name: "guardrailConfiguration"))
468
482
  CreateAgentRequest.add_member(:idle_session_ttl_in_seconds, Shapes::ShapeRef.new(shape: SessionTTL, location_name: "idleSessionTTLInSeconds"))
469
483
  CreateAgentRequest.add_member(:instruction, Shapes::ShapeRef.new(shape: Instruction, location_name: "instruction"))
470
484
  CreateAgentRequest.add_member(:prompt_override_configuration, Shapes::ShapeRef.new(shape: PromptOverrideConfiguration, location_name: "promptOverrideConfiguration"))
@@ -585,6 +599,9 @@ module Aws::BedrockAgent
585
599
 
586
600
  DisassociateAgentKnowledgeBaseResponse.struct_class = Types::DisassociateAgentKnowledgeBaseResponse
587
601
 
602
+ EmbeddingModelConfiguration.add_member(:bedrock_embedding_model_configuration, Shapes::ShapeRef.new(shape: BedrockEmbeddingModelConfiguration, location_name: "bedrockEmbeddingModelConfiguration"))
603
+ EmbeddingModelConfiguration.struct_class = Types::EmbeddingModelConfiguration
604
+
588
605
  FailureReasons.member = Shapes::ShapeRef.new(shape: FailureReason)
589
606
 
590
607
  FixedSizeChunkingConfiguration.add_member(:max_tokens, Shapes::ShapeRef.new(shape: FixedSizeChunkingConfigurationMaxTokensInteger, required: true, location_name: "maxTokens"))
@@ -661,6 +678,10 @@ module Aws::BedrockAgent
661
678
  GetKnowledgeBaseResponse.add_member(:knowledge_base, Shapes::ShapeRef.new(shape: KnowledgeBase, required: true, location_name: "knowledgeBase"))
662
679
  GetKnowledgeBaseResponse.struct_class = Types::GetKnowledgeBaseResponse
663
680
 
681
+ GuardrailConfiguration.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, location_name: "guardrailIdentifier"))
682
+ GuardrailConfiguration.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, location_name: "guardrailVersion"))
683
+ GuardrailConfiguration.struct_class = Types::GuardrailConfiguration
684
+
664
685
  InferenceConfiguration.add_member(:maximum_length, Shapes::ShapeRef.new(shape: MaximumLength, location_name: "maximumLength"))
665
686
  InferenceConfiguration.add_member(:stop_sequences, Shapes::ShapeRef.new(shape: StopSequences, location_name: "stopSequences"))
666
687
  InferenceConfiguration.add_member(:temperature, Shapes::ShapeRef.new(shape: Temperature, location_name: "temperature"))
@@ -1014,6 +1035,7 @@ module Aws::BedrockAgent
1014
1035
  UpdateAgentRequest.add_member(:customer_encryption_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "customerEncryptionKeyArn"))
1015
1036
  UpdateAgentRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
1016
1037
  UpdateAgentRequest.add_member(:foundation_model, Shapes::ShapeRef.new(shape: ModelIdentifier, required: true, location_name: "foundationModel"))
1038
+ UpdateAgentRequest.add_member(:guardrail_configuration, Shapes::ShapeRef.new(shape: GuardrailConfiguration, location_name: "guardrailConfiguration"))
1017
1039
  UpdateAgentRequest.add_member(:idle_session_ttl_in_seconds, Shapes::ShapeRef.new(shape: SessionTTL, location_name: "idleSessionTTLInSeconds"))
1018
1040
  UpdateAgentRequest.add_member(:instruction, Shapes::ShapeRef.new(shape: Instruction, location_name: "instruction"))
1019
1041
  UpdateAgentRequest.add_member(:prompt_override_configuration, Shapes::ShapeRef.new(shape: PromptOverrideConfiguration, location_name: "promptOverrideConfiguration"))
@@ -1060,6 +1082,7 @@ module Aws::BedrockAgent
1060
1082
  VectorIngestionConfiguration.struct_class = Types::VectorIngestionConfiguration
1061
1083
 
1062
1084
  VectorKnowledgeBaseConfiguration.add_member(:embedding_model_arn, Shapes::ShapeRef.new(shape: BedrockEmbeddingModelArn, required: true, location_name: "embeddingModelArn"))
1085
+ VectorKnowledgeBaseConfiguration.add_member(:embedding_model_configuration, Shapes::ShapeRef.new(shape: EmbeddingModelConfiguration, location_name: "embeddingModelConfiguration"))
1063
1086
  VectorKnowledgeBaseConfiguration.struct_class = Types::VectorKnowledgeBaseConfiguration
1064
1087
 
1065
1088
 
@@ -218,6 +218,10 @@ module Aws::BedrockAgent
218
218
  # The foundation model used for orchestration by the agent.
219
219
  # @return [String]
220
220
  #
221
+ # @!attribute [rw] guardrail_configuration
222
+ # The guardrails configuration assigned to the agent.
223
+ # @return [Types::GuardrailConfiguration]
224
+ #
221
225
  # @!attribute [rw] idle_session_ttl_in_seconds
222
226
  # The number of seconds for which Amazon Bedrock keeps information
223
227
  # about a user's conversation with the agent.
@@ -270,6 +274,7 @@ module Aws::BedrockAgent
270
274
  :description,
271
275
  :failure_reasons,
272
276
  :foundation_model,
277
+ :guardrail_configuration,
273
278
  :idle_session_ttl_in_seconds,
274
279
  :instruction,
275
280
  :prepared_at,
@@ -683,6 +688,10 @@ module Aws::BedrockAgent
683
688
  # The description of the agent.
684
689
  # @return [String]
685
690
  #
691
+ # @!attribute [rw] guardrail_configuration
692
+ # The details of the guardrails configuration in the agent summary.
693
+ # @return [Types::GuardrailConfiguration]
694
+ #
686
695
  # @!attribute [rw] latest_agent_version
687
696
  # The latest version of the agent.
688
697
  # @return [String]
@@ -698,6 +707,7 @@ module Aws::BedrockAgent
698
707
  :agent_name,
699
708
  :agent_status,
700
709
  :description,
710
+ :guardrail_configuration,
701
711
  :latest_agent_version,
702
712
  :updated_at)
703
713
  SENSITIVE = []
@@ -749,6 +759,10 @@ module Aws::BedrockAgent
749
759
  # The foundation model that the version invokes.
750
760
  # @return [String]
751
761
  #
762
+ # @!attribute [rw] guardrail_configuration
763
+ # The guardrails configuration assigned to the agent version.
764
+ # @return [Types::GuardrailConfiguration]
765
+ #
752
766
  # @!attribute [rw] idle_session_ttl_in_seconds
753
767
  # The number of seconds for which Amazon Bedrock keeps information
754
768
  # about a user's conversation with the agent.
@@ -798,6 +812,7 @@ module Aws::BedrockAgent
798
812
  :description,
799
813
  :failure_reasons,
800
814
  :foundation_model,
815
+ :guardrail_configuration,
801
816
  :idle_session_ttl_in_seconds,
802
817
  :instruction,
803
818
  :prompt_override_configuration,
@@ -830,6 +845,11 @@ module Aws::BedrockAgent
830
845
  # The description of the version of the agent.
831
846
  # @return [String]
832
847
  #
848
+ # @!attribute [rw] guardrail_configuration
849
+ # The details of the guardrails configuration in the agent version
850
+ # summary.
851
+ # @return [Types::GuardrailConfiguration]
852
+ #
833
853
  # @!attribute [rw] updated_at
834
854
  # The time at which the version was last updated.
835
855
  # @return [Time]
@@ -842,6 +862,7 @@ module Aws::BedrockAgent
842
862
  :agent_version,
843
863
  :created_at,
844
864
  :description,
865
+ :guardrail_configuration,
845
866
  :updated_at)
846
867
  SENSITIVE = []
847
868
  include Aws::Structure
@@ -900,6 +921,21 @@ module Aws::BedrockAgent
900
921
  include Aws::Structure
901
922
  end
902
923
 
924
+ # The vector configuration details for the Bedrock embeddings model.
925
+ #
926
+ # @!attribute [rw] dimensions
927
+ # The dimensions details for the vector configuration used on the
928
+ # Bedrock embeddings model.
929
+ # @return [Integer]
930
+ #
931
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/BedrockEmbeddingModelConfiguration AWS API Documentation
932
+ #
933
+ class BedrockEmbeddingModelConfiguration < Struct.new(
934
+ :dimensions)
935
+ SENSITIVE = []
936
+ include Aws::Structure
937
+ end
938
+
903
939
  # Details about how to chunk the documents in the data source. A *chunk*
904
940
  # refers to an excerpt from a data source that is returned when the
905
941
  # knowledge base that it belongs to is queried.
@@ -1153,6 +1189,11 @@ module Aws::BedrockAgent
1153
1189
  # create.
1154
1190
  # @return [String]
1155
1191
  #
1192
+ # @!attribute [rw] guardrail_configuration
1193
+ # The unique Guardrail configuration assigned to the agent when it is
1194
+ # created.
1195
+ # @return [Types::GuardrailConfiguration]
1196
+ #
1156
1197
  # @!attribute [rw] idle_session_ttl_in_seconds
1157
1198
  # The number of seconds for which Amazon Bedrock keeps information
1158
1199
  # about a user's conversation with the agent.
@@ -1189,6 +1230,7 @@ module Aws::BedrockAgent
1189
1230
  :customer_encryption_key_arn,
1190
1231
  :description,
1191
1232
  :foundation_model,
1233
+ :guardrail_configuration,
1192
1234
  :idle_session_ttl_in_seconds,
1193
1235
  :instruction,
1194
1236
  :prompt_override_configuration,
@@ -1739,6 +1781,20 @@ module Aws::BedrockAgent
1739
1781
  #
1740
1782
  class DisassociateAgentKnowledgeBaseResponse < Aws::EmptyStructure; end
1741
1783
 
1784
+ # The configuration details for the embeddings model.
1785
+ #
1786
+ # @!attribute [rw] bedrock_embedding_model_configuration
1787
+ # The vector configuration details on the Bedrock embeddings model.
1788
+ # @return [Types::BedrockEmbeddingModelConfiguration]
1789
+ #
1790
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/EmbeddingModelConfiguration AWS API Documentation
1791
+ #
1792
+ class EmbeddingModelConfiguration < Struct.new(
1793
+ :bedrock_embedding_model_configuration)
1794
+ SENSITIVE = []
1795
+ include Aws::Structure
1796
+ end
1797
+
1742
1798
  # Configurations for when you choose fixed-size chunking. If you set the
1743
1799
  # `chunkingStrategy` as `NONE`, exclude this field.
1744
1800
  #
@@ -2095,6 +2151,25 @@ module Aws::BedrockAgent
2095
2151
  include Aws::Structure
2096
2152
  end
2097
2153
 
2154
+ # The details of the guardrails configuration.
2155
+ #
2156
+ # @!attribute [rw] guardrail_identifier
2157
+ # The guardrails identifier assigned to the guardrails configuration.
2158
+ # @return [String]
2159
+ #
2160
+ # @!attribute [rw] guardrail_version
2161
+ # The guardrails version assigned to the guardrails configuration.
2162
+ # @return [String]
2163
+ #
2164
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/GuardrailConfiguration AWS API Documentation
2165
+ #
2166
+ class GuardrailConfiguration < Struct.new(
2167
+ :guardrail_identifier,
2168
+ :guardrail_version)
2169
+ SENSITIVE = []
2170
+ include Aws::Structure
2171
+ end
2172
+
2098
2173
  # Contains inference parameters to use when the agent invokes a
2099
2174
  # foundation model in the part of the agent sequence defined by the
2100
2175
  # `promptType`. For more information, see [Inference parameters for
@@ -3246,11 +3321,13 @@ module Aws::BedrockAgent
3246
3321
  # Defines the prompt template with which to replace the default prompt
3247
3322
  # template. You can use placeholder variables in the base prompt
3248
3323
  # template to customize the prompt. For more information, see [Prompt
3249
- # template placeholder variables][1].
3324
+ # template placeholder variables][1]. For more information, see
3325
+ # [Configure the prompt templates][2].
3250
3326
  #
3251
3327
  #
3252
3328
  #
3253
3329
  # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-placeholders.html
3330
+ # [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts-configure.html
3254
3331
  # @return [String]
3255
3332
  #
3256
3333
  # @!attribute [rw] inference_configuration
@@ -3328,7 +3405,13 @@ module Aws::BedrockAgent
3328
3405
  # The ARN of the Lambda function to use when parsing the raw
3329
3406
  # foundation model output in parts of the agent sequence. If you
3330
3407
  # specify this field, at least one of the `promptConfigurations` must
3331
- # contain a `parserMode` value that is set to `OVERRIDDEN`.
3408
+ # contain a `parserMode` value that is set to `OVERRIDDEN`. For more
3409
+ # information, see [Parser Lambda function in Agents for Amazon
3410
+ # Bedrock][1].
3411
+ #
3412
+ #
3413
+ #
3414
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/lambda-parser.html
3332
3415
  # @return [String]
3333
3416
  #
3334
3417
  # @!attribute [rw] prompt_configurations
@@ -3965,6 +4048,11 @@ module Aws::BedrockAgent
3965
4048
  # agent.
3966
4049
  # @return [String]
3967
4050
  #
4051
+ # @!attribute [rw] guardrail_configuration
4052
+ # The unique Guardrail configuration assigned to the agent when it is
4053
+ # updated.
4054
+ # @return [Types::GuardrailConfiguration]
4055
+ #
3968
4056
  # @!attribute [rw] idle_session_ttl_in_seconds
3969
4057
  # The number of seconds for which Amazon Bedrock keeps information
3970
4058
  # about a user's conversation with the agent.
@@ -3997,6 +4085,7 @@ module Aws::BedrockAgent
3997
4085
  :customer_encryption_key_arn,
3998
4086
  :description,
3999
4087
  :foundation_model,
4088
+ :guardrail_configuration,
4000
4089
  :idle_session_ttl_in_seconds,
4001
4090
  :instruction,
4002
4091
  :prompt_override_configuration)
@@ -4195,10 +4284,16 @@ module Aws::BedrockAgent
4195
4284
  # embeddings for the knowledge base.
4196
4285
  # @return [String]
4197
4286
  #
4287
+ # @!attribute [rw] embedding_model_configuration
4288
+ # The embeddings model configuration details for the vector model used
4289
+ # in Knowledge Base.
4290
+ # @return [Types::EmbeddingModelConfiguration]
4291
+ #
4198
4292
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/VectorKnowledgeBaseConfiguration AWS API Documentation
4199
4293
  #
4200
4294
  class VectorKnowledgeBaseConfiguration < Struct.new(
4201
- :embedding_model_arn)
4295
+ :embedding_model_arn,
4296
+ :embedding_model_configuration)
4202
4297
  SENSITIVE = []
4203
4298
  include Aws::Structure
4204
4299
  end
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-bedrockagent/customizations'
52
52
  # @!group service
53
53
  module Aws::BedrockAgent
54
54
 
55
- GEM_VERSION = '1.11.0'
55
+ GEM_VERSION = '1.13.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -98,6 +98,10 @@ module Aws
98
98
  ?customer_encryption_key_arn: ::String,
99
99
  ?description: ::String,
100
100
  ?foundation_model: ::String,
101
+ ?guardrail_configuration: {
102
+ guardrail_identifier: ::String?,
103
+ guardrail_version: ::String?
104
+ },
101
105
  ?idle_session_ttl_in_seconds: ::Integer,
102
106
  ?instruction: ::String,
103
107
  ?prompt_override_configuration: {
@@ -228,7 +232,12 @@ module Aws
228
232
  knowledge_base_configuration: {
229
233
  type: ("VECTOR"),
230
234
  vector_knowledge_base_configuration: {
231
- embedding_model_arn: ::String
235
+ embedding_model_arn: ::String,
236
+ embedding_model_configuration: {
237
+ bedrock_embedding_model_configuration: {
238
+ dimensions: ::Integer?
239
+ }?
240
+ }?
232
241
  }?
233
242
  },
234
243
  name: ::String,
@@ -652,6 +661,10 @@ module Aws
652
661
  ?customer_encryption_key_arn: ::String,
653
662
  ?description: ::String,
654
663
  foundation_model: ::String,
664
+ ?guardrail_configuration: {
665
+ guardrail_identifier: ::String?,
666
+ guardrail_version: ::String?
667
+ },
655
668
  ?idle_session_ttl_in_seconds: ::Integer,
656
669
  ?instruction: ::String,
657
670
  ?prompt_override_configuration: {
@@ -793,7 +806,12 @@ module Aws
793
806
  knowledge_base_configuration: {
794
807
  type: ("VECTOR"),
795
808
  vector_knowledge_base_configuration: {
796
- embedding_model_arn: ::String
809
+ embedding_model_arn: ::String,
810
+ embedding_model_configuration: {
811
+ bedrock_embedding_model_configuration: {
812
+ dimensions: ::Integer?
813
+ }?
814
+ }?
797
815
  }?
798
816
  },
799
817
  knowledge_base_id: ::String,
data/sig/types.rbs CHANGED
@@ -63,6 +63,7 @@ module Aws::BedrockAgent
63
63
  attr_accessor description: ::String
64
64
  attr_accessor failure_reasons: ::Array[::String]
65
65
  attr_accessor foundation_model: ::String
66
+ attr_accessor guardrail_configuration: Types::GuardrailConfiguration
66
67
  attr_accessor idle_session_ttl_in_seconds: ::Integer
67
68
  attr_accessor instruction: ::String
68
69
  attr_accessor prepared_at: ::Time
@@ -153,6 +154,7 @@ module Aws::BedrockAgent
153
154
  attr_accessor agent_name: ::String
154
155
  attr_accessor agent_status: ("CREATING" | "PREPARING" | "PREPARED" | "NOT_PREPARED" | "DELETING" | "FAILED" | "VERSIONING" | "UPDATING")
155
156
  attr_accessor description: ::String
157
+ attr_accessor guardrail_configuration: Types::GuardrailConfiguration
156
158
  attr_accessor latest_agent_version: ::String
157
159
  attr_accessor updated_at: ::Time
158
160
  SENSITIVE: []
@@ -169,6 +171,7 @@ module Aws::BedrockAgent
169
171
  attr_accessor description: ::String
170
172
  attr_accessor failure_reasons: ::Array[::String]
171
173
  attr_accessor foundation_model: ::String
174
+ attr_accessor guardrail_configuration: Types::GuardrailConfiguration
172
175
  attr_accessor idle_session_ttl_in_seconds: ::Integer
173
176
  attr_accessor instruction: ::String
174
177
  attr_accessor prompt_override_configuration: Types::PromptOverrideConfiguration
@@ -184,6 +187,7 @@ module Aws::BedrockAgent
184
187
  attr_accessor agent_version: ::String
185
188
  attr_accessor created_at: ::Time
186
189
  attr_accessor description: ::String
190
+ attr_accessor guardrail_configuration: Types::GuardrailConfiguration
187
191
  attr_accessor updated_at: ::Time
188
192
  SENSITIVE: []
189
193
  end
@@ -202,6 +206,11 @@ module Aws::BedrockAgent
202
206
  SENSITIVE: []
203
207
  end
204
208
 
209
+ class BedrockEmbeddingModelConfiguration
210
+ attr_accessor dimensions: ::Integer
211
+ SENSITIVE: []
212
+ end
213
+
205
214
  class ChunkingConfiguration
206
215
  attr_accessor chunking_strategy: ("FIXED_SIZE" | "NONE")
207
216
  attr_accessor fixed_size_chunking_configuration: Types::FixedSizeChunkingConfiguration
@@ -254,6 +263,7 @@ module Aws::BedrockAgent
254
263
  attr_accessor customer_encryption_key_arn: ::String
255
264
  attr_accessor description: ::String
256
265
  attr_accessor foundation_model: ::String
266
+ attr_accessor guardrail_configuration: Types::GuardrailConfiguration
257
267
  attr_accessor idle_session_ttl_in_seconds: ::Integer
258
268
  attr_accessor instruction: ::String
259
269
  attr_accessor prompt_override_configuration: Types::PromptOverrideConfiguration
@@ -415,6 +425,11 @@ module Aws::BedrockAgent
415
425
  class DisassociateAgentKnowledgeBaseResponse < Aws::EmptyStructure
416
426
  end
417
427
 
428
+ class EmbeddingModelConfiguration
429
+ attr_accessor bedrock_embedding_model_configuration: Types::BedrockEmbeddingModelConfiguration
430
+ SENSITIVE: []
431
+ end
432
+
418
433
  class FixedSizeChunkingConfiguration
419
434
  attr_accessor max_tokens: ::Integer
420
435
  attr_accessor overlap_percentage: ::Integer
@@ -528,6 +543,12 @@ module Aws::BedrockAgent
528
543
  SENSITIVE: []
529
544
  end
530
545
 
546
+ class GuardrailConfiguration
547
+ attr_accessor guardrail_identifier: ::String
548
+ attr_accessor guardrail_version: ::String
549
+ SENSITIVE: []
550
+ end
551
+
531
552
  class InferenceConfiguration
532
553
  attr_accessor maximum_length: ::Integer
533
554
  attr_accessor stop_sequences: ::Array[::String]
@@ -980,6 +1001,7 @@ module Aws::BedrockAgent
980
1001
  attr_accessor customer_encryption_key_arn: ::String
981
1002
  attr_accessor description: ::String
982
1003
  attr_accessor foundation_model: ::String
1004
+ attr_accessor guardrail_configuration: Types::GuardrailConfiguration
983
1005
  attr_accessor idle_session_ttl_in_seconds: ::Integer
984
1006
  attr_accessor instruction: ::String
985
1007
  attr_accessor prompt_override_configuration: Types::PromptOverrideConfiguration
@@ -1042,6 +1064,7 @@ module Aws::BedrockAgent
1042
1064
 
1043
1065
  class VectorKnowledgeBaseConfiguration
1044
1066
  attr_accessor embedding_model_arn: ::String
1067
+ attr_accessor embedding_model_configuration: Types::EmbeddingModelConfiguration
1045
1068
  SENSITIVE: []
1046
1069
  end
1047
1070
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrockagent
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-13 00:00:00.000000000 Z
11
+ date: 2024-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core