aws-sdk-bedrockagentruntime 1.30.0 → 1.32.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockagentruntime/client.rb +274 -3
- data/lib/aws-sdk-bedrockagentruntime/client_api.rb +137 -0
- data/lib/aws-sdk-bedrockagentruntime/event_streams.rb +74 -0
- data/lib/aws-sdk-bedrockagentruntime/types.rb +450 -64
- data/lib/aws-sdk-bedrockagentruntime.rb +1 -1
- data/sig/client.rbs +16 -0
- data/sig/types.rbs +139 -1
- metadata +2 -2
@@ -133,6 +133,10 @@ module Aws::BedrockAgentRuntime
|
|
133
133
|
@event_emitter.on(:flow_output_event, block) if block_given?
|
134
134
|
end
|
135
135
|
|
136
|
+
def on_flow_trace_event_event(&block)
|
137
|
+
@event_emitter.on(:flow_trace_event, block) if block_given?
|
138
|
+
end
|
139
|
+
|
136
140
|
def on_internal_server_exception_event(&block)
|
137
141
|
@event_emitter.on(:internal_server_exception, block) if block_given?
|
138
142
|
end
|
@@ -172,6 +176,7 @@ module Aws::BedrockAgentRuntime
|
|
172
176
|
on_dependency_failed_exception_event(&block)
|
173
177
|
on_flow_completion_event_event(&block)
|
174
178
|
on_flow_output_event_event(&block)
|
179
|
+
on_flow_trace_event_event(&block)
|
175
180
|
on_internal_server_exception_event(&block)
|
176
181
|
on_resource_not_found_exception_event(&block)
|
177
182
|
on_service_quota_exceeded_exception_event(&block)
|
@@ -187,6 +192,75 @@ module Aws::BedrockAgentRuntime
|
|
187
192
|
attr_reader :event_emitter
|
188
193
|
|
189
194
|
end
|
195
|
+
class OptimizedPromptStream
|
196
|
+
|
197
|
+
def initialize
|
198
|
+
@event_emitter = Aws::EventEmitter.new
|
199
|
+
end
|
200
|
+
|
201
|
+
def on_access_denied_exception_event(&block)
|
202
|
+
@event_emitter.on(:access_denied_exception, block) if block_given?
|
203
|
+
end
|
204
|
+
|
205
|
+
def on_analyze_prompt_event_event(&block)
|
206
|
+
@event_emitter.on(:analyze_prompt_event, block) if block_given?
|
207
|
+
end
|
208
|
+
|
209
|
+
def on_bad_gateway_exception_event(&block)
|
210
|
+
@event_emitter.on(:bad_gateway_exception, block) if block_given?
|
211
|
+
end
|
212
|
+
|
213
|
+
def on_dependency_failed_exception_event(&block)
|
214
|
+
@event_emitter.on(:dependency_failed_exception, block) if block_given?
|
215
|
+
end
|
216
|
+
|
217
|
+
def on_internal_server_exception_event(&block)
|
218
|
+
@event_emitter.on(:internal_server_exception, block) if block_given?
|
219
|
+
end
|
220
|
+
|
221
|
+
def on_optimized_prompt_event_event(&block)
|
222
|
+
@event_emitter.on(:optimized_prompt_event, block) if block_given?
|
223
|
+
end
|
224
|
+
|
225
|
+
def on_throttling_exception_event(&block)
|
226
|
+
@event_emitter.on(:throttling_exception, block) if block_given?
|
227
|
+
end
|
228
|
+
|
229
|
+
def on_validation_exception_event(&block)
|
230
|
+
@event_emitter.on(:validation_exception, block) if block_given?
|
231
|
+
end
|
232
|
+
|
233
|
+
def on_error_event(&block)
|
234
|
+
@event_emitter.on(:error, block) if block_given?
|
235
|
+
end
|
236
|
+
|
237
|
+
def on_initial_response_event(&block)
|
238
|
+
@event_emitter.on(:initial_response, block) if block_given?
|
239
|
+
end
|
240
|
+
|
241
|
+
def on_unknown_event(&block)
|
242
|
+
@event_emitter.on(:unknown_event, block) if block_given?
|
243
|
+
end
|
244
|
+
|
245
|
+
def on_event(&block)
|
246
|
+
on_access_denied_exception_event(&block)
|
247
|
+
on_analyze_prompt_event_event(&block)
|
248
|
+
on_bad_gateway_exception_event(&block)
|
249
|
+
on_dependency_failed_exception_event(&block)
|
250
|
+
on_internal_server_exception_event(&block)
|
251
|
+
on_optimized_prompt_event_event(&block)
|
252
|
+
on_throttling_exception_event(&block)
|
253
|
+
on_validation_exception_event(&block)
|
254
|
+
on_error_event(&block)
|
255
|
+
on_initial_response_event(&block)
|
256
|
+
on_unknown_event(&block)
|
257
|
+
end
|
258
|
+
|
259
|
+
# @api private
|
260
|
+
# @return Aws::EventEmitter
|
261
|
+
attr_reader :event_emitter
|
262
|
+
|
263
|
+
end
|
190
264
|
|
191
265
|
end
|
192
266
|
end
|