aws-sdk-bedrockagentruntime 1.51.0 → 1.52.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: 21a42f2c24ae13bbdbf9c189ca074e66b5107edb6965d9641d28a2d424054d0a
4
- data.tar.gz: b4030ef75c96046896053f7b800dab3774a2c5a46d7411883fa4d13db6995d48
3
+ metadata.gz: fc9368763bf794f99829368bc8bf01578a594cdecb921574454310a021bc64be
4
+ data.tar.gz: 9b066771464a003a15c59e5ee5897abd022f0d4dff8c140c08bd2ce4ffefc275
5
5
  SHA512:
6
- metadata.gz: 420fc0a23fd8a7529e67895b84851536a5773b2733a1447bed82c03fdc565a63e9293786a93b7f852f91852e8d4815f77fb7d5bab87ee06df5b29d283c4718b8
7
- data.tar.gz: ad19027b09981ee0bcc8c27dd48f72a41db066cc32fa3da4e1de185563c98be005c320abd4a90c52e940be2170b44d144edab68a8fdc9a884846c8c4e4436d76
6
+ metadata.gz: 520fe2efbd915615f2c337b80cfa2f8e16b03d1a0fa5d4c7f3e8aa7e7e04026be25271ab57e3b35bbcd7b1821add136146a78b866b493afa459b238f58a6018d
7
+ data.tar.gz: cc122abdb32f670d1269f3b6af660f038b101fbcdb13ea88d5f0f2994fb40619268cc2b50b4cf6e3fd4471601ee77d66de2b161f62fc0cd55891f593332efc3c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.52.0 (2025-04-30)
5
+ ------------------
6
+
7
+ * Feature - Support for Custom Orchestration within InlineAgents
8
+
4
9
  1.51.0 (2025-04-28)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.51.0
1
+ 1.52.0
@@ -964,10 +964,10 @@ module Aws::BedrockAgentRuntime
964
964
 
965
965
  # <note> </note>
966
966
  #
967
- # Sends a prompt for the agent to process and respond to. Note the
967
+ # Sends a prompt for the agent to process and respond to. Note the
968
968
  # following fields for the request:
969
969
  #
970
- # * To continue the same conversation with an agent, use the same
970
+ # * To continue the same conversation with an agent, use the same
971
971
  # `sessionId` value in the request.
972
972
  #
973
973
  # * To activate trace enablement, turn `enableTrace` to `true`. Trace
@@ -982,13 +982,13 @@ module Aws::BedrockAgentRuntime
982
982
  # session or prompt or, if you configured an action group to return
983
983
  # control, results from invocation of the action group.
984
984
  #
985
- # The response contains both **chunk** and **trace** attributes.
985
+ # The response contains both **chunk** and **trace** attributes.
986
986
  #
987
- # The final response is returned in the `bytes` field of the `chunk`
987
+ # The final response is returned in the `bytes` field of the `chunk`
988
988
  # object. The `InvokeAgent` returns one chunk for the entire
989
989
  # interaction.
990
990
  #
991
- # * The `attribution` object contains citations for parts of the
991
+ # * The `attribution` object contains citations for parts of the
992
992
  # response.
993
993
  #
994
994
  # * If you set `enableTrace` to `true` in the request, you can trace the
@@ -2390,6 +2390,9 @@ module Aws::BedrockAgentRuntime
2390
2390
  # multiple collaborator agents to coordinate a final response. The
2391
2391
  # inline collaborator agent can also be the supervisor.
2392
2392
  #
2393
+ # @option params [String] :agent_name
2394
+ # The name for the agent.
2395
+ #
2393
2396
  # @option params [Types::InlineBedrockModelConfigurations] :bedrock_model_configurations
2394
2397
  # Model settings for the request.
2395
2398
  #
@@ -2404,6 +2407,9 @@ module Aws::BedrockAgentRuntime
2404
2407
  # @option params [Array<Types::Collaborator>] :collaborators
2405
2408
  # List of collaborator inline agents.
2406
2409
  #
2410
+ # @option params [Types::CustomOrchestration] :custom_orchestration
2411
+ # Contains details of the custom orchestration configured for the agent.
2412
+ #
2407
2413
  # @option params [String] :customer_encryption_key_arn
2408
2414
  # The Amazon Resource Name (ARN) of the Amazon Web Services KMS key to
2409
2415
  # use to encrypt your inline agent.
@@ -2411,7 +2417,6 @@ module Aws::BedrockAgentRuntime
2411
2417
  # @option params [Boolean] :enable_trace
