aws-sdk-bedrockagentruntime 1.33.0 → 1.34.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockagentruntime/client.rb +12 -1
- data/lib/aws-sdk-bedrockagentruntime/client_api.rb +18 -0
- data/lib/aws-sdk-bedrockagentruntime/types.rb +67 -2
- data/lib/aws-sdk-bedrockagentruntime.rb +1 -1
- data/sig/client.rbs +4 -0
- data/sig/types.rbs +22 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4323d0c750789e655b49066e936b555266047e9b5f49edd619a6e32ff610bd8e
|
4
|
+
data.tar.gz: 142fd66af3d8a2475d20fd2b30fe045f892bcd8adda0b69f2352fd60f31246c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9873898be9fdec71740cf215519847dd61b9bd31c5d51cce787cba2400e63b7f272df0e7a7b74a53d83230a56c1f0dfedce4d874bddc2f09e4ada4c0ffda2abf
|
7
|
+
data.tar.gz: f32be859ee44a6ff27508845624ea2bc39f265ae94aee41164df42fdd4b313313acbc911ed046bb373a4cf250995aab7a1b0844291e5c53f5a2193d8ad1afdbf
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.34.0
|
@@ -637,6 +637,9 @@ module Aws::BedrockAgentRuntime
|
|
637
637
|
#
|
638
638
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html
|
639
639
|
#
|
640
|
+
# @option params [Types::StreamingConfigurations] :streaming_configurations
|
641
|
+
# Specifies the configurations for streaming.
|
642
|
+
#
|
640
643
|
# @return [Types::InvokeAgentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
641
644
|
#
|
642
645
|
# * {Types::InvokeAgentResponse#completion #completion} => Types::ResponseStream
|
@@ -976,6 +979,10 @@ module Aws::BedrockAgentRuntime
|
|
976
979
|
# "String" => "String",
|
977
980
|
# },
|
978
981
|
# },
|
982
|
+
# streaming_configurations: {
|
983
|
+
# apply_guardrail_interval: 1,
|
984
|
+
# stream_final_response: false,
|
985
|
+
# },
|
979
986
|
# })
|
980
987
|
#
|
981
988
|
# @example Response structure
|
@@ -1061,6 +1068,8 @@ module Aws::BedrockAgentRuntime
|
|
1061
1068
|
# event.agent_id #=> String
|
1062
1069
|
# event.agent_version #=> String
|
1063
1070
|
# event.session_id #=> String
|
1071
|
+
# event.trace.custom_orchestration_trace.event.text #=> String
|
1072
|
+
# event.trace.custom_orchestration_trace.trace_id #=> String
|
1064
1073
|
# event.trace.failure_trace.failure_reason #=> String
|
1065
1074
|
# event.trace.failure_trace.trace_id #=> String
|
1066
1075
|
# event.trace.guardrail_trace.action #=> String, one of "INTERVENED", "NONE"
|
@@ -2157,6 +2166,8 @@ module Aws::BedrockAgentRuntime
|
|
2157
2166
|
#
|
2158
2167
|
# For :trace event available at #on_trace_event callback and response eventstream enumerator:
|
2159
2168
|
# event.session_id #=> String
|
2169
|
+
# event.trace.custom_orchestration_trace.event.text #=> String
|
2170
|
+
# event.trace.custom_orchestration_trace.trace_id #=> String
|
2160
2171
|
# event.trace.failure_trace.failure_reason #=> String
|
2161
2172
|
# event.trace.failure_trace.trace_id #=> String
|
2162
2173
|
# event.trace.guardrail_trace.action #=> String, one of "INTERVENED", "NONE"
|
@@ -2964,7 +2975,7 @@ module Aws::BedrockAgentRuntime
|
|
2964
2975
|
tracer: tracer
|
2965
2976
|
)
|
2966
2977
|
context[:gem_name] = 'aws-sdk-bedrockagentruntime'
|
2967
|
-
context[:gem_version] = '1.
|
2978
|
+
context[:gem_version] = '1.34.0'
|
2968
2979
|
Seahorse::Client::Request.new(handlers, context)
|
2969
2980
|
end
|
2970
2981
|
|
@@ -58,6 +58,8 @@ module Aws::BedrockAgentRuntime
|
|
58
58
|
ContentType = Shapes::StringShape.new(name: 'ContentType')
|
59
59
|
CreationMode = Shapes::StringShape.new(name: 'CreationMode')
|
60
60
|
CustomControlMethod = Shapes::StringShape.new(name: 'CustomControlMethod')
|
61
|
+
CustomOrchestrationTrace = Shapes::StructureShape.new(name: 'CustomOrchestrationTrace')
|
62
|
+
CustomOrchestrationTraceEvent = Shapes::StructureShape.new(name: 'CustomOrchestrationTraceEvent')
|
61
63
|
DateTimestamp = Shapes::TimestampShape.new(name: 'DateTimestamp', timestampFormat: "iso8601")
|
62
64
|
DeleteAgentMemoryRequest = Shapes::StructureShape.new(name: 'DeleteAgentMemoryRequest')
|
63
65
|
DeleteAgentMemoryResponse = Shapes::StructureShape.new(name: 'DeleteAgentMemoryResponse')
|
@@ -318,6 +320,8 @@ module Aws::BedrockAgentRuntime
|
|
318
320
|
SpanEndInteger = Shapes::IntegerShape.new(name: 'SpanEndInteger')
|
319
321
|
SpanStartInteger = Shapes::IntegerShape.new(name: 'SpanStartInteger')
|
320
322
|
StopSequences = Shapes::ListShape.new(name: 'StopSequences')
|
323
|
+
StreamingConfigurations = Shapes::StructureShape.new(name: 'StreamingConfigurations')
|
324
|
+
StreamingConfigurationsApplyGuardrailIntervalInteger = Shapes::IntegerShape.new(name: 'StreamingConfigurationsApplyGuardrailIntervalInteger')
|
321
325
|
String = Shapes::StringShape.new(name: 'String')
|
322
326
|
SummaryText = Shapes::StringShape.new(name: 'SummaryText')
|
323
327
|
Temperature = Shapes::FloatShape.new(name: 'Temperature')
|
@@ -457,6 +461,13 @@ module Aws::BedrockAgentRuntime
|
|
457
461
|
ContentMap.key = Shapes::ShapeRef.new(shape: String)
|
458
462
|
ContentMap.value = Shapes::ShapeRef.new(shape: Parameters)
|
459
463
|
|
464
|
+
CustomOrchestrationTrace.add_member(:event, Shapes::ShapeRef.new(shape: CustomOrchestrationTraceEvent, location_name: "event"))
|
465
|
+
CustomOrchestrationTrace.add_member(:trace_id, Shapes::ShapeRef.new(shape: TraceId, location_name: "traceId"))
|
466
|
+
CustomOrchestrationTrace.struct_class = Types::CustomOrchestrationTrace
|
467
|
+
|
468
|
+
CustomOrchestrationTraceEvent.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "text"))
|
469
|
+
CustomOrchestrationTraceEvent.struct_class = Types::CustomOrchestrationTraceEvent
|
470
|
+
|
460
471
|
DeleteAgentMemoryRequest.add_member(:agent_alias_id, Shapes::ShapeRef.new(shape: AgentAliasId, required: true, location: "uri", location_name: "agentAliasId"))
|
461
472
|
DeleteAgentMemoryRequest.add_member(:agent_id, Shapes::ShapeRef.new(shape: AgentId, required: true, location: "uri", location_name: "agentId"))
|
462
473
|
DeleteAgentMemoryRequest.add_member(:memory_id, Shapes::ShapeRef.new(shape: MemoryId, location: "querystring", location_name: "memoryId"))
|
@@ -834,6 +845,7 @@ module Aws::BedrockAgentRuntime
|
|
834
845
|
InvokeAgentRequest.add_member(:memory_id, Shapes::ShapeRef.new(shape: MemoryId, location_name: "memoryId"))
|
835
846
|
InvokeAgentRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, required: true, location: "uri", location_name: "sessionId"))
|
836
847
|
InvokeAgentRequest.add_member(:session_state, Shapes::ShapeRef.new(shape: SessionState, location_name: "sessionState"))
|
848
|
+
InvokeAgentRequest.add_member(:streaming_configurations, Shapes::ShapeRef.new(shape: StreamingConfigurations, location_name: "streamingConfigurations"))
|
837
849
|
InvokeAgentRequest.struct_class = Types::InvokeAgentRequest
|
838
850
|
|
839
851
|
InvokeAgentResponse.add_member(:completion, Shapes::ShapeRef.new(shape: ResponseStream, required: true, eventstream: true, location_name: "completion"))
|
@@ -1278,6 +1290,10 @@ module Aws::BedrockAgentRuntime
|
|
1278
1290
|
|
1279
1291
|
StopSequences.member = Shapes::ShapeRef.new(shape: String)
|
1280
1292
|
|
1293
|
+
StreamingConfigurations.add_member(:apply_guardrail_interval, Shapes::ShapeRef.new(shape: StreamingConfigurationsApplyGuardrailIntervalInteger, location_name: "applyGuardrailInterval"))
|
1294
|
+
StreamingConfigurations.add_member(:stream_final_response, Shapes::ShapeRef.new(shape: Boolean, location_name: "streamFinalResponse"))
|
1295
|
+
StreamingConfigurations.struct_class = Types::StreamingConfigurations
|
1296
|
+
|
1281
1297
|
TextInferenceConfig.add_member(:max_tokens, Shapes::ShapeRef.new(shape: MaxTokens, location_name: "maxTokens"))
|
1282
1298
|
TextInferenceConfig.add_member(:stop_sequences, Shapes::ShapeRef.new(shape: RAGStopSequences, location_name: "stopSequences"))
|
1283
1299
|
TextInferenceConfig.add_member(:temperature, Shapes::ShapeRef.new(shape: Temperature, location_name: "temperature"))
|
@@ -1294,12 +1310,14 @@ module Aws::BedrockAgentRuntime
|
|
1294
1310
|
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
1295
1311
|
ThrottlingException.struct_class = Types::ThrottlingException
|
1296
1312
|
|
1313
|
+
Trace.add_member(:custom_orchestration_trace, Shapes::ShapeRef.new(shape: CustomOrchestrationTrace, location_name: "customOrchestrationTrace"))
|
1297
1314
|
Trace.add_member(:failure_trace, Shapes::ShapeRef.new(shape: FailureTrace, location_name: "failureTrace"))
|
1298
1315
|
Trace.add_member(:guardrail_trace, Shapes::ShapeRef.new(shape: GuardrailTrace, location_name: "guardrailTrace"))
|
1299
1316
|
Trace.add_member(:orchestration_trace, Shapes::ShapeRef.new(shape: OrchestrationTrace, location_name: "orchestrationTrace"))
|
1300
1317
|
Trace.add_member(:post_processing_trace, Shapes::ShapeRef.new(shape: PostProcessingTrace, location_name: "postProcessingTrace"))
|
1301
1318
|
Trace.add_member(:pre_processing_trace, Shapes::ShapeRef.new(shape: PreProcessingTrace, location_name: "preProcessingTrace"))
|
1302
1319
|
Trace.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
1320
|
+
Trace.add_member_subclass(:custom_orchestration_trace, Types::Trace::CustomOrchestrationTrace)
|
1303
1321
|
Trace.add_member_subclass(:failure_trace, Types::Trace::FailureTrace)
|
1304
1322
|
Trace.add_member_subclass(:guardrail_trace, Types::Trace::GuardrailTrace)
|
1305
1323
|
Trace.add_member_subclass(:orchestration_trace, Types::Trace::OrchestrationTrace)
|
@@ -636,6 +636,39 @@ module Aws::BedrockAgentRuntime
|
|
636
636
|
include Aws::Structure
|
637
637
|
end
|
638
638
|
|
639
|
+
# The trace behavior for the custom orchestration.
|
640
|
+
#
|
641
|
+
# @!attribute [rw] event
|
642
|
+
# The trace event details used with the custom orchestration.
|
643
|
+
# @return [Types::CustomOrchestrationTraceEvent]
|
644
|
+
#
|
645
|
+
# @!attribute [rw] trace_id
|
646
|
+
# The unique identifier of the trace.
|
647
|
+
# @return [String]
|
648
|
+
#
|
649
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/CustomOrchestrationTrace AWS API Documentation
|
650
|
+
#
|
651
|
+
class CustomOrchestrationTrace < Struct.new(
|
652
|
+
:event,
|
653
|
+
:trace_id)
|
654
|
+
SENSITIVE = [:event]
|
655
|
+
include Aws::Structure
|
656
|
+
end
|
657
|
+
|
658
|
+
# The event in the custom orchestration sequence.
|
659
|
+
#
|
660
|
+
# @!attribute [rw] text
|
661
|
+
# The text that prompted the event at this step.
|
662
|
+
# @return [String]
|
663
|
+
#
|
664
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/CustomOrchestrationTraceEvent AWS API Documentation
|
665
|
+
#
|
666
|
+
class CustomOrchestrationTraceEvent < Struct.new(
|
667
|
+
:text)
|
668
|
+
SENSITIVE = []
|
669
|
+
include Aws::Structure
|
670
|
+
end
|
671
|
+
|
639
672
|
# @!attribute [rw] agent_alias_id
|
640
673
|
# The unique identifier of an alias of an agent.
|
641
674
|
# @return [String]
|
@@ -2369,6 +2402,10 @@ module Aws::BedrockAgentRuntime
|
|
2369
2402
|
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html
|
2370
2403
|
# @return [Types::SessionState]
|
2371
2404
|
#
|
2405
|
+
# @!attribute [rw] streaming_configurations
|
2406
|
+
# Specifies the configurations for streaming.
|
2407
|
+
# @return [Types::StreamingConfigurations]
|
2408
|
+
#
|
2372
2409
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/InvokeAgentRequest AWS API Documentation
|
2373
2410
|
#
|
2374
2411
|
class InvokeAgentRequest < Struct.new(
|
@@ -2379,7 +2416,8 @@ module Aws::BedrockAgentRuntime
|
|
2379
2416
|
:input_text,
|
2380
2417
|
:memory_id,
|
2381
2418
|
:session_id,
|
2382
|
-
:session_state
|
2419
|
+
:session_state,
|
2420
|
+
:streaming_configurations)
|
2383
2421
|
SENSITIVE = [:input_text]
|
2384
2422
|
include Aws::Structure
|
2385
2423
|
end
|
@@ -4712,6 +4750,26 @@ module Aws::BedrockAgentRuntime
|
|
4712
4750
|
include Aws::Structure
|
4713
4751
|
end
|
4714
4752
|
|
4753
|
+
# Configurations for streaming.
|
4754
|
+
#
|
4755
|
+
# @!attribute [rw] apply_guardrail_interval
|
4756
|
+
# The guardrail interval to apply as response is generated.
|
4757
|
+
# @return [Integer]
|
4758
|
+
#
|
4759
|
+
# @!attribute [rw] stream_final_response
|
4760
|
+
# Specifies whether to enable streaming for the final response. This
|
4761
|
+
# is set to `false` by default.
|
4762
|
+
# @return [Boolean]
|
4763
|
+
#
|
4764
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/StreamingConfigurations AWS API Documentation
|
4765
|
+
#
|
4766
|
+
class StreamingConfigurations < Struct.new(
|
4767
|
+
:apply_guardrail_interval,
|
4768
|
+
:stream_final_response)
|
4769
|
+
SENSITIVE = []
|
4770
|
+
include Aws::Structure
|
4771
|
+
end
|
4772
|
+
|
4715
4773
|
# Configuration settings for text generation using a language model via
|
4716
4774
|
# the RetrieveAndGenerate operation. Includes parameters like
|
4717
4775
|
# temperature, top-p, maximum token count, and stop sequences.
|
@@ -4839,6 +4897,11 @@ module Aws::BedrockAgentRuntime
|
|
4839
4897
|
#
|
4840
4898
|
# @note Trace is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of Trace corresponding to the set member.
|
4841
4899
|
#
|
4900
|
+
# @!attribute [rw] custom_orchestration_trace
|
4901
|
+
# Details about the custom orchestration step in which the agent
|
4902
|
+
# determines the order in which actions are executed.
|
4903
|
+
# @return [Types::CustomOrchestrationTrace]
|
4904
|
+
#
|
4842
4905
|
# @!attribute [rw] failure_trace
|
4843
4906
|
# Contains information about the failure of the interaction.
|
4844
4907
|
# @return [Types::FailureTrace]
|
@@ -4866,16 +4929,18 @@ module Aws::BedrockAgentRuntime
|
|
4866
4929
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/Trace AWS API Documentation
|
4867
4930
|
#
|
4868
4931
|
class Trace < Struct.new(
|
4932
|
+
:custom_orchestration_trace,
|
4869
4933
|
:failure_trace,
|
4870
4934
|
:guardrail_trace,
|
4871
4935
|
:orchestration_trace,
|
4872
4936
|
:post_processing_trace,
|
4873
4937
|
:pre_processing_trace,
|
4874
4938
|
:unknown)
|
4875
|
-
SENSITIVE = [:failure_trace, :guardrail_trace, :orchestration_trace, :post_processing_trace, :pre_processing_trace]
|
4939
|
+
SENSITIVE = [:custom_orchestration_trace, :failure_trace, :guardrail_trace, :orchestration_trace, :post_processing_trace, :pre_processing_trace]
|
4876
4940
|
include Aws::Structure
|
4877
4941
|
include Aws::Structure::Union
|
4878
4942
|
|
4943
|
+
class CustomOrchestrationTrace < Trace; end
|
4879
4944
|
class FailureTrace < Trace; end
|
4880
4945
|
class GuardrailTrace < Trace; end
|
4881
4946
|
class OrchestrationTrace < Trace; end
|
data/sig/client.rbs
CHANGED
@@ -239,6 +239,10 @@ module Aws
|
|
239
239
|
},
|
240
240
|
]?,
|
241
241
|
session_attributes: Hash[::String, ::String]?
|
242
|
+
},
|
243
|
+
?streaming_configurations: {
|
244
|
+
apply_guardrail_interval: ::Integer?,
|
245
|
+
stream_final_response: bool?
|
242
246
|
}
|
243
247
|
) ?{ (*untyped) -> void } -> _InvokeAgentResponseSuccess
|
244
248
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeAgentResponseSuccess
|
data/sig/types.rbs
CHANGED
@@ -164,6 +164,17 @@ module Aws::BedrockAgentRuntime
|
|
164
164
|
SENSITIVE: []
|
165
165
|
end
|
166
166
|
|
167
|
+
class CustomOrchestrationTrace
|
168
|
+
attr_accessor event: Types::CustomOrchestrationTraceEvent
|
169
|
+
attr_accessor trace_id: ::String
|
170
|
+
SENSITIVE: [:event]
|
171
|
+
end
|
172
|
+
|
173
|
+
class CustomOrchestrationTraceEvent
|
174
|
+
attr_accessor text: ::String
|
175
|
+
SENSITIVE: []
|
176
|
+
end
|
177
|
+
|
167
178
|
class DeleteAgentMemoryRequest
|
168
179
|
attr_accessor agent_alias_id: ::String
|
169
180
|
attr_accessor agent_id: ::String
|
@@ -643,6 +654,7 @@ module Aws::BedrockAgentRuntime
|
|
643
654
|
attr_accessor memory_id: ::String
|
644
655
|
attr_accessor session_id: ::String
|
645
656
|
attr_accessor session_state: Types::SessionState
|
657
|
+
attr_accessor streaming_configurations: Types::StreamingConfigurations
|
646
658
|
SENSITIVE: [:input_text]
|
647
659
|
end
|
648
660
|
|
@@ -1195,6 +1207,12 @@ module Aws::BedrockAgentRuntime
|
|
1195
1207
|
SENSITIVE: []
|
1196
1208
|
end
|
1197
1209
|
|
1210
|
+
class StreamingConfigurations
|
1211
|
+
attr_accessor apply_guardrail_interval: ::Integer
|
1212
|
+
attr_accessor stream_final_response: bool
|
1213
|
+
SENSITIVE: []
|
1214
|
+
end
|
1215
|
+
|
1198
1216
|
class TextInferenceConfig
|
1199
1217
|
attr_accessor max_tokens: ::Integer
|
1200
1218
|
attr_accessor stop_sequences: ::Array[::String]
|
@@ -1221,14 +1239,17 @@ module Aws::BedrockAgentRuntime
|
|
1221
1239
|
end
|
1222
1240
|
|
1223
1241
|
class Trace
|
1242
|
+
attr_accessor custom_orchestration_trace: Types::CustomOrchestrationTrace
|
1224
1243
|
attr_accessor failure_trace: Types::FailureTrace
|
1225
1244
|
attr_accessor guardrail_trace: Types::GuardrailTrace
|
1226
1245
|
attr_accessor orchestration_trace: Types::OrchestrationTrace
|
1227
1246
|
attr_accessor post_processing_trace: Types::PostProcessingTrace
|
1228
1247
|
attr_accessor pre_processing_trace: Types::PreProcessingTrace
|
1229
1248
|
attr_accessor unknown: untyped
|
1230
|
-
SENSITIVE: [:failure_trace, :guardrail_trace, :orchestration_trace, :post_processing_trace, :pre_processing_trace]
|
1249
|
+
SENSITIVE: [:custom_orchestration_trace, :failure_trace, :guardrail_trace, :orchestration_trace, :post_processing_trace, :pre_processing_trace]
|
1231
1250
|
|
1251
|
+
class CustomOrchestrationTrace < Trace
|
1252
|
+
end
|
1232
1253
|
class FailureTrace < Trace
|
1233
1254
|
end
|
1234
1255
|
class GuardrailTrace < Trace
|
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.
|
4
|
+
version: 1.34.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-11-
|
11
|
+
date: 2024-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|