aws-sdk-bedrockagentruntime 1.47.0 → 1.48.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5914c85090d987c51521f6d727a37c8d6db00f811d0bedcc68560ac07a998ec5
4
- data.tar.gz: 6c7a42818271429d5dd41a6403c10040387369a233651d7b4f659507693b0fce
3
+ metadata.gz: 336605a3f23d96434ec9edcc3d5c0a291374d13facae78dd6cc72605a07edf6e
4
+ data.tar.gz: 4a310eb4b03a60a2cd01d8d0ee0bfc6704a07a61efd28f1f259d7848d471e9b9
5
5
  SHA512:
6
- metadata.gz: 36f40e816903d913769a23b6c11b29b070b35a7acc852a422e730ee54d7c9e945ab2b4bf9ad16536b88136f11cf817cff512e996e354fdc563922e21ce9097d6
7
- data.tar.gz: 759945468316f83274d83ddec9c886f5b7082d782673a269dc8238874f97b5b6dc21818521a0c958ffe3e7a139035e70fcf2f1ddd3ee825039769e5d996be21c
6
+ metadata.gz: b5554956655b3d2f2a2aea350bd5da2a43387380a92bcad2939092cabd0401232d91c4044fff70a36800abcb45cad6a204db88de8930d014ed71d9e2a20f3135
7
+ data.tar.gz: 54238b980590078e10a62b8dc32cb5eeceaae34a0391eb128434f6fa9b927292f76a7905e83f7548f09858f55053389a04ca53af7e59725e21838f73ccf79d78
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.48.0 (2025-03-07)
5
+ ------------------
6
+
7
+ * Feature - Support Multi Agent Collaboration within Inline Agents
8
+
4
9
  1.47.0 (2025-02-27)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.47.0
1
+ 1.48.0
@@ -1586,6 +1586,7 @@ module Aws::BedrockAgentRuntime
1586
1586
  # event.caller_chain #=> Array
1587
1587
  # event.caller_chain[0].agent_alias_arn #=> String
1588
1588
  # event.collaborator_name #=> String
1589
+ # event.event_time #=> Time
1589
1590
  # event.session_id #=> String
1590
1591
  # event.trace.custom_orchestration_trace.event.text #=> String
1591
1592
  # event.trace.custom_orchestration_trace.trace_id #=> String
@@ -2348,9 +2349,25 @@ module Aws::BedrockAgentRuntime
2348
2349
  # A list of action groups with each action group defining the action the
2349
2350
  # inline agent needs to carry out.
2350
2351
  #
2352
+ # @option params [String] :agent_collaboration
2353
+ # Defines how the inline collaborator agent handles information across
2354
+ # multiple collaborator agents to coordinate a final response. The
2355
+ # inline collaborator agent can also be the supervisor.
2356
+ #
2351
2357
  # @option params [Types::InlineBedrockModelConfigurations] :bedrock_model_configurations
2352
2358
  # Model settings for the request.
2353
2359
  #
2360
+ # @option params [Array<Types::CollaboratorConfiguration>] :collaborator_configurations
2361
+ # Settings for an inline agent collaborator called with
2362
+ # [InvokeInlineAgent][1].
2363
+ #
2364
+ #
2365
+ #
2366
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeInlineAgent.html
2367
+ #
2368
+ # @option params [Array<Types::Collaborator>] :collaborators
2369
+ # List of collaborator inline agents.
2370
+ #
2354
2371
  # @option params [String] :customer_encryption_key_arn
2355
2372
  # The Amazon Resource Name (ARN) of the Amazon Web Services KMS key to
2356
2373
  # use to encrypt your inline agent.
@@ -2671,11 +2688,215 @@ module Aws::BedrockAgentRuntime
2671
2688
  # parent_action_group_signature: "AMAZON.UserInput", # accepts AMAZON.UserInput, AMAZON.CodeInterpreter
2672
2689
  # },
2673
2690
  # ],
2691
+ # agent_collaboration: "SUPERVISOR", # accepts SUPERVISOR, SUPERVISOR_ROUTER, DISABLED
2674
2692
  # bedrock_model_configurations: {
2675
2693
  # performance_config: {
2676
2694
  # latency: "standard", # accepts standard, optimized
2677
2695
  # },
2678
2696
  # },