2412
2418
  # Specifies whether to turn on the trace or not to track the agent's
2413
2419
  # reasoning process. For more information, see [Using trace][1].
2414
- # </p>
2415
2420
  #
2416
2421
  #
2417
2422
  #
@@ -2474,6 +2479,10 @@ module Aws::BedrockAgentRuntime
2474
2479
  # @option params [Array<Types::KnowledgeBase>] :knowledge_bases
2475
2480
  # Contains information of the knowledge bases to associate with.
2476
2481
  #
2482
+ # @option params [String] :orchestration_type
2483
+ # Specifies the type of orchestration strategy for the agent. This is
2484
+ # set to DEFAULT orchestration type, by default.
2485
+ #
2477
2486
  # @option params [Types::PromptOverrideConfiguration] :prompt_override_configuration
2478
2487
  # Configurations for advanced prompts used to override the default
2479
2488
  # prompts to enhance the accuracy of the inline agent.
@@ -2734,6 +2743,7 @@ module Aws::BedrockAgentRuntime
2734
2743
  # },
2735
2744
  # ],
2736
2745
  # agent_collaboration: "SUPERVISOR", # accepts SUPERVISOR, SUPERVISOR_ROUTER, DISABLED
2746
+ # agent_name: "Name",
2737
2747
  # bedrock_model_configurations: {
2738
2748
  # performance_config: {
2739
2749
  # latency: "standard", # accepts standard, optimized
@@ -2945,6 +2955,11 @@ module Aws::BedrockAgentRuntime
2945
2955
  # },
2946
2956
  # },
2947
2957
  # ],
2958
+ # custom_orchestration: {
2959
+ # executor: {
2960
+ # lambda: "LambdaArn",
2961
+ # },
2962
+ # },
2948
2963
  # customer_encryption_key_arn: "KmsKeyArn",
2949
2964
  # enable_trace: false,
2950
2965
  # end_session: false,
@@ -3156,6 +3171,7 @@ module Aws::BedrockAgentRuntime
3156
3171
  # },
3157
3172
  # },
3158
3173
  # ],
3174
+ # orchestration_type: "DEFAULT", # accepts DEFAULT, CUSTOM_ORCHESTRATION
3159
3175
  # prompt_override_configuration: {
3160
3176
  # override_lambda: "LambdaResourceArn",
3161
3177
  # prompt_configurations: [ # required
@@ -3278,6 +3294,10 @@ module Aws::BedrockAgentRuntime
3278
3294
  # event.message #=> String
3279
3295
  #
3280
3296
  # # For :trace event available at #on_trace_event callback and response eventstream enumerator:
3297
+ # event.caller_chain #=> Array
3298
+ # event.caller_chain[0].agent_alias_arn #=> String
3299
+ # event.collaborator_name #=> String
3300
+ # event.event_time #=> Time
3281
3301
  # event.session_id #=> String
3282
3302
  # event.trace.custom_orchestration_trace.event.text #=> String
3283
3303
  # event.trace.custom_orchestration_trace.trace_id #=> String
@@ -5457,7 +5477,7 @@ module Aws::BedrockAgentRuntime
5457
5477
  tracer: tracer
5458
5478
  )
5459
5479
  context[:gem_name] = 'aws-sdk-bedrockagentruntime'
5460
- context[:gem_version] = '1.51.0'
5480
+ context[:gem_version] = '1.52.0'
5461
5481
  Seahorse::Client::Request.new(handlers, context)
5462
5482
  end
5463
5483
 
@@ -95,6 +95,7 @@ module Aws::BedrockAgentRuntime
95
95
  CreateSessionResponse = Shapes::StructureShape.new(name: 'CreateSessionResponse')
96
96
  CreationMode = Shapes::StringShape.new(name: 'CreationMode')
97
97
  CustomControlMethod = Shapes::StringShape.new(name: 'CustomControlMethod')
98
+ CustomOrchestration = Shapes::StructureShape.new(name: 'CustomOrchestration')
98
99
  CustomOrchestrationTrace = Shapes::StructureShape.new(name: 'CustomOrchestrationTrace')
99
100
  CustomOrchestrationTraceEvent = Shapes::StructureShape.new(name: 'CustomOrchestrationTraceEvent')
100
101
  DateTimestamp = Shapes::TimestampShape.new(name: 'DateTimestamp', timestampFormat: "iso8601")
@@ -327,8 +328,10 @@ module Aws::BedrockAgentRuntime
327
328
  OptimizedPromptEvent = Shapes::StructureShape.new(name: 'OptimizedPromptEvent')
328
329
  OptimizedPromptStream = Shapes::StructureShape.new(name: 'OptimizedPromptStream')
329
330
  OrchestrationConfiguration = Shapes::StructureShape.new(name: 'OrchestrationConfiguration')
331
+ OrchestrationExecutor = Shapes::UnionShape.new(name: 'OrchestrationExecutor')
330
332
  OrchestrationModelInvocationOutput = Shapes::StructureShape.new(name: 'OrchestrationModelInvocationOutput')
331
333
  OrchestrationTrace = Shapes::UnionShape.new(name: 'OrchestrationTrace')
334
+ OrchestrationType = Shapes::StringShape.new(name: 'OrchestrationType')
332
335
  OutputFile = Shapes::StructureShape.new(name: 'OutputFile')
333
336
  OutputFiles = Shapes::ListShape.new(name: 'OutputFiles')
334
337
  OutputString = Shapes::StringShape.new(name: 'OutputString')
@@ -751,6 +754,9 @@ module Aws::BedrockAgentRuntime
751
754
  CreateSessionResponse.add_member(:session_status, Shapes::ShapeRef.new(shape: SessionStatus, required: true, location_name: "sessionStatus"))
752
755
  CreateSessionResponse.struct_class = Types::CreateSessionResponse
753
756
 
757
+ CustomOrchestration.add_member(:executor, Shapes::ShapeRef.new(shape: OrchestrationExecutor, location_name: "executor"))
758
+ CustomOrchestration.struct_class = Types::CustomOrchestration
759
+
754
760
  CustomOrchestrationTrace.add_member(:event, Shapes::ShapeRef.new(shape: CustomOrchestrationTraceEvent, location_name: "event"))
755
761
  CustomOrchestrationTrace.add_member(:trace_id, Shapes::ShapeRef.new(shape: TraceId, location_name: "traceId"))
756
762
  CustomOrchestrationTrace.struct_class = Types::CustomOrchestrationTrace
@@ -1185,6 +1191,9 @@ module Aws::BedrockAgentRuntime
1185
1191
  InlineAgentReturnControlPayload.add_member(:invocation_inputs, Shapes::ShapeRef.new(shape: InvocationInputs, location_name: "invocationInputs"))
1186
1192
  InlineAgentReturnControlPayload.struct_class = Types::InlineAgentReturnControlPayload
1187
1193
 
1194
+ InlineAgentTracePart.add_member(:caller_chain, Shapes::ShapeRef.new(shape: CallerChain, location_name: "callerChain"))
1195
+ InlineAgentTracePart.add_member(:collaborator_name, Shapes::ShapeRef.new(shape: Name, location_name: "collaboratorName"))
1196
+ InlineAgentTracePart.add_member(:event_time, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location_name: "eventTime"))
1188
1197
  InlineAgentTracePart.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location_name: "sessionId"))
1189
1198
  InlineAgentTracePart.add_member(:trace, Shapes::ShapeRef.new(shape: Trace, location_name: "trace"))
1190
1199
  InlineAgentTracePart.struct_class = Types::InlineAgentTracePart
@@ -1308,9 +1317,11 @@ module Aws::BedrockAgentRuntime
1308
1317
 
1309
1318
  InvokeInlineAgentRequest.add_member(:action_groups, Shapes::ShapeRef.new(shape: AgentActionGroups, location_name: "actionGroups"))
1310
1319
  InvokeInlineAgentRequest.add_member(:agent_collaboration, Shapes::ShapeRef.new(shape: AgentCollaboration, location_name: "agentCollaboration"))
1320
+ InvokeInlineAgentRequest.add_member(:agent_name, Shapes::ShapeRef.new(shape: Name, location_name: "agentName"))
1311
1321
  InvokeInlineAgentRequest.add_member(:bedrock_model_configurations, Shapes::ShapeRef.new(shape: InlineBedrockModelConfigurations, location_name: "bedrockModelConfigurations"))
1312
1322
  InvokeInlineAgentRequest.add_member(:collaborator_configurations, Shapes::ShapeRef.new(shape: CollaboratorConfigurations, location_name: "collaboratorConfigurations"))
1313
1323
  InvokeInlineAgentRequest.add_member(:collaborators, Shapes::ShapeRef.new(shape: Collaborators, location_name: "collaborators"))
1324
+ InvokeInlineAgentRequest.add_member(:custom_orchestration, Shapes::ShapeRef.new(shape: CustomOrchestration, location_name: "customOrchestration"))
1314
1325
  InvokeInlineAgentRequest.add_member(:customer_encryption_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "customerEncryptionKeyArn"))
1315
1326
  InvokeInlineAgentRequest.add_member(:enable_trace, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableTrace"))
1316
1327
  InvokeInlineAgentRequest.add_member(:end_session, Shapes::ShapeRef.new(shape: Boolean, location_name: "endSession"))
@@ -1321,6 +1332,7 @@ module Aws::BedrockAgentRuntime
1321
1332
  InvokeInlineAgentRequest.add_member(:input_text, Shapes::ShapeRef.new(shape: InputText, location_name: "inputText"))
1322
1333
  InvokeInlineAgentRequest.add_member(:instruction, Shapes::ShapeRef.new(shape: Instruction, required: true, location_name: "instruction"))
1323
1334
  InvokeInlineAgentRequest.add_member(:knowledge_bases, Shapes::ShapeRef.new(shape: KnowledgeBases, location_name: "knowledgeBases"))
1335
+ InvokeInlineAgentRequest.add_member(:orchestration_type, Shapes::ShapeRef.new(shape: OrchestrationType, location_name: "orchestrationType"))
1324
1336
  InvokeInlineAgentRequest.add_member(:prompt_override_configuration, Shapes::ShapeRef.new(shape: PromptOverrideConfiguration, location_name: "promptOverrideConfiguration"))
1325
1337
  InvokeInlineAgentRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, required: true, location: "uri", location_name: "sessionId"))
1326
1338
  InvokeInlineAgentRequest.add_member(:streaming_configurations, Shapes::ShapeRef.new(shape: StreamingConfigurations, location_name: "streamingConfigurations"))
@@ -1510,6 +1522,12 @@ module Aws::BedrockAgentRuntime
1510
1522
  OrchestrationConfiguration.add_member(:query_transformation_configuration, Shapes::ShapeRef.new(shape: QueryTransformationConfiguration, location_name: "queryTransformationConfiguration"))
1511
1523
  OrchestrationConfiguration.struct_class = Types::OrchestrationConfiguration
1512
1524
 
1525
+ OrchestrationExecutor.add_member(:lambda, Shapes::ShapeRef.new(shape: LambdaArn, location_name: "lambda"))
1526
+ OrchestrationExecutor.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
1527
+ OrchestrationExecutor.add_member_subclass(:lambda, Types::OrchestrationExecutor::Lambda)
1528
+ OrchestrationExecutor.add_member_subclass(:unknown, Types::OrchestrationExecutor::Unknown)
1529
+ OrchestrationExecutor.struct_class = Types::OrchestrationExecutor
1530
+
1513
1531
  OrchestrationModelInvocationOutput.add_member(:metadata, Shapes::ShapeRef.new(shape: Metadata, location_name: "metadata"))
1514
1532
  OrchestrationModelInvocationOutput.add_member(:raw_response, Shapes::ShapeRef.new(shape: RawResponse, location_name: "rawResponse"))
1515
1533
  OrchestrationModelInvocationOutput.add_member(:reasoning_content, Shapes::ShapeRef.new(shape: ReasoningContentBlock, location_name: "reasoningContent"))
@@ -2131,8 +2149,8 @@ module Aws::BedrockAgentRuntime
2131
2149
  o.http_request_uri = "/agents/{agentId}/agentAliases/{agentAliasId}/memories"
2132
2150
  o.input = Shapes::ShapeRef.new(shape: DeleteAgentMemoryRequest)
2133
2151
  o.output = Shapes::ShapeRef.new(shape: DeleteAgentMemoryResponse)
2134
- o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2135
2152
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2153
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2136
2154
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2137
2155
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2138
2156
  o.errors << Shapes::ShapeRef.new(shape: DependencyFailedException)
@@ -2148,8 +2166,8 @@ module Aws::BedrockAgentRuntime
2148
2166
  o.http_request_uri = "/sessions/{sessionIdentifier}/"
2149
2167
  o.input = Shapes::ShapeRef.new(shape: DeleteSessionRequest)
2150
2168
  o.output = Shapes::ShapeRef.new(shape: DeleteSessionResponse)
2151
- o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2152
2169
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2170
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2153
2171
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2154
2172
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2155
2173
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
@@ -2162,8 +2180,8 @@ module Aws::BedrockAgentRuntime
2162
2180
  o.http_request_uri = "/sessions/{sessionIdentifier}"
2163
2181
  o.input = Shapes::ShapeRef.new(shape: EndSessionRequest)
2164
2182
  o.output = Shapes::ShapeRef.new(shape: EndSessionResponse)
2165
- o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2166
2183
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2184
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2167
2185
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2168
2186
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2169
2187
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
@@ -2176,8 +2194,8 @@ module Aws::BedrockAgentRuntime
2176
2194
  o.http_request_uri = "/generateQuery"
2177
2195
  o.input = Shapes::ShapeRef.new(shape: GenerateQueryRequest)
2178
2196
  o.output = Shapes::ShapeRef.new(shape: GenerateQueryResponse)
2179
- o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2180
2197
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2198
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2181
2199
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2182
2200
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2183
2201
  o.errors << Shapes::ShapeRef.new(shape: DependencyFailedException)
@@ -2193,8 +2211,8 @@ module Aws::BedrockAgentRuntime
2193
2211
  o.http_request_uri = "/agents/{agentId}/agentAliases/{agentAliasId}/memories"
2194
2212
  o.input = Shapes::ShapeRef.new(shape: GetAgentMemoryRequest)
2195
2213
  o.output = Shapes::ShapeRef.new(shape: GetAgentMemoryResponse)
2196
- o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2197
2214
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2215
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2198
2216
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2199
2217
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2200
2218
  o.errors << Shapes::ShapeRef.new(shape: DependencyFailedException)
@@ -2243,8 +2261,8 @@ module Aws::BedrockAgentRuntime
2243
2261
  o.input = Shapes::ShapeRef.new(shape: InvokeAgentRequest)
2244
2262
  o.output = Shapes::ShapeRef.new(shape: InvokeAgentResponse)
2245
2263
  o.errors << Shapes::ShapeRef.new(shape: ModelNotReadyException)
2246
- o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2247
2264
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2265
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2248
2266
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2249
2267
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2250
2268
  o.errors << Shapes::ShapeRef.new(shape: DependencyFailedException)
@@ -2260,8 +2278,8 @@ module Aws::BedrockAgentRuntime
2260
2278
  o.http_request_uri = "/flows/{flowIdentifier}/aliases/{flowAliasIdentifier}"
2261
2279
  o.input = Shapes::ShapeRef.new(shape: InvokeFlowRequest)
2262
2280
  o.output = Shapes::ShapeRef.new(shape: InvokeFlowResponse)
2263
- o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2264
2281
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2282
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2265
2283
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2266
2284
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2267
2285
  o.errors << Shapes::ShapeRef.new(shape: DependencyFailedException)
@@ -2277,8 +2295,8 @@ module Aws::BedrockAgentRuntime
2277
2295
  o.http_request_uri = "/agents/{sessionId}"
2278
2296
  o.input = Shapes::ShapeRef.new(shape: InvokeInlineAgentRequest)
2279
2297
  o.output = Shapes::ShapeRef.new(shape: InvokeInlineAgentResponse)
2280
- o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2281
2298
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2299
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2282
2300
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2283
2301
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2284
2302
  o.errors << Shapes::ShapeRef.new(shape: DependencyFailedException)
@@ -2377,8 +2395,8 @@ module Aws::BedrockAgentRuntime
2377
2395
  o.http_request_uri = "/sessions/{sessionIdentifier}/invocationSteps/"
2378
2396
  o.input = Shapes::ShapeRef.new(shape: PutInvocationStepRequest)
2379
2397
  o.output = Shapes::ShapeRef.new(shape: PutInvocationStepResponse)
2380
- o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2381
2398
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2399
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2382
2400
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2383
2401
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2384
2402
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
@@ -2392,8 +2410,8 @@ module Aws::BedrockAgentRuntime
2392
2410
  o.http_request_uri = "/rerank"
2393
2411
  o.input = Shapes::ShapeRef.new(shape: RerankRequest)
2394
2412
  o.output = Shapes::ShapeRef.new(shape: RerankResponse)
2395
- o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2396
2413
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2414
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2397
2415
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2398
2416
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2399
2417
  o.errors << Shapes::ShapeRef.new(shape: DependencyFailedException)
@@ -2414,8 +2432,8 @@ module Aws::BedrockAgentRuntime
2414
2432
  o.http_request_uri = "/knowledgebases/{knowledgeBaseId}/retrieve"
2415
2433
  o.input = Shapes::ShapeRef.new(shape: RetrieveRequest)
2416
2434
  o.output = Shapes::ShapeRef.new(shape: RetrieveResponse)
2417
- o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2418
2435
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2436
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2419
2437
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2420
2438
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2421
2439
  o.errors << Shapes::ShapeRef.new(shape: DependencyFailedException)
@@ -2436,8 +2454,8 @@ module Aws::BedrockAgentRuntime
2436
2454
  o.http_request_uri = "/retrieveAndGenerate"
2437
2455
  o.input = Shapes::ShapeRef.new(shape: RetrieveAndGenerateRequest)
2438
2456
  o.output = Shapes::ShapeRef.new(shape: RetrieveAndGenerateResponse)
2439
- o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2440
2457
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2458
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2441
2459
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2442
2460
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2443
2461
  o.errors << Shapes::ShapeRef.new(shape: DependencyFailedException)
@@ -2453,8 +2471,8 @@ module Aws::BedrockAgentRuntime
2453
2471
  o.http_request_uri = "/retrieveAndGenerateStream"
2454
2472
  o.input = Shapes::ShapeRef.new(shape: RetrieveAndGenerateStreamRequest)
2455
2473
  o.output = Shapes::ShapeRef.new(shape: RetrieveAndGenerateStreamResponse)
2456
- o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2457
2474
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2475
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2458
2476
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2459
2477
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2460
2478
  o.errors << Shapes::ShapeRef.new(shape: DependencyFailedException)
@@ -1185,6 +1185,21 @@ module Aws::BedrockAgentRuntime
1185
1185
  include Aws::Structure
1186
1186
  end
1187
1187
 
1188
+ # Contains details of the custom orchestration configured for the agent.
1189
+ #
1190
+ # @!attribute [rw] executor
1191
+ # The structure of the executor invoking the actions in custom
1192
+ # orchestration.
1193
+ # @return [Types::OrchestrationExecutor]
1194
+ #
1195
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/CustomOrchestration AWS API Documentation
1196
+ #
1197
+ class CustomOrchestration < Struct.new(
1198
+ :executor)
1199
+ SENSITIVE = []
1200
+ include Aws::Structure
1201
+ end
1202
+
1188
1203
  # The trace behavior for the custom orchestration.
1189
1204
  #
1190
1205
  # @!attribute [rw] event
@@ -3127,6 +3142,18 @@ module Aws::BedrockAgentRuntime
3127
3142
  #
3128
3143
  # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/agents-test.html#trace-enablement
3129
3144
  #
3145
+ # @!attribute [rw] caller_chain
3146
+ # The caller chain for the trace part.
3147
+ # @return [Array<Types::Caller>]
3148
+ #
3149
+ # @!attribute [rw] collaborator_name
3150
+ # The collaborator name for the trace part.
3151
+ # @return [String]
3152
+ #
3153
+ # @!attribute [rw] event_time
3154
+ # The time that trace occurred.
3155
+ # @return [Time]
3156
+ #
3130
3157
  # @!attribute [rw] session_id
3131
3158
  # The unique identifier of the session with the agent.
3132
3159
  # @return [String]
@@ -3146,10 +3173,13 @@ module Aws::BedrockAgentRuntime
3146
3173
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/InlineAgentTracePart AWS API Documentation
3147
3174
  #
3148
3175
  class InlineAgentTracePart < Struct.new(
3176
+ :caller_chain,
3177
+ :collaborator_name,
3178
+ :event_time,
3149
3179
  :session_id,
3150
3180
  :trace,
3151
3181
  :event_type)
3152
- SENSITIVE = [:trace]
3182
+ SENSITIVE = [:collaborator_name, :trace]
3153
3183
  include Aws::Structure
3154
3184
  end
3155
3185
 
@@ -3752,6 +3782,10 @@ module Aws::BedrockAgentRuntime
3752
3782
  # inline collaborator agent can also be the supervisor.
3753
3783
  # @return [String]
3754
3784
  #
3785
+ # @!attribute [rw] agent_name
3786
+ # The name for the agent.
3787
+ # @return [String]
3788
+ #
3755
3789
  # @!attribute [rw] bedrock_model_configurations
3756
3790
  # Model settings for the request.
3757
3791
  # @return [Types::InlineBedrockModelConfigurations]
@@ -3769,6 +3803,11 @@ module Aws::BedrockAgentRuntime
3769
3803
  # List of collaborator inline agents.
3770
3804
  # @return [Array<Types::Collaborator>]
3771
3805
  #
3806
+ # @!attribute [rw] custom_orchestration
3807
+ # Contains details of the custom orchestration configured for the
3808
+ # agent.
3809
+ # @return [Types::CustomOrchestration]
3810
+ #
3772
3811
  # @!attribute [rw] customer_encryption_key_arn
3773
3812
  # The Amazon Resource Name (ARN) of the Amazon Web Services KMS key to
3774
3813
  # use to encrypt your inline agent.
@@ -3777,7 +3816,6 @@ module Aws::BedrockAgentRuntime
3777
3816
  # @!attribute [rw] enable_trace
3778
3817
  # Specifies whether to turn on the trace or not to track the agent's
3779
3818
  # reasoning process. For more information, see [Using trace][1].
3780
- # </p>
3781
3819
  #
3782
3820
  #
3783
3821
  #
@@ -3850,6 +3888,11 @@ module Aws::BedrockAgentRuntime
3850
3888
  # Contains information of the knowledge bases to associate with.
3851
3889
  # @return [Array<Types::KnowledgeBase>]
3852
3890
  #
3891
+ # @!attribute [rw] orchestration_type
3892
+ # Specifies the type of orchestration strategy for the agent. This is
3893
+ # set to DEFAULT orchestration type, by default.
3894
+ # @return [String]
3895
+ #
3853
3896
  # @!attribute [rw] prompt_override_configuration
3854
3897
  # Configurations for advanced prompts used to override the default
3855
3898
  # prompts to enhance the accuracy of the inline agent.
@@ -3874,9 +3917,11 @@ module Aws::BedrockAgentRuntime
3874
3917
  class InvokeInlineAgentRequest < Struct.new(
3875
3918
  :action_groups,
3876
3919
  :agent_collaboration,
3920
+ :agent_name,
3877
3921
  :bedrock_model_configurations,
3878
3922
  :collaborator_configurations,
3879
3923
  :collaborators,
3924
+ :custom_orchestration,
3880
3925
  :customer_encryption_key_arn,
3881
3926
  :enable_trace,
3882
3927
  :end_session,
@@ -3887,15 +3932,16 @@ module Aws::BedrockAgentRuntime
3887
3932
  :input_text,
3888
3933
  :instruction,
3889
3934
  :knowledge_bases,
3935
+ :orchestration_type,
3890
3936
  :prompt_override_configuration,
3891
3937
  :session_id,
3892
3938
  :streaming_configurations)
3893
- SENSITIVE = [:input_text, :instruction, :prompt_override_configuration]
3939
+ SENSITIVE = [:agent_name, :input_text, :instruction, :prompt_override_configuration]
3894
3940
  include Aws::Structure
3895
3941
  end
3896
3942
 
3897
3943
  # @!attribute [rw] completion
3898
- # </p>
3944
+ # The inline agent's response to the user prompt.
3899
3945
  # @return [Types::InlineAgentResponseStream]
3900
3946
  #
3901
3947
  # @!attribute [rw] content_type
@@ -4846,6 +4892,29 @@ module Aws::BedrockAgentRuntime
4846
4892
  include Aws::Structure
4847
4893
  end
4848
4894
 
4895
+ # The structure of the executor invoking the actions in custom
4896
+ # orchestration.
4897
+ #
4898
+ # @note OrchestrationExecutor is a union - when making an API calls you must set exactly one of the members.
4899
+ #
4900
+ # @!attribute [rw] lambda
4901
+ # The Amazon Resource Name (ARN) of the Lambda function containing the
4902
+ # business logic that is carried out upon invoking the action.
4903
+ # @return [String]
4904
+ #
4905
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/OrchestrationExecutor AWS API Documentation
4906
+ #
4907
+ class OrchestrationExecutor < Struct.new(
4908
+ :lambda,
4909
+ :unknown)
4910
+ SENSITIVE = []
4911
+ include Aws::Structure
4912
+ include Aws::Structure::Union
4913
+
4914
+ class Lambda < OrchestrationExecutor; end
4915
+ class Unknown < OrchestrationExecutor; end
4916
+ end
4917
+
4849
4918
  # The foundation model output from the orchestration step.
4850
4919
  #
4851
4920
  # @!attribute [rw] metadata
@@ -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.51.0'
58
+ GEM_VERSION = '1.52.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -494,6 +494,7 @@ module Aws
494
494
  },
495
495
  ],
496
496
  ?agent_collaboration: ("SUPERVISOR" | "SUPERVISOR_ROUTER" | "DISABLED"),
497
+ ?agent_name: ::String,
497
498
  ?bedrock_model_configurations: {
498
499
  performance_config: {
499
500
  latency: ("standard" | "optimized")?
@@ -695,6 +696,11 @@ module Aws
695
696
  }?
696
697
  },
697
698
  ],
699
+ ?custom_orchestration: {
700
+ executor: {
701
+ lambda: ::String?
702
+ }?
703
+ },
698
704
  ?customer_encryption_key_arn: ::String,
699
705
  ?enable_trace: bool,
700
706
  ?end_session: bool,
@@ -892,6 +898,7 @@ module Aws
892
898
  }?
893
899
  },
894
900
  ],
901
+ ?orchestration_type: ("DEFAULT" | "CUSTOM_ORCHESTRATION"),
895
902
  ?prompt_override_configuration: {
896
903
  override_lambda: ::String?,
897
904
  prompt_configurations: Array[
data/sig/types.rbs CHANGED
@@ -315,6 +315,11 @@ module Aws::BedrockAgentRuntime
315
315
  SENSITIVE: []
316
316
  end
317
317
 
318
+ class CustomOrchestration
319
+ attr_accessor executor: Types::OrchestrationExecutor
320
+ SENSITIVE: []
321
+ end
322
+
318
323
  class CustomOrchestrationTrace
319
324
  attr_accessor event: Types::CustomOrchestrationTraceEvent
320
325
  attr_accessor trace_id: ::String
@@ -877,10 +882,13 @@ module Aws::BedrockAgentRuntime
877
882
  end
878
883
 
879
884
  class InlineAgentTracePart
885
+ attr_accessor caller_chain: ::Array[Types::Caller]
886
+ attr_accessor collaborator_name: ::String
887
+ attr_accessor event_time: ::Time
880
888
  attr_accessor session_id: ::String
881
889
  attr_accessor trace: Types::Trace
882
890
  attr_accessor event_type: untyped
883
- SENSITIVE: [:trace]
891
+ SENSITIVE: [:collaborator_name, :trace]
884
892
  end
885
893
 
886
894
  class InlineBedrockModelConfigurations
@@ -1038,9 +1046,11 @@ module Aws::BedrockAgentRuntime
1038
1046
  class InvokeInlineAgentRequest
1039
1047
  attr_accessor action_groups: ::Array[Types::AgentActionGroup]
1040
1048
  attr_accessor agent_collaboration: ("SUPERVISOR" | "SUPERVISOR_ROUTER" | "DISABLED")
1049
+ attr_accessor agent_name: ::String
1041
1050
  attr_accessor bedrock_model_configurations: Types::InlineBedrockModelConfigurations
1042
1051
  attr_accessor collaborator_configurations: ::Array[Types::CollaboratorConfiguration]
1043
1052
  attr_accessor collaborators: ::Array[Types::Collaborator]
1053
+ attr_accessor custom_orchestration: Types::CustomOrchestration
1044
1054
  attr_accessor customer_encryption_key_arn: ::String
1045
1055
  attr_accessor enable_trace: bool
1046
1056
  attr_accessor end_session: bool
@@ -1051,10 +1061,11 @@ module Aws::BedrockAgentRuntime
1051
1061
  attr_accessor input_text: ::String
1052
1062
  attr_accessor instruction: ::String
1053
1063
  attr_accessor knowledge_bases: ::Array[Types::KnowledgeBase]
1064
+ attr_accessor orchestration_type: ("DEFAULT" | "CUSTOM_ORCHESTRATION")
1054
1065
  attr_accessor prompt_override_configuration: Types::PromptOverrideConfiguration
1055
1066
  attr_accessor session_id: ::String
1056
1067
  attr_accessor streaming_configurations: Types::StreamingConfigurations
1057
- SENSITIVE: [:input_text, :instruction, :prompt_override_configuration]
1068
+ SENSITIVE: [:agent_name, :input_text, :instruction, :prompt_override_configuration]
1058
1069
  end
1059
1070
 
1060
1071
  class InvokeInlineAgentResponse
@@ -1289,6 +1300,17 @@ module Aws::BedrockAgentRuntime
1289
1300
  SENSITIVE: []
1290
1301
  end
1291
1302
 
1303
+ class OrchestrationExecutor
1304
+ attr_accessor lambda: ::String
1305
+ attr_accessor unknown: untyped
1306
+ SENSITIVE: []
1307
+
1308
+ class Lambda < OrchestrationExecutor
1309
+ end
1310
+ class Unknown < OrchestrationExecutor
1311
+ end
1312
+ end
1313
+
1292
1314
  class OrchestrationModelInvocationOutput
1293
1315
  attr_accessor metadata: Types::Metadata
1294
1316
  attr_accessor raw_response: Types::RawResponse
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.51.0
4
+ version: 1.52.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-04-28 00:00:00.000000000 Z
11
+ date: 2025-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core