2697
+ # collaborator_configurations: [
2698
+ # {
2699
+ # agent_alias_arn: "AgentAliasArn",
2700
+ # collaborator_instruction: "CollaborationInstruction", # required
2701
+ # collaborator_name: "Name", # required
2702
+ # relay_conversation_history: "TO_COLLABORATOR", # accepts TO_COLLABORATOR, DISABLED
2703
+ # },
2704
+ # ],
2705
+ # collaborators: [
2706
+ # {
2707
+ # action_groups: [
2708
+ # {
2709
+ # action_group_executor: {
2710
+ # custom_control: "RETURN_CONTROL", # accepts RETURN_CONTROL
2711
+ # lambda: "LambdaResourceArn",
2712
+ # },
2713
+ # action_group_name: "ResourceName", # required
2714
+ # api_schema: {
2715
+ # payload: "Payload",
2716
+ # s3: {
2717
+ # s3_bucket_name: "S3BucketName",
2718
+ # s3_object_key: "S3ObjectKey",
2719
+ # },
2720
+ # },
2721
+ # description: "ResourceDescription",
2722
+ # function_schema: {
2723
+ # functions: [
2724
+ # {
2725
+ # description: "FunctionDescription",
2726
+ # name: "ResourceName", # required
2727
+ # parameters: {
2728
+ # "ParameterName" => {
2729
+ # description: "ParameterDescription",
2730
+ # required: false,
2731
+ # type: "string", # required, accepts string, number, integer, boolean, array
2732
+ # },
2733
+ # },
2734
+ # require_confirmation: "ENABLED", # accepts ENABLED, DISABLED
2735
+ # },
2736
+ # ],
2737
+ # },
2738
+ # parent_action_group_signature: "AMAZON.UserInput", # accepts AMAZON.UserInput, AMAZON.CodeInterpreter
2739
+ # },
2740
+ # ],
2741
+ # agent_collaboration: "SUPERVISOR", # accepts SUPERVISOR, SUPERVISOR_ROUTER, DISABLED
2742
+ # agent_name: "Name",
2743
+ # collaborator_configurations: [
2744
+ # {
2745
+ # agent_alias_arn: "AgentAliasArn",
2746
+ # collaborator_instruction: "CollaborationInstruction", # required
2747
+ # collaborator_name: "Name", # required
2748
+ # relay_conversation_history: "TO_COLLABORATOR", # accepts TO_COLLABORATOR, DISABLED
2749
+ # },
2750
+ # ],
2751
+ # customer_encryption_key_arn: "KmsKeyArn",
2752
+ # foundation_model: "ModelIdentifier", # required
2753
+ # guardrail_configuration: {
2754
+ # guardrail_identifier: "GuardrailIdentifierWithArn", # required
2755
+ # guardrail_version: "GuardrailVersion", # required
2756
+ # },
2757
+ # idle_session_ttl_in_seconds: 1,
2758
+ # instruction: "Instruction", # required
2759
+ # knowledge_bases: [
2760
+ # {
2761
+ # description: "ResourceDescription", # required
2762
+ # knowledge_base_id: "KnowledgeBaseId", # required
2763
+ # retrieval_configuration: {
2764
+ # vector_search_configuration: { # required
2765
+ # filter: {
2766
+ # and_all: [
2767
+ # {
2768
+ # # recursive RetrievalFilter
2769
+ # },
2770
+ # ],
2771
+ # equals: {
2772
+ # key: "FilterKey", # required
2773
+ # value: { # required
2774
+ # },
2775
+ # },
2776
+ # greater_than: {
2777
+ # key: "FilterKey", # required
2778
+ # value: { # required
2779
+ # },
2780
+ # },
2781
+ # greater_than_or_equals: {
2782
+ # key: "FilterKey", # required
2783
+ # value: { # required
2784
+ # },
2785
+ # },
2786
+ # in: {
2787
+ # key: "FilterKey", # required
2788
+ # value: { # required
2789
+ # },
2790
+ # },
2791
+ # less_than: {
2792
+ # key: "FilterKey", # required
2793
+ # value: { # required
2794
+ # },
2795
+ # },
2796
+ # less_than_or_equals: {
2797
+ # key: "FilterKey", # required
2798
+ # value: { # required
2799
+ # },
2800
+ # },
2801
+ # list_contains: {
2802
+ # key: "FilterKey", # required
2803
+ # value: { # required
2804
+ # },
2805
+ # },
2806
+ # not_equals: {
2807
+ # key: "FilterKey", # required
2808
+ # value: { # required
2809
+ # },
2810
+ # },
2811
+ # not_in: {
2812
+ # key: "FilterKey", # required
2813
+ # value: { # required
2814
+ # },
2815
+ # },
2816
+ # or_all: [
2817
+ # {
2818
+ # # recursive RetrievalFilter
2819
+ # },
2820
+ # ],
2821
+ # starts_with: {
2822
+ # key: "FilterKey", # required
2823
+ # value: { # required
2824
+ # },
2825
+ # },
2826
+ # string_contains: {
2827
+ # key: "FilterKey", # required
2828
+ # value: { # required
2829
+ # },
2830
+ # },
2831
+ # },
2832
+ # implicit_filter_configuration: {
2833
+ # metadata_attributes: [ # required
2834
+ # {
2835
+ # description: "MetadataAttributeSchemaDescriptionString", # required
2836
+ # key: "MetadataAttributeSchemaKeyString", # required
2837
+ # type: "STRING", # required, accepts STRING, NUMBER, BOOLEAN, STRING_LIST
2838
+ # },
2839
+ # ],
2840
+ # model_arn: "BedrockModelArn", # required
2841
+ # },
2842
+ # number_of_results: 1,
2843
+ # override_search_type: "HYBRID", # accepts HYBRID, SEMANTIC
2844
+ # reranking_configuration: {
2845
+ # bedrock_reranking_configuration: {
2846
+ # metadata_configuration: {
2847
+ # selection_mode: "SELECTIVE", # required, accepts SELECTIVE, ALL
2848
+ # selective_mode_configuration: {
2849
+ # fields_to_exclude: [
2850
+ # {
2851
+ # field_name: "FieldForRerankingFieldNameString", # required
2852
+ # },
2853
+ # ],
2854
+ # fields_to_include: [
2855
+ # {
2856
+ # field_name: "FieldForRerankingFieldNameString", # required
2857
+ # },
2858
+ # ],
2859
+ # },
2860
+ # },
2861
+ # model_configuration: { # required
2862
+ # additional_model_request_fields: {
2863
+ # "AdditionalModelRequestFieldsKey" => {
2864
+ # },
2865
+ # },
2866
+ # model_arn: "BedrockRerankingModelArn", # required
2867
+ # },
2868
+ # number_of_reranked_results: 1,
2869
+ # },
2870
+ # type: "BEDROCK_RERANKING_MODEL", # required, accepts BEDROCK_RERANKING_MODEL
2871
+ # },
2872
+ # },
2873
+ # },
2874
+ # },
2875
+ # ],
2876
+ # prompt_override_configuration: {
2877
+ # override_lambda: "LambdaResourceArn",
2878
+ # prompt_configurations: [ # required
2879
+ # {
2880
+ # additional_model_request_fields: {
2881
+ # },
2882
+ # base_prompt_template: "BasePromptTemplate",
2883
+ # foundation_model: "ModelIdentifier",
2884
+ # inference_configuration: {
2885
+ # maximum_length: 1,
2886
+ # stop_sequences: ["String"],
2887
+ # temperature: 1.0,
2888
+ # top_k: 1,
2889
+ # top_p: 1.0,
2890
+ # },
2891
+ # parser_mode: "DEFAULT", # accepts DEFAULT, OVERRIDDEN
2892
+ # prompt_creation_mode: "DEFAULT", # accepts DEFAULT, OVERRIDDEN
2893
+ # prompt_state: "ENABLED", # accepts ENABLED, DISABLED
2894
+ # prompt_type: "PRE_PROCESSING", # accepts PRE_PROCESSING, ORCHESTRATION, KNOWLEDGE_BASE_RESPONSE_GENERATION, POST_PROCESSING, ROUTING_CLASSIFIER
2895
+ # },
2896
+ # ],
2897
+ # },
2898
+ # },
2899
+ # ],
2679
2900
  # customer_encryption_key_arn: "KmsKeyArn",
2680
2901
  # enable_trace: false,
2681
2902
  # end_session: false,
@@ -2686,6 +2907,18 @@ module Aws::BedrockAgentRuntime
2686
2907
  # },
2687
2908
  # idle_session_ttl_in_seconds: 1,
2688
2909
  # inline_session_state: {
2910
+ # conversation_history: {
2911
+ # messages: [
2912
+ # {
2913
+ # content: [ # required
2914
+ # {
2915
+ # text: "String",
2916
+ # },
2917
+ # ],
2918
+ # role: "user", # required, accepts user, assistant
2919
+ # },
2920
+ # ],
2921
+ # },
2689
2922
  # files: [
2690
2923
  # {
2691
2924
  # name: "String", # required
@@ -2866,6 +3099,7 @@ module Aws::BedrockAgentRuntime
2866
3099
  # additional_model_request_fields: {
2867
3100
  # },
2868
3101
  # base_prompt_template: "BasePromptTemplate",
3102
+ # foundation_model: "ModelIdentifier",
2869
3103
  # inference_configuration: {
2870
3104
  # maximum_length: 1,
2871
3105
  # stop_sequences: ["String"],
@@ -5135,7 +5369,7 @@ module Aws::BedrockAgentRuntime
5135
5369
  tracer: tracer
5136
5370
  )
5137
5371
  context[:gem_name] = 'aws-sdk-bedrockagentruntime'
5138
- context[:gem_version] = '1.47.0'
5372
+ context[:gem_version] = '1.48.0'
5139
5373
  Seahorse::Client::Request.new(handlers, context)
5140
5374
  end
5141
5375
 
@@ -31,6 +31,7 @@ module Aws::BedrockAgentRuntime
31
31
  AgentActionGroups = Shapes::ListShape.new(name: 'AgentActionGroups')
32
32
  AgentAliasArn = Shapes::StringShape.new(name: 'AgentAliasArn')
33
33
  AgentAliasId = Shapes::StringShape.new(name: 'AgentAliasId')
34
+ AgentCollaboration = Shapes::StringShape.new(name: 'AgentCollaboration')
34
35
  AgentCollaboratorInputPayload = Shapes::StructureShape.new(name: 'AgentCollaboratorInputPayload')
35
36
  AgentCollaboratorInvocationInput = Shapes::StructureShape.new(name: 'AgentCollaboratorInvocationInput')
36
37
  AgentCollaboratorInvocationOutput = Shapes::StructureShape.new(name: 'AgentCollaboratorInvocationOutput')
@@ -71,6 +72,11 @@ module Aws::BedrockAgentRuntime
71
72
  Citations = Shapes::ListShape.new(name: 'Citations')
72
73
  CodeInterpreterInvocationInput = Shapes::StructureShape.new(name: 'CodeInterpreterInvocationInput')
73
74
  CodeInterpreterInvocationOutput = Shapes::StructureShape.new(name: 'CodeInterpreterInvocationOutput')
75
+ CollaborationInstruction = Shapes::StringShape.new(name: 'CollaborationInstruction')
76
+ Collaborator = Shapes::StructureShape.new(name: 'Collaborator')
77
+ CollaboratorConfiguration = Shapes::StructureShape.new(name: 'CollaboratorConfiguration')
78
+ CollaboratorConfigurations = Shapes::ListShape.new(name: 'CollaboratorConfigurations')
79
+ Collaborators = Shapes::ListShape.new(name: 'Collaborators')
74
80
  ConfirmationState = Shapes::StringShape.new(name: 'ConfirmationState')
75
81
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
76
82
  ContentBlock = Shapes::UnionShape.new(name: 'ContentBlock')
@@ -360,6 +366,7 @@ module Aws::BedrockAgentRuntime
360
366
  RawResponse = Shapes::StructureShape.new(name: 'RawResponse')
361
367
  ReasoningContentBlock = Shapes::UnionShape.new(name: 'ReasoningContentBlock')
362
368
  ReasoningTextBlock = Shapes::StructureShape.new(name: 'ReasoningTextBlock')
369
+ RelayConversationHistory = Shapes::StringShape.new(name: 'RelayConversationHistory')
363
370
  RepromptResponse = Shapes::StructureShape.new(name: 'RepromptResponse')
364
371
  RequestBody = Shapes::StructureShape.new(name: 'RequestBody')
365
372
  RequireConfirmation = Shapes::StringShape.new(name: 'RequireConfirmation')
@@ -459,6 +466,7 @@ module Aws::BedrockAgentRuntime
459
466
  StreamingConfigurationsApplyGuardrailIntervalInteger = Shapes::IntegerShape.new(name: 'StreamingConfigurationsApplyGuardrailIntervalInteger')
460
467
  String = Shapes::StringShape.new(name: 'String')
461
468
  SummaryText = Shapes::StringShape.new(name: 'SummaryText')
469
+ SyntheticTimestamp_date_time = Shapes::TimestampShape.new(name: 'SyntheticTimestamp_date_time', timestampFormat: "iso8601")
462
470
  TagKey = Shapes::StringShape.new(name: 'TagKey')
463
471
  TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
464
472
  TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
@@ -665,6 +673,29 @@ module Aws::BedrockAgentRuntime
665
673
  CodeInterpreterInvocationOutput.add_member(:files, Shapes::ShapeRef.new(shape: Files, location_name: "files"))
666
674
  CodeInterpreterInvocationOutput.struct_class = Types::CodeInterpreterInvocationOutput
667
675
 
676
+ Collaborator.add_member(:action_groups, Shapes::ShapeRef.new(shape: AgentActionGroups, location_name: "actionGroups"))
677
+ Collaborator.add_member(:agent_collaboration, Shapes::ShapeRef.new(shape: AgentCollaboration, location_name: "agentCollaboration"))
678
+ Collaborator.add_member(:agent_name, Shapes::ShapeRef.new(shape: Name, location_name: "agentName"))
679
+ Collaborator.add_member(:collaborator_configurations, Shapes::ShapeRef.new(shape: CollaboratorConfigurations, location_name: "collaboratorConfigurations"))
680
+ Collaborator.add_member(:customer_encryption_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "customerEncryptionKeyArn"))
681
+ Collaborator.add_member(:foundation_model, Shapes::ShapeRef.new(shape: ModelIdentifier, required: true, location_name: "foundationModel"))
682
+ Collaborator.add_member(:guardrail_configuration, Shapes::ShapeRef.new(shape: GuardrailConfigurationWithArn, location_name: "guardrailConfiguration"))
683
+ Collaborator.add_member(:idle_session_ttl_in_seconds, Shapes::ShapeRef.new(shape: SessionTTL, location_name: "idleSessionTTLInSeconds"))
684
+ Collaborator.add_member(:instruction, Shapes::ShapeRef.new(shape: Instruction, required: true, location_name: "instruction"))
685
+ Collaborator.add_member(:knowledge_bases, Shapes::ShapeRef.new(shape: KnowledgeBases, location_name: "knowledgeBases"))
686
+ Collaborator.add_member(:prompt_override_configuration, Shapes::ShapeRef.new(shape: PromptOverrideConfiguration, location_name: "promptOverrideConfiguration"))
687
+ Collaborator.struct_class = Types::Collaborator
688
+
689
+ CollaboratorConfiguration.add_member(:agent_alias_arn, Shapes::ShapeRef.new(shape: AgentAliasArn, location_name: "agentAliasArn"))
690
+ CollaboratorConfiguration.add_member(:collaborator_instruction, Shapes::ShapeRef.new(shape: CollaborationInstruction, required: true, location_name: "collaboratorInstruction"))
691
+ CollaboratorConfiguration.add_member(:collaborator_name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "collaboratorName"))
692
+ CollaboratorConfiguration.add_member(:relay_conversation_history, Shapes::ShapeRef.new(shape: RelayConversationHistory, location_name: "relayConversationHistory"))
693
+ CollaboratorConfiguration.struct_class = Types::CollaboratorConfiguration
694
+
695
+ CollaboratorConfigurations.member = Shapes::ShapeRef.new(shape: CollaboratorConfiguration)
696
+
697
+ Collaborators.member = Shapes::ShapeRef.new(shape: Collaborator)
698
+
668
699
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
669
700
  ConflictException.struct_class = Types::ConflictException
670
701
 
@@ -1126,6 +1157,7 @@ module Aws::BedrockAgentRuntime
1126
1157
  InlineBedrockModelConfigurations.add_member(:performance_config, Shapes::ShapeRef.new(shape: PerformanceConfiguration, location_name: "performanceConfig"))
1127
1158
  InlineBedrockModelConfigurations.struct_class = Types::InlineBedrockModelConfigurations
1128
1159
 
1160
+ InlineSessionState.add_member(:conversation_history, Shapes::ShapeRef.new(shape: ConversationHistory, location_name: "conversationHistory"))
1129
1161
  InlineSessionState.add_member(:files, Shapes::ShapeRef.new(shape: InputFiles, location_name: "files"))
1130
1162
  InlineSessionState.add_member(:invocation_id, Shapes::ShapeRef.new(shape: String, location_name: "invocationId"))
1131
1163
  InlineSessionState.add_member(:prompt_session_attributes, Shapes::ShapeRef.new(shape: PromptSessionAttributesMap, location_name: "promptSessionAttributes"))
@@ -1240,7 +1272,10 @@ module Aws::BedrockAgentRuntime
1240
1272
  InvokeFlowResponse[:payload_member] = InvokeFlowResponse.member(:response_stream)
1241
1273
 
1242
1274
  InvokeInlineAgentRequest.add_member(:action_groups, Shapes::ShapeRef.new(shape: AgentActionGroups, location_name: "actionGroups"))
1275
+ InvokeInlineAgentRequest.add_member(:agent_collaboration, Shapes::ShapeRef.new(shape: AgentCollaboration, location_name: "agentCollaboration"))
1243
1276
  InvokeInlineAgentRequest.add_member(:bedrock_model_configurations, Shapes::ShapeRef.new(shape: InlineBedrockModelConfigurations, location_name: "bedrockModelConfigurations"))
1277
+ InvokeInlineAgentRequest.add_member(:collaborator_configurations, Shapes::ShapeRef.new(shape: CollaboratorConfigurations, location_name: "collaboratorConfigurations"))
1278
+ InvokeInlineAgentRequest.add_member(:collaborators, Shapes::ShapeRef.new(shape: Collaborators, location_name: "collaborators"))
1244
1279
  InvokeInlineAgentRequest.add_member(:customer_encryption_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "customerEncryptionKeyArn"))
1245
1280
  InvokeInlineAgentRequest.add_member(:enable_trace, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableTrace"))
1246
1281
  InvokeInlineAgentRequest.add_member(:end_session, Shapes::ShapeRef.new(shape: Boolean, location_name: "endSession"))
@@ -1530,6 +1565,7 @@ module Aws::BedrockAgentRuntime
1530
1565
 
1531
1566
  PromptConfiguration.add_member(:additional_model_request_fields, Shapes::ShapeRef.new(shape: Document, location_name: "additionalModelRequestFields"))
1532
1567
  PromptConfiguration.add_member(:base_prompt_template, Shapes::ShapeRef.new(shape: BasePromptTemplate, location_name: "basePromptTemplate"))
1568
+ PromptConfiguration.add_member(:foundation_model, Shapes::ShapeRef.new(shape: ModelIdentifier, location_name: "foundationModel"))
1533
1569
  PromptConfiguration.add_member(:inference_configuration, Shapes::ShapeRef.new(shape: InferenceConfiguration, location_name: "inferenceConfiguration"))
1534
1570
  PromptConfiguration.add_member(:parser_mode, Shapes::ShapeRef.new(shape: CreationMode, location_name: "parserMode"))
1535
1571
  PromptConfiguration.add_member(:prompt_creation_mode, Shapes::ShapeRef.new(shape: CreationMode, location_name: "promptCreationMode"))
@@ -1959,6 +1995,7 @@ module Aws::BedrockAgentRuntime
1959
1995
  TracePart.add_member(:agent_version, Shapes::ShapeRef.new(shape: AgentVersion, location_name: "agentVersion"))
1960
1996
  TracePart.add_member(:caller_chain, Shapes::ShapeRef.new(shape: CallerChain, location_name: "callerChain"))
1961
1997
  TracePart.add_member(:collaborator_name, Shapes::ShapeRef.new(shape: Name, location_name: "collaboratorName"))
1998
+ TracePart.add_member(:event_time, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location_name: "eventTime"))
1962
1999
  TracePart.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location_name: "sessionId"))
1963
2000
  TracePart.add_member(:trace, Shapes::ShapeRef.new(shape: Trace, location_name: "trace"))
1964
2001
  TracePart.struct_class = Types::TracePart
@@ -849,6 +849,117 @@ module Aws::BedrockAgentRuntime
849
849
  include Aws::Structure
850
850
  end
851
851
 
852
+ # List of inline collaborators.
853
+ #
854
+ # @!attribute [rw] action_groups
855
+ # List of action groups with each action group defining tasks the
856
+ # inline collaborator agent needs to carry out.
857
+ # @return [Array<Types::AgentActionGroup>]
858
+ #
859
+ # @!attribute [rw] agent_collaboration
860
+ # Defines how the inline supervisor agent handles information across
861
+ # multiple collaborator agents to coordinate a final response.
862
+ # @return [String]
863
+ #
864
+ # @!attribute [rw] agent_name
865
+ # Name of the inline collaborator agent which must be the same name as
866
+ # specified for `collaboratorName`.
867
+ # @return [String]
868
+ #
869
+ # @!attribute [rw] collaborator_configurations
870
+ # Settings of the collaborator agent.
871
+ # @return [Array<Types::CollaboratorConfiguration>]
872
+ #
873
+ # @!attribute [rw] customer_encryption_key_arn
874
+ # The Amazon Resource Name (ARN) of the AWS KMS key that encrypts the
875
+ # inline collaborator.
876
+ # @return [String]
877
+ #
878
+ # @!attribute [rw] foundation_model
879
+ # The foundation model used by the inline collaborator agent.
880
+ # @return [String]
881
+ #
882
+ # @!attribute [rw] guardrail_configuration
883
+ # Details of the guardwrail associated with the inline collaborator.
884
+ # @return [Types::GuardrailConfigurationWithArn]
885
+ #
886
+ # @!attribute [rw] idle_session_ttl_in_seconds
887
+ # The number of seconds for which the Amazon Bedrock keeps information
888
+ # about the user's conversation with the inline collaborator agent.
889
+ #
890
+ # A user interaction remains active for the amount of time specified.
891
+ # If no conversation occurs during this time, the session expires and
892
+ # Amazon Bedrock deletes any data provided before the timeout.
893
+ # @return [Integer]
894
+ #
895
+ # @!attribute [rw] instruction
896
+ # Instruction that tell the inline collaborator agent what it should
897
+ # do and how it should interact with users.
898
+ # @return [String]
899
+ #
900
+ # @!attribute [rw] knowledge_bases
901
+ # Knowledge base associated with the inline collaborator agent.
902
+ # @return [Array<Types::KnowledgeBase>]
903
+ #
904
+ # @!attribute [rw] prompt_override_configuration
905
+ # Contains configurations to override prompt templates in different
906
+ # parts of an inline collaborator sequence. For more information, see
907
+ # [Advanced prompts][1].
908
+ #
909
+ #
910
+ #
911
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html
912
+ # @return [Types::PromptOverrideConfiguration]
913
+ #
914
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/Collaborator AWS API Documentation
915
+ #
916
+ class Collaborator < Struct.new(
917
+ :action_groups,
918
+ :agent_collaboration,
919
+ :agent_name,
920
+ :collaborator_configurations,
921
+ :customer_encryption_key_arn,
922
+ :foundation_model,
923
+ :guardrail_configuration,
924
+ :idle_session_ttl_in_seconds,
925
+ :instruction,
926
+ :knowledge_bases,
927
+ :prompt_override_configuration)
928
+ SENSITIVE = [:agent_name, :instruction, :prompt_override_configuration]
929
+ include Aws::Structure
930
+ end
931
+
932
+ # Settings of an inline collaborator agent.
933
+ #
934
+ # @!attribute [rw] agent_alias_arn
935
+ # The Amazon Resource Name (ARN) of the inline collaborator agent.
936
+ # @return [String]
937
+ #
938
+ # @!attribute [rw] collaborator_instruction
939
+ # Instructions that tell the inline collaborator agent what it should
940
+ # do and how it should interact with users.
941
+ # @return [String]
942
+ #
943
+ # @!attribute [rw] collaborator_name
944
+ # Name of the inline collaborator agent which must be the same name as
945
+ # specified for `agentName`.
946
+ # @return [String]
947
+ #
948
+ # @!attribute [rw] relay_conversation_history
949
+ # A relay conversation history for the inline collaborator agent.
950
+ # @return [String]
951
+ #
952
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/CollaboratorConfiguration AWS API Documentation
953
+ #
954
+ class CollaboratorConfiguration < Struct.new(
955
+ :agent_alias_arn,
956
+ :collaborator_instruction,
957
+ :collaborator_name,
958
+ :relay_conversation_history)
959
+ SENSITIVE = [:collaborator_instruction, :collaborator_name]
960
+ include Aws::Structure
961
+ end
962
+
852
963
  # There was a conflict performing an operation. Resolve the conflict and
853
964
  # retry your request.
854
965
  #
@@ -2918,6 +3029,10 @@ module Aws::BedrockAgentRuntime
2918
3029
  # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/agents-lambda.html
2919
3030
  # [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html
2920
3031
  #
3032
+ # @!attribute [rw] conversation_history
3033
+ # Contains the conversation history that persist across sessions.
3034
+ # @return [Types::ConversationHistory]
3035
+ #
2921
3036
  # @!attribute [rw] files
2922
3037
  # Contains information about the files used by code interpreter.
2923
3038
  # @return [Array<Types::InputFile>]
@@ -2962,6 +3077,7 @@ module Aws::BedrockAgentRuntime
2962
3077
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/InlineSessionState AWS API Documentation
2963
3078
  #
2964
3079
  class InlineSessionState < Struct.new(
3080
+ :conversation_history,
2965
3081
  :files,
2966
3082
  :invocation_id,
2967
3083
  :prompt_session_attributes,
@@ -3479,10 +3595,29 @@ module Aws::BedrockAgentRuntime
3479
3595
  # the inline agent needs to carry out.
3480
3596
  # @return [Array<Types::AgentActionGroup>]
3481
3597
  #
3598
+ # @!attribute [rw] agent_collaboration
3599
+ # Defines how the inline collaborator agent handles information across
3600
+ # multiple collaborator agents to coordinate a final response. The
3601
+ # inline collaborator agent can also be the supervisor.
3602
+ # @return [String]
3603
+ #
3482
3604
  # @!attribute [rw] bedrock_model_configurations
3483
3605
  # Model settings for the request.
3484
3606
  # @return [Types::InlineBedrockModelConfigurations]
3485
3607
  #
3608
+ # @!attribute [rw] collaborator_configurations
3609
+ # Settings for an inline agent collaborator called with
3610
+ # [InvokeInlineAgent][1].
3611
+ #
3612
+ #
3613
+ #
3614
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeInlineAgent.html
3615
+ # @return [Array<Types::CollaboratorConfiguration>]
3616
+ #
3617
+ # @!attribute [rw] collaborators
3618
+ # List of collaborator inline agents.
3619
+ # @return [Array<Types::Collaborator>]
3620
+ #
3486
3621
  # @!attribute [rw] customer_encryption_key_arn
3487
3622
  # The Amazon Resource Name (ARN) of the Amazon Web Services KMS key to
3488
3623
  # use to encrypt your inline agent.
@@ -3587,7 +3722,10 @@ module Aws::BedrockAgentRuntime
3587
3722
  #
3588
3723
  class InvokeInlineAgentRequest < Struct.new(
3589
3724
  :action_groups,
3725
+ :agent_collaboration,
3590
3726
  :bedrock_model_configurations,
3727
+ :collaborator_configurations,
3728
+ :collaborators,
3591
3729
  :customer_encryption_key_arn,
3592
3730
  :enable_trace,
3593
3731
  :end_session,
@@ -4984,6 +5122,10 @@ module Aws::BedrockAgentRuntime
4984
5122
  # [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts-configure.html
4985
5123
  # @return [String]
4986
5124
  #
5125
+ # @!attribute [rw] foundation_model
5126
+ # The foundation model to use.
5127
+ # @return [String]
5128
+ #
4987
5129
  # @!attribute [rw] inference_configuration
4988
5130
  # Contains inference parameters to use when the agent invokes a
4989
5131
  # foundation model in the part of the agent sequence defined by the
@@ -5040,6 +5182,7 @@ module Aws::BedrockAgentRuntime
5040
5182
  class PromptConfiguration < Struct.new(
5041
5183
  :additional_model_request_fields,
5042
5184
  :base_prompt_template,
5185
+ :foundation_model,
5043
5186
  :inference_configuration,
5044
5187
  :parser_mode,
5045
5188
  :prompt_creation_mode,
@@ -7038,6 +7181,10 @@ module Aws::BedrockAgentRuntime
7038
7181
  # The part's collaborator name.
7039
7182
  # @return [String]
7040
7183
  #
7184
+ # @!attribute [rw] event_time
7185
+ # The time of the trace.
7186
+ # @return [Time]
7187
+ #
7041
7188
  # @!attribute [rw] session_id
7042
7189
  # The unique identifier of the session with the agent.
7043
7190
  # @return [String]
@@ -7062,6 +7209,7 @@ module Aws::BedrockAgentRuntime
7062
7209
  :agent_version,
7063
7210
  :caller_chain,
7064
7211
  :collaborator_name,
7212
+ :event_time,
7065
7213
  :session_id,
7066
7214
  :trace,
7067
7215
  :event_type)
@@ -55,7 +55,7 @@ module Aws::BedrockAgentRuntime
55
55
  autoload :Endpoints, 'aws-sdk-bedrockagentruntime/endpoints'
56
56
  autoload :EventStreams, 'aws-sdk-bedrockagentruntime/event_streams'
57
57
 
58
- GEM_VERSION = '1.47.0'
58
+ GEM_VERSION = '1.48.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -476,11 +476,207 @@ module Aws
476
476
  parent_action_group_signature: ("AMAZON.UserInput" | "AMAZON.CodeInterpreter")?
477
477
  },
478
478
  ],
479
+ ?agent_collaboration: ("SUPERVISOR" | "SUPERVISOR_ROUTER" | "DISABLED"),
479
480
  ?bedrock_model_configurations: {
480
481
  performance_config: {
481
482
  latency: ("standard" | "optimized")?
482
483
  }?
483
484
  },
485
+ ?collaborator_configurations: Array[
486
+ {
487
+ agent_alias_arn: ::String?,
488
+ collaborator_instruction: ::String,
489
+ collaborator_name: ::String,
490
+ relay_conversation_history: ("TO_COLLABORATOR" | "DISABLED")?
491
+ },
492
+ ],
493
+ ?collaborators: Array[
494
+ {
495
+ action_groups: Array[
496
+ {
497
+ action_group_executor: {
498
+ custom_control: ("RETURN_CONTROL")?,
499
+ lambda: ::String?
500
+ }?,
501
+ action_group_name: ::String,
502
+ api_schema: {
503
+ payload: ::String?,
504
+ s3: {
505
+ s3_bucket_name: ::String?,
506
+ s3_object_key: ::String?
507
+ }?
508
+ }?,
509
+ description: ::String?,
510
+ function_schema: {
511
+ functions: Array[
512
+ {
513
+ description: ::String?,
514
+ name: ::String,
515
+ parameters: Hash[::String, {
516
+ description: ::String?,
517
+ required: bool?,
518
+ type: ("string" | "number" | "integer" | "boolean" | "array")
519
+ }]?,
520
+ require_confirmation: ("ENABLED" | "DISABLED")?
521
+ },
522
+ ]?
523
+ }?,
524
+ parent_action_group_signature: ("AMAZON.UserInput" | "AMAZON.CodeInterpreter")?
525
+ },
526
+ ]?,
527
+ agent_collaboration: ("SUPERVISOR" | "SUPERVISOR_ROUTER" | "DISABLED")?,
528
+ agent_name: ::String?,
529
+ collaborator_configurations: Array[
530
+ {
531
+ agent_alias_arn: ::String?,
532
+ collaborator_instruction: ::String,
533
+ collaborator_name: ::String,
534
+ relay_conversation_history: ("TO_COLLABORATOR" | "DISABLED")?
535
+ },
536
+ ]?,
537
+ customer_encryption_key_arn: ::String?,
538
+ foundation_model: ::String,
539
+ guardrail_configuration: {
540
+ guardrail_identifier: ::String,
541
+ guardrail_version: ::String
542
+ }?,
543
+ idle_session_ttl_in_seconds: ::Integer?,
544
+ instruction: ::String,
545
+ knowledge_bases: Array[
546
+ {
547
+ description: ::String,
548
+ knowledge_base_id: ::String,
549
+ retrieval_configuration: {
550
+ vector_search_configuration: {
551
+ filter: {
552
+ and_all: Array[
553
+ untyped,
554
+ ]?,
555
+ equals: {
556
+ key: ::String,
557
+ value: {
558
+ }
559
+ }?,
560
+ greater_than: {
561
+ key: ::String,
562
+ value: {
563
+ }
564
+ }?,
565
+ greater_than_or_equals: {
566
+ key: ::String,
567
+ value: {
568
+ }
569
+ }?,
570
+ in: {
571
+ key: ::String,
572
+ value: {
573
+ }
574
+ }?,
575
+ less_than: {
576
+ key: ::String,
577
+ value: {
578
+ }
579
+ }?,
580
+ less_than_or_equals: {
581
+ key: ::String,
582
+ value: {
583
+ }
584
+ }?,
585
+ list_contains: {
586
+ key: ::String,
587
+ value: {
588
+ }
589
+ }?,
590
+ not_equals: {
591
+ key: ::String,
592
+ value: {
593
+ }
594
+ }?,
595
+ not_in: {
596
+ key: ::String,
597
+ value: {
598
+ }
599
+ }?,
600
+ or_all: Array[
601
+ untyped,
602
+ ]?,
603
+ starts_with: {
604
+ key: ::String,
605
+ value: {
606
+ }
607
+ }?,
608
+ string_contains: {
609
+ key: ::String,
610
+ value: {
611
+ }
612
+ }?
613
+ }?,
614
+ implicit_filter_configuration: {
615
+ metadata_attributes: Array[
616
+ {
617
+ description: ::String,
618
+ key: ::String,
619
+ type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST")
620
+ },
621
+ ],
622
+ model_arn: ::String
623
+ }?,
624
+ number_of_results: ::Integer?,
625
+ override_search_type: ("HYBRID" | "SEMANTIC")?,
626
+ reranking_configuration: {
627
+ bedrock_reranking_configuration: {
628
+ metadata_configuration: {
629
+ selection_mode: ("SELECTIVE" | "ALL"),
630
+ selective_mode_configuration: {
631
+ fields_to_exclude: Array[
632
+ {
633
+ field_name: ::String
634
+ },
635
+ ]?,
636
+ fields_to_include: Array[
637
+ {
638
+ field_name: ::String
639
+ },
640
+ ]?
641
+ }?
642
+ }?,
643
+ model_configuration: {
644
+ additional_model_request_fields: Hash[::String, {
645
+ }]?,
646
+ model_arn: ::String
647
+ },
648
+ number_of_reranked_results: ::Integer?
649
+ }?,
650
+ type: ("BEDROCK_RERANKING_MODEL")
651
+ }?
652
+ }
653
+ }?
654
+ },
655
+ ]?,
656
+ prompt_override_configuration: {
657
+ override_lambda: ::String?,
658
+ prompt_configurations: Array[
659
+ {
660
+ additional_model_request_fields: {
661
+ }?,
662
+ base_prompt_template: ::String?,
663
+ foundation_model: ::String?,
664
+ inference_configuration: {
665
+ maximum_length: ::Integer?,
666
+ stop_sequences: Array[::String]?,
667
+ temperature: ::Float?,
668
+ top_k: ::Integer?,
669
+ top_p: ::Float?
670
+ }?,
671
+ parser_mode: ("DEFAULT" | "OVERRIDDEN")?,
672
+ prompt_creation_mode: ("DEFAULT" | "OVERRIDDEN")?,
673
+ prompt_state: ("ENABLED" | "DISABLED")?,
674
+ prompt_type: ("PRE_PROCESSING" | "ORCHESTRATION" | "KNOWLEDGE_BASE_RESPONSE_GENERATION" | "POST_PROCESSING" | "ROUTING_CLASSIFIER")?
675
+ },
676
+ ]
677
+ }?
678
+ },
679
+ ],
484
680
  ?customer_encryption_key_arn: ::String,
485
681
  ?enable_trace: bool,
486
682
  ?end_session: bool,
@@ -491,6 +687,18 @@ module Aws
491
687
  },
492
688
  ?idle_session_ttl_in_seconds: ::Integer,
493
689
  ?inline_session_state: {
690
+ conversation_history: {
691
+ messages: Array[
692
+ {
693
+ content: Array[
694
+ {
695
+ text: ::String?
696
+ },
697
+ ],
698
+ role: ("user" | "assistant")
699
+ },
700
+ ]?
701
+ }?,
494
702
  files: Array[
495
703
  {
496
704
  name: ::String,
@@ -657,6 +865,7 @@ module Aws
657
865
  additional_model_request_fields: {
658
866
  }?,
659
867
  base_prompt_template: ::String?,
868
+ foundation_model: ::String?,
660
869
  inference_configuration: {
661
870
  maximum_length: ::Integer?,
662
871
  stop_sequences: Array[::String]?,
data/sig/types.rbs CHANGED
@@ -234,6 +234,29 @@ module Aws::BedrockAgentRuntime
234
234
  SENSITIVE: []
235
235
  end
236
236
 
237
+ class Collaborator
238
+ attr_accessor action_groups: ::Array[Types::AgentActionGroup]
239
+ attr_accessor agent_collaboration: ("SUPERVISOR" | "SUPERVISOR_ROUTER" | "DISABLED")
240
+ attr_accessor agent_name: ::String
241
+ attr_accessor collaborator_configurations: ::Array[Types::CollaboratorConfiguration]
242
+ attr_accessor customer_encryption_key_arn: ::String
243
+ attr_accessor foundation_model: ::String
244
+ attr_accessor guardrail_configuration: Types::GuardrailConfigurationWithArn
245
+ attr_accessor idle_session_ttl_in_seconds: ::Integer
246
+ attr_accessor instruction: ::String
247
+ attr_accessor knowledge_bases: ::Array[Types::KnowledgeBase]
248
+ attr_accessor prompt_override_configuration: Types::PromptOverrideConfiguration
249
+ SENSITIVE: [:agent_name, :instruction, :prompt_override_configuration]
250
+ end
251
+
252
+ class CollaboratorConfiguration
253
+ attr_accessor agent_alias_arn: ::String
254
+ attr_accessor collaborator_instruction: ::String
255
+ attr_accessor collaborator_name: ::String
256
+ attr_accessor relay_conversation_history: ("TO_COLLABORATOR" | "DISABLED")
257
+ SENSITIVE: [:collaborator_instruction, :collaborator_name]
258
+ end
259
+
237
260
  class ConflictException
238
261
  attr_accessor message: ::String
239
262
  attr_accessor event_type: untyped
@@ -835,6 +858,7 @@ module Aws::BedrockAgentRuntime
835
858
  end
836
859
 
837
860
  class InlineSessionState
861
+ attr_accessor conversation_history: Types::ConversationHistory
838
862
  attr_accessor files: ::Array[Types::InputFile]
839
863
  attr_accessor invocation_id: ::String
840
864
  attr_accessor prompt_session_attributes: ::Hash[::String, ::String]
@@ -982,7 +1006,10 @@ module Aws::BedrockAgentRuntime
982
1006
 
983
1007
  class InvokeInlineAgentRequest
984
1008
  attr_accessor action_groups: ::Array[Types::AgentActionGroup]
1009
+ attr_accessor agent_collaboration: ("SUPERVISOR" | "SUPERVISOR_ROUTER" | "DISABLED")
985
1010
  attr_accessor bedrock_model_configurations: Types::InlineBedrockModelConfigurations
1011
+ attr_accessor collaborator_configurations: ::Array[Types::CollaboratorConfiguration]
1012
+ attr_accessor collaborators: ::Array[Types::Collaborator]
986
1013
  attr_accessor customer_encryption_key_arn: ::String
987
1014
  attr_accessor enable_trace: bool
988
1015
  attr_accessor end_session: bool
@@ -1355,6 +1382,7 @@ module Aws::BedrockAgentRuntime
1355
1382
  class PromptConfiguration
1356
1383
  attr_accessor additional_model_request_fields: untyped
1357
1384
  attr_accessor base_prompt_template: ::String
1385
+ attr_accessor foundation_model: ::String
1358
1386
  attr_accessor inference_configuration: Types::InferenceConfiguration
1359
1387
  attr_accessor parser_mode: ("DEFAULT" | "OVERRIDDEN")
1360
1388
  attr_accessor prompt_creation_mode: ("DEFAULT" | "OVERRIDDEN")
@@ -1892,6 +1920,7 @@ module Aws::BedrockAgentRuntime
1892
1920
  attr_accessor agent_version: ::String
1893
1921
  attr_accessor caller_chain: ::Array[Types::Caller]
1894
1922
  attr_accessor collaborator_name: ::String
1923
+ attr_accessor event_time: ::Time
1895
1924
  attr_accessor session_id: ::String
1896
1925
  attr_accessor trace: Types::Trace
1897
1926
  attr_accessor event_type: untyped
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrockagentruntime
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.47.0
4
+ version: 1.48.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-02-27 00:00:00.000000000 Z
11
+ date: 2025-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core