aws-sdk-bedrockagentruntime 1.32.0 → 1.33.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 +777 -4
- data/lib/aws-sdk-bedrockagentruntime/client_api.rb +197 -0
- data/lib/aws-sdk-bedrockagentruntime/event_streams.rb +94 -0
- data/lib/aws-sdk-bedrockagentruntime/types.rb +744 -0
- data/lib/aws-sdk-bedrockagentruntime.rb +1 -1
- data/sig/client.rbs +194 -0
- data/sig/types.rbs +164 -1
- metadata +2 -2
@@ -14,15 +14,20 @@ module Aws::BedrockAgentRuntime
|
|
14
14
|
|
15
15
|
include Seahorse::Model
|
16
16
|
|
17
|
+
APISchema = Shapes::UnionShape.new(name: 'APISchema')
|
17
18
|
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
19
|
+
ActionGroupExecutor = Shapes::UnionShape.new(name: 'ActionGroupExecutor')
|
18
20
|
ActionGroupInvocationInput = Shapes::StructureShape.new(name: 'ActionGroupInvocationInput')
|
19
21
|
ActionGroupInvocationOutput = Shapes::StructureShape.new(name: 'ActionGroupInvocationOutput')
|
20
22
|
ActionGroupName = Shapes::StringShape.new(name: 'ActionGroupName')
|
21
23
|
ActionGroupOutputString = Shapes::StringShape.new(name: 'ActionGroupOutputString')
|
24
|
+
ActionGroupSignature = Shapes::StringShape.new(name: 'ActionGroupSignature')
|
22
25
|
ActionInvocationType = Shapes::StringShape.new(name: 'ActionInvocationType')
|
23
26
|
AdditionalModelRequestFields = Shapes::MapShape.new(name: 'AdditionalModelRequestFields')
|
24
27
|
AdditionalModelRequestFieldsKey = Shapes::StringShape.new(name: 'AdditionalModelRequestFieldsKey')
|
25
28
|
AdditionalModelRequestFieldsValue = Shapes::DocumentShape.new(name: 'AdditionalModelRequestFieldsValue', document: true)
|
29
|
+
AgentActionGroup = Shapes::StructureShape.new(name: 'AgentActionGroup')
|
30
|
+
AgentActionGroups = Shapes::ListShape.new(name: 'AgentActionGroups')
|
26
31
|
AgentAliasId = Shapes::StringShape.new(name: 'AgentAliasId')
|
27
32
|
AgentId = Shapes::StringShape.new(name: 'AgentId')
|
28
33
|
AgentVersion = Shapes::StringShape.new(name: 'AgentVersion')
|
@@ -36,6 +41,7 @@ module Aws::BedrockAgentRuntime
|
|
36
41
|
ApiResult = Shapes::StructureShape.new(name: 'ApiResult')
|
37
42
|
Attribution = Shapes::StructureShape.new(name: 'Attribution')
|
38
43
|
BadGatewayException = Shapes::StructureShape.new(name: 'BadGatewayException')
|
44
|
+
BasePromptTemplate = Shapes::StringShape.new(name: 'BasePromptTemplate')
|
39
45
|
BedrockModelArn = Shapes::StringShape.new(name: 'BedrockModelArn')
|
40
46
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
41
47
|
ByteContentBlob = Shapes::BlobShape.new(name: 'ByteContentBlob')
|
@@ -51,6 +57,7 @@ module Aws::BedrockAgentRuntime
|
|
51
57
|
ContentMap = Shapes::MapShape.new(name: 'ContentMap')
|
52
58
|
ContentType = Shapes::StringShape.new(name: 'ContentType')
|
53
59
|
CreationMode = Shapes::StringShape.new(name: 'CreationMode')
|
60
|
+
CustomControlMethod = Shapes::StringShape.new(name: 'CustomControlMethod')
|
54
61
|
DateTimestamp = Shapes::TimestampShape.new(name: 'DateTimestamp', timestampFormat: "iso8601")
|
55
62
|
DeleteAgentMemoryRequest = Shapes::StructureShape.new(name: 'DeleteAgentMemoryRequest')
|
56
63
|
DeleteAgentMemoryResponse = Shapes::StructureShape.new(name: 'DeleteAgentMemoryResponse')
|
@@ -100,10 +107,14 @@ module Aws::BedrockAgentRuntime
|
|
100
107
|
FlowTraceNodeOutputField = Shapes::StructureShape.new(name: 'FlowTraceNodeOutputField')
|
101
108
|
FlowTraceNodeOutputFields = Shapes::ListShape.new(name: 'FlowTraceNodeOutputFields')
|
102
109
|
Function = Shapes::StringShape.new(name: 'Function')
|
110
|
+
FunctionDefinition = Shapes::StructureShape.new(name: 'FunctionDefinition')
|
111
|
+
FunctionDescription = Shapes::StringShape.new(name: 'FunctionDescription')
|
103
112
|
FunctionInvocationInput = Shapes::StructureShape.new(name: 'FunctionInvocationInput')
|
104
113
|
FunctionParameter = Shapes::StructureShape.new(name: 'FunctionParameter')
|
105
114
|
FunctionParameters = Shapes::ListShape.new(name: 'FunctionParameters')
|
106
115
|
FunctionResult = Shapes::StructureShape.new(name: 'FunctionResult')
|
116
|
+
FunctionSchema = Shapes::UnionShape.new(name: 'FunctionSchema')
|
117
|
+
Functions = Shapes::ListShape.new(name: 'Functions')
|
107
118
|
GeneratedResponsePart = Shapes::StructureShape.new(name: 'GeneratedResponsePart')
|
108
119
|
GenerationConfiguration = Shapes::StructureShape.new(name: 'GenerationConfiguration')
|
109
120
|
GetAgentMemoryRequest = Shapes::StructureShape.new(name: 'GetAgentMemoryRequest')
|
@@ -115,6 +126,7 @@ module Aws::BedrockAgentRuntime
|
|
115
126
|
GuardrailConfiguration = Shapes::StructureShape.new(name: 'GuardrailConfiguration')
|
116
127
|
GuardrailConfigurationGuardrailIdString = Shapes::StringShape.new(name: 'GuardrailConfigurationGuardrailIdString')
|
117
128
|
GuardrailConfigurationGuardrailVersionString = Shapes::StringShape.new(name: 'GuardrailConfigurationGuardrailVersionString')
|
129
|
+
GuardrailConfigurationWithArn = Shapes::StructureShape.new(name: 'GuardrailConfigurationWithArn')
|
118
130
|
GuardrailContentFilter = Shapes::StructureShape.new(name: 'GuardrailContentFilter')
|
119
131
|
GuardrailContentFilterConfidence = Shapes::StringShape.new(name: 'GuardrailContentFilterConfidence')
|
120
132
|
GuardrailContentFilterList = Shapes::ListShape.new(name: 'GuardrailContentFilterList')
|
@@ -123,6 +135,7 @@ module Aws::BedrockAgentRuntime
|
|
123
135
|
GuardrailContentPolicyAssessment = Shapes::StructureShape.new(name: 'GuardrailContentPolicyAssessment')
|
124
136
|
GuardrailCustomWord = Shapes::StructureShape.new(name: 'GuardrailCustomWord')
|
125
137
|
GuardrailCustomWordList = Shapes::ListShape.new(name: 'GuardrailCustomWordList')
|
138
|
+
GuardrailIdentifierWithArn = Shapes::StringShape.new(name: 'GuardrailIdentifierWithArn')
|
126
139
|
GuardrailManagedWord = Shapes::StructureShape.new(name: 'GuardrailManagedWord')
|
127
140
|
GuardrailManagedWordList = Shapes::ListShape.new(name: 'GuardrailManagedWordList')
|
128
141
|
GuardrailManagedWordType = Shapes::StringShape.new(name: 'GuardrailManagedWordType')
|
@@ -139,15 +152,23 @@ module Aws::BedrockAgentRuntime
|
|
139
152
|
GuardrailTopicPolicyAssessment = Shapes::StructureShape.new(name: 'GuardrailTopicPolicyAssessment')
|
140
153
|
GuardrailTopicType = Shapes::StringShape.new(name: 'GuardrailTopicType')
|
141
154
|
GuardrailTrace = Shapes::StructureShape.new(name: 'GuardrailTrace')
|
155
|
+
GuardrailVersion = Shapes::StringShape.new(name: 'GuardrailVersion')
|
142
156
|
GuardrailWordPolicyAction = Shapes::StringShape.new(name: 'GuardrailWordPolicyAction')
|
143
157
|
GuardrailWordPolicyAssessment = Shapes::StructureShape.new(name: 'GuardrailWordPolicyAssessment')
|
144
158
|
Identifier = Shapes::StringShape.new(name: 'Identifier')
|
145
159
|
InferenceConfig = Shapes::StructureShape.new(name: 'InferenceConfig')
|
146
160
|
InferenceConfiguration = Shapes::StructureShape.new(name: 'InferenceConfiguration')
|
161
|
+
InlineAgentFilePart = Shapes::StructureShape.new(name: 'InlineAgentFilePart')
|
162
|
+
InlineAgentPayloadPart = Shapes::StructureShape.new(name: 'InlineAgentPayloadPart')
|
163
|
+
InlineAgentResponseStream = Shapes::StructureShape.new(name: 'InlineAgentResponseStream')
|
164
|
+
InlineAgentReturnControlPayload = Shapes::StructureShape.new(name: 'InlineAgentReturnControlPayload')
|
165
|
+
InlineAgentTracePart = Shapes::StructureShape.new(name: 'InlineAgentTracePart')
|
166
|
+
InlineSessionState = Shapes::StructureShape.new(name: 'InlineSessionState')
|
147
167
|
InputFile = Shapes::StructureShape.new(name: 'InputFile')
|
148
168
|
InputFiles = Shapes::ListShape.new(name: 'InputFiles')
|
149
169
|
InputPrompt = Shapes::UnionShape.new(name: 'InputPrompt')
|
150
170
|
InputText = Shapes::StringShape.new(name: 'InputText')
|
171
|
+
Instruction = Shapes::StringShape.new(name: 'Instruction')
|
151
172
|
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
152
173
|
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
153
174
|
InvocationInput = Shapes::StructureShape.new(name: 'InvocationInput')
|
@@ -159,7 +180,10 @@ module Aws::BedrockAgentRuntime
|
|
159
180
|
InvokeAgentResponse = Shapes::StructureShape.new(name: 'InvokeAgentResponse')
|
160
181
|
InvokeFlowRequest = Shapes::StructureShape.new(name: 'InvokeFlowRequest')
|
161
182
|
InvokeFlowResponse = Shapes::StructureShape.new(name: 'InvokeFlowResponse')
|
183
|
+
InvokeInlineAgentRequest = Shapes::StructureShape.new(name: 'InvokeInlineAgentRequest')
|
184
|
+
InvokeInlineAgentResponse = Shapes::StructureShape.new(name: 'InvokeInlineAgentResponse')
|
162
185
|
KmsKeyArn = Shapes::StringShape.new(name: 'KmsKeyArn')
|
186
|
+
KnowledgeBase = Shapes::StructureShape.new(name: 'KnowledgeBase')
|
163
187
|
KnowledgeBaseConfiguration = Shapes::StructureShape.new(name: 'KnowledgeBaseConfiguration')
|
164
188
|
KnowledgeBaseConfigurations = Shapes::ListShape.new(name: 'KnowledgeBaseConfigurations')
|
165
189
|
KnowledgeBaseId = Shapes::StringShape.new(name: 'KnowledgeBaseId')
|
@@ -174,7 +198,9 @@ module Aws::BedrockAgentRuntime
|
|
174
198
|
KnowledgeBaseRetrieveAndGenerateConfiguration = Shapes::StructureShape.new(name: 'KnowledgeBaseRetrieveAndGenerateConfiguration')
|
175
199
|
KnowledgeBaseVectorSearchConfiguration = Shapes::StructureShape.new(name: 'KnowledgeBaseVectorSearchConfiguration')
|
176
200
|
KnowledgeBaseVectorSearchConfigurationNumberOfResultsInteger = Shapes::IntegerShape.new(name: 'KnowledgeBaseVectorSearchConfigurationNumberOfResultsInteger')
|
201
|
+
KnowledgeBases = Shapes::ListShape.new(name: 'KnowledgeBases')
|
177
202
|
LambdaArn = Shapes::StringShape.new(name: 'LambdaArn')
|
203
|
+
LambdaResourceArn = Shapes::StringShape.new(name: 'LambdaResourceArn')
|
178
204
|
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
179
205
|
MaxTokens = Shapes::IntegerShape.new(name: 'MaxTokens')
|
180
206
|
MaximumLength = Shapes::IntegerShape.new(name: 'MaximumLength')
|
@@ -185,6 +211,7 @@ module Aws::BedrockAgentRuntime
|
|
185
211
|
MemoryType = Shapes::StringShape.new(name: 'MemoryType')
|
186
212
|
Metadata = Shapes::StructureShape.new(name: 'Metadata')
|
187
213
|
MimeType = Shapes::StringShape.new(name: 'MimeType')
|
214
|
+
ModelIdentifier = Shapes::StringShape.new(name: 'ModelIdentifier')
|
188
215
|
ModelInvocationInput = Shapes::StructureShape.new(name: 'ModelInvocationInput')
|
189
216
|
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
190
217
|
NodeInputName = Shapes::StringShape.new(name: 'NodeInputName')
|
@@ -206,9 +233,15 @@ module Aws::BedrockAgentRuntime
|
|
206
233
|
OutputFiles = Shapes::ListShape.new(name: 'OutputFiles')
|
207
234
|
OutputString = Shapes::StringShape.new(name: 'OutputString')
|
208
235
|
Parameter = Shapes::StructureShape.new(name: 'Parameter')
|
236
|
+
ParameterDescription = Shapes::StringShape.new(name: 'ParameterDescription')
|
237
|
+
ParameterDetail = Shapes::StructureShape.new(name: 'ParameterDetail')
|
209
238
|
ParameterList = Shapes::ListShape.new(name: 'ParameterList')
|
239
|
+
ParameterMap = Shapes::MapShape.new(name: 'ParameterMap')
|
240
|
+
ParameterName = Shapes::StringShape.new(name: 'ParameterName')
|
241
|
+
ParameterType = Shapes::StringShape.new(name: 'ParameterType')
|
210
242
|
Parameters = Shapes::ListShape.new(name: 'Parameters')
|
211
243
|
PartBody = Shapes::BlobShape.new(name: 'PartBody')
|
244
|
+
Payload = Shapes::StringShape.new(name: 'Payload')
|
212
245
|
PayloadPart = Shapes::StructureShape.new(name: 'PayloadPart')
|
213
246
|
PostProcessingModelInvocationOutput = Shapes::StructureShape.new(name: 'PostProcessingModelInvocationOutput')
|
214
247
|
PostProcessingParsedResponse = Shapes::StructureShape.new(name: 'PostProcessingParsedResponse')
|
@@ -216,7 +249,11 @@ module Aws::BedrockAgentRuntime
|
|
216
249
|
PreProcessingModelInvocationOutput = Shapes::StructureShape.new(name: 'PreProcessingModelInvocationOutput')
|
217
250
|
PreProcessingParsedResponse = Shapes::StructureShape.new(name: 'PreProcessingParsedResponse')
|
218
251
|
PreProcessingTrace = Shapes::UnionShape.new(name: 'PreProcessingTrace')
|
252
|
+
PromptConfiguration = Shapes::StructureShape.new(name: 'PromptConfiguration')
|
253
|
+
PromptConfigurations = Shapes::ListShape.new(name: 'PromptConfigurations')
|
254
|
+
PromptOverrideConfiguration = Shapes::StructureShape.new(name: 'PromptOverrideConfiguration')
|
219
255
|
PromptSessionAttributesMap = Shapes::MapShape.new(name: 'PromptSessionAttributesMap')
|
256
|
+
PromptState = Shapes::StringShape.new(name: 'PromptState')
|
220
257
|
PromptTemplate = Shapes::StructureShape.new(name: 'PromptTemplate')
|
221
258
|
PromptText = Shapes::StringShape.new(name: 'PromptText')
|
222
259
|
PromptType = Shapes::StringShape.new(name: 'PromptType')
|
@@ -230,6 +267,9 @@ module Aws::BedrockAgentRuntime
|
|
230
267
|
RawResponse = Shapes::StructureShape.new(name: 'RawResponse')
|
231
268
|
RepromptResponse = Shapes::StructureShape.new(name: 'RepromptResponse')
|
232
269
|
RequestBody = Shapes::StructureShape.new(name: 'RequestBody')
|
270
|
+
RequireConfirmation = Shapes::StringShape.new(name: 'RequireConfirmation')
|
271
|
+
ResourceDescription = Shapes::StringShape.new(name: 'ResourceDescription')
|
272
|
+
ResourceName = Shapes::StringShape.new(name: 'ResourceName')
|
233
273
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
234
274
|
ResponseBody = Shapes::MapShape.new(name: 'ResponseBody')
|
235
275
|
ResponseState = Shapes::StringShape.new(name: 'ResponseState')
|
@@ -261,14 +301,18 @@ module Aws::BedrockAgentRuntime
|
|
261
301
|
RetrievedReferences = Shapes::ListShape.new(name: 'RetrievedReferences')
|
262
302
|
ReturnControlInvocationResults = Shapes::ListShape.new(name: 'ReturnControlInvocationResults')
|
263
303
|
ReturnControlPayload = Shapes::StructureShape.new(name: 'ReturnControlPayload')
|
304
|
+
S3BucketName = Shapes::StringShape.new(name: 'S3BucketName')
|
305
|
+
S3Identifier = Shapes::StructureShape.new(name: 'S3Identifier')
|
264
306
|
S3ObjectDoc = Shapes::StructureShape.new(name: 'S3ObjectDoc')
|
265
307
|
S3ObjectFile = Shapes::StructureShape.new(name: 'S3ObjectFile')
|
308
|
+
S3ObjectKey = Shapes::StringShape.new(name: 'S3ObjectKey')
|
266
309
|
S3Uri = Shapes::StringShape.new(name: 'S3Uri')
|
267
310
|
SearchType = Shapes::StringShape.new(name: 'SearchType')
|
268
311
|
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
269
312
|
SessionAttributesMap = Shapes::MapShape.new(name: 'SessionAttributesMap')
|
270
313
|
SessionId = Shapes::StringShape.new(name: 'SessionId')
|
271
314
|
SessionState = Shapes::StructureShape.new(name: 'SessionState')
|
315
|
+
SessionTTL = Shapes::IntegerShape.new(name: 'SessionTTL')
|
272
316
|
Source = Shapes::StringShape.new(name: 'Source')
|
273
317
|
Span = Shapes::StructureShape.new(name: 'Span')
|
274
318
|
SpanEndInteger = Shapes::IntegerShape.new(name: 'SpanEndInteger')
|
@@ -294,9 +338,25 @@ module Aws::BedrockAgentRuntime
|
|
294
338
|
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
295
339
|
Verb = Shapes::StringShape.new(name: 'Verb')
|
296
340
|
|
341
|
+
APISchema.add_member(:payload, Shapes::ShapeRef.new(shape: Payload, location_name: "payload"))
|
342
|
+
APISchema.add_member(:s3, Shapes::ShapeRef.new(shape: S3Identifier, location_name: "s3"))
|
343
|
+
APISchema.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
344
|
+
APISchema.add_member_subclass(:payload, Types::APISchema::Payload)
|
345
|
+
APISchema.add_member_subclass(:s3, Types::APISchema::S3)
|
346
|
+
APISchema.add_member_subclass(:unknown, Types::APISchema::Unknown)
|
347
|
+
APISchema.struct_class = Types::APISchema
|
348
|
+
|
297
349
|
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
298
350
|
AccessDeniedException.struct_class = Types::AccessDeniedException
|
299
351
|
|
352
|
+
ActionGroupExecutor.add_member(:custom_control, Shapes::ShapeRef.new(shape: CustomControlMethod, location_name: "customControl"))
|
353
|
+
ActionGroupExecutor.add_member(:lambda, Shapes::ShapeRef.new(shape: LambdaResourceArn, location_name: "lambda"))
|
354
|
+
ActionGroupExecutor.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
355
|
+
ActionGroupExecutor.add_member_subclass(:custom_control, Types::ActionGroupExecutor::CustomControl)
|
356
|
+
ActionGroupExecutor.add_member_subclass(:lambda, Types::ActionGroupExecutor::Lambda)
|
357
|
+
ActionGroupExecutor.add_member_subclass(:unknown, Types::ActionGroupExecutor::Unknown)
|
358
|
+
ActionGroupExecutor.struct_class = Types::ActionGroupExecutor
|
359
|
+
|
300
360
|
ActionGroupInvocationInput.add_member(:action_group_name, Shapes::ShapeRef.new(shape: ActionGroupName, location_name: "actionGroupName"))
|
301
361
|
ActionGroupInvocationInput.add_member(:api_path, Shapes::ShapeRef.new(shape: ApiPath, location_name: "apiPath"))
|
302
362
|
ActionGroupInvocationInput.add_member(:execution_type, Shapes::ShapeRef.new(shape: ExecutionType, location_name: "executionType"))
|
@@ -313,6 +373,16 @@ module Aws::BedrockAgentRuntime
|
|
313
373
|
AdditionalModelRequestFields.key = Shapes::ShapeRef.new(shape: AdditionalModelRequestFieldsKey)
|
314
374
|
AdditionalModelRequestFields.value = Shapes::ShapeRef.new(shape: AdditionalModelRequestFieldsValue)
|
315
375
|
|
376
|
+
AgentActionGroup.add_member(:action_group_executor, Shapes::ShapeRef.new(shape: ActionGroupExecutor, location_name: "actionGroupExecutor"))
|
377
|
+
AgentActionGroup.add_member(:action_group_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "actionGroupName"))
|
378
|
+
AgentActionGroup.add_member(:api_schema, Shapes::ShapeRef.new(shape: APISchema, location_name: "apiSchema"))
|
379
|
+
AgentActionGroup.add_member(:description, Shapes::ShapeRef.new(shape: ResourceDescription, location_name: "description"))
|
380
|
+
AgentActionGroup.add_member(:function_schema, Shapes::ShapeRef.new(shape: FunctionSchema, location_name: "functionSchema"))
|
381
|
+
AgentActionGroup.add_member(:parent_action_group_signature, Shapes::ShapeRef.new(shape: ActionGroupSignature, location_name: "parentActionGroupSignature"))
|
382
|
+
AgentActionGroup.struct_class = Types::AgentActionGroup
|
383
|
+
|
384
|
+
AgentActionGroups.member = Shapes::ShapeRef.new(shape: AgentActionGroup)
|
385
|
+
|
316
386
|
AnalyzePromptEvent.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
317
387
|
AnalyzePromptEvent.struct_class = Types::AnalyzePromptEvent
|
318
388
|
|
@@ -535,6 +605,12 @@ module Aws::BedrockAgentRuntime
|
|
535
605
|
|
536
606
|
FlowTraceNodeOutputFields.member = Shapes::ShapeRef.new(shape: FlowTraceNodeOutputField)
|
537
607
|
|
608
|
+
FunctionDefinition.add_member(:description, Shapes::ShapeRef.new(shape: FunctionDescription, location_name: "description"))
|
609
|
+
FunctionDefinition.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "name"))
|
610
|
+
FunctionDefinition.add_member(:parameters, Shapes::ShapeRef.new(shape: ParameterMap, location_name: "parameters"))
|
611
|
+
FunctionDefinition.add_member(:require_confirmation, Shapes::ShapeRef.new(shape: RequireConfirmation, location_name: "requireConfirmation"))
|
612
|
+
FunctionDefinition.struct_class = Types::FunctionDefinition
|
613
|
+
|
538
614
|
FunctionInvocationInput.add_member(:action_group, Shapes::ShapeRef.new(shape: String, required: true, location_name: "actionGroup"))
|
539
615
|
FunctionInvocationInput.add_member(:action_invocation_type, Shapes::ShapeRef.new(shape: ActionInvocationType, location_name: "actionInvocationType"))
|
540
616
|
FunctionInvocationInput.add_member(:function, Shapes::ShapeRef.new(shape: String, location_name: "function"))
|
@@ -555,6 +631,14 @@ module Aws::BedrockAgentRuntime
|
|
555
631
|
FunctionResult.add_member(:response_state, Shapes::ShapeRef.new(shape: ResponseState, location_name: "responseState"))
|
556
632
|
FunctionResult.struct_class = Types::FunctionResult
|
557
633
|
|
634
|
+
FunctionSchema.add_member(:functions, Shapes::ShapeRef.new(shape: Functions, location_name: "functions"))
|
635
|
+
FunctionSchema.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
636
|
+
FunctionSchema.add_member_subclass(:functions, Types::FunctionSchema::Functions)
|
637
|
+
FunctionSchema.add_member_subclass(:unknown, Types::FunctionSchema::Unknown)
|
638
|
+
FunctionSchema.struct_class = Types::FunctionSchema
|
639
|
+
|
640
|
+
Functions.member = Shapes::ShapeRef.new(shape: FunctionDefinition)
|
641
|
+
|
558
642
|
GeneratedResponsePart.add_member(:text_response_part, Shapes::ShapeRef.new(shape: TextResponsePart, location_name: "textResponsePart"))
|
559
643
|
GeneratedResponsePart.struct_class = Types::GeneratedResponsePart
|
560
644
|
|
@@ -588,6 +672,10 @@ module Aws::BedrockAgentRuntime
|
|
588
672
|
GuardrailConfiguration.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailConfigurationGuardrailVersionString, required: true, location_name: "guardrailVersion"))
|
589
673
|
GuardrailConfiguration.struct_class = Types::GuardrailConfiguration
|
590
674
|
|
675
|
+
GuardrailConfigurationWithArn.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifierWithArn, required: true, location_name: "guardrailIdentifier"))
|
676
|
+
GuardrailConfigurationWithArn.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, required: true, location_name: "guardrailVersion"))
|
677
|
+
GuardrailConfigurationWithArn.struct_class = Types::GuardrailConfigurationWithArn
|
678
|
+
|
591
679
|
GuardrailContentFilter.add_member(:action, Shapes::ShapeRef.new(shape: GuardrailContentPolicyAction, location_name: "action"))
|
592
680
|
GuardrailContentFilter.add_member(:confidence, Shapes::ShapeRef.new(shape: GuardrailContentFilterConfidence, location_name: "confidence"))
|
593
681
|
GuardrailContentFilter.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailContentFilterType, location_name: "type"))
|
@@ -660,6 +748,43 @@ module Aws::BedrockAgentRuntime
|
|
660
748
|
InferenceConfiguration.add_member(:top_p, Shapes::ShapeRef.new(shape: TopP, location_name: "topP"))
|
661
749
|
InferenceConfiguration.struct_class = Types::InferenceConfiguration
|
662
750
|
|
751
|
+
InlineAgentFilePart.add_member(:files, Shapes::ShapeRef.new(shape: OutputFiles, location_name: "files"))
|
752
|
+
InlineAgentFilePart.struct_class = Types::InlineAgentFilePart
|
753
|
+
|
754
|
+
InlineAgentPayloadPart.add_member(:attribution, Shapes::ShapeRef.new(shape: Attribution, location_name: "attribution"))
|
755
|
+
InlineAgentPayloadPart.add_member(:bytes, Shapes::ShapeRef.new(shape: PartBody, location_name: "bytes"))
|
756
|
+
InlineAgentPayloadPart.struct_class = Types::InlineAgentPayloadPart
|
757
|
+
|
758
|
+
InlineAgentResponseStream.add_member(:access_denied_exception, Shapes::ShapeRef.new(shape: AccessDeniedException, location_name: "accessDeniedException"))
|
759
|
+
InlineAgentResponseStream.add_member(:bad_gateway_exception, Shapes::ShapeRef.new(shape: BadGatewayException, location_name: "badGatewayException"))
|
760
|
+
InlineAgentResponseStream.add_member(:chunk, Shapes::ShapeRef.new(shape: InlineAgentPayloadPart, event: true, location_name: "chunk"))
|
761
|
+
InlineAgentResponseStream.add_member(:conflict_exception, Shapes::ShapeRef.new(shape: ConflictException, location_name: "conflictException"))
|
762
|
+
InlineAgentResponseStream.add_member(:dependency_failed_exception, Shapes::ShapeRef.new(shape: DependencyFailedException, location_name: "dependencyFailedException"))
|
763
|
+
InlineAgentResponseStream.add_member(:files, Shapes::ShapeRef.new(shape: InlineAgentFilePart, event: true, location_name: "files"))
|
764
|
+
InlineAgentResponseStream.add_member(:internal_server_exception, Shapes::ShapeRef.new(shape: InternalServerException, location_name: "internalServerException"))
|
765
|
+
InlineAgentResponseStream.add_member(:resource_not_found_exception, Shapes::ShapeRef.new(shape: ResourceNotFoundException, location_name: "resourceNotFoundException"))
|
766
|
+
InlineAgentResponseStream.add_member(:return_control, Shapes::ShapeRef.new(shape: InlineAgentReturnControlPayload, event: true, location_name: "returnControl"))
|
767
|
+
InlineAgentResponseStream.add_member(:service_quota_exceeded_exception, Shapes::ShapeRef.new(shape: ServiceQuotaExceededException, location_name: "serviceQuotaExceededException"))
|
768
|
+
InlineAgentResponseStream.add_member(:throttling_exception, Shapes::ShapeRef.new(shape: ThrottlingException, location_name: "throttlingException"))
|
769
|
+
InlineAgentResponseStream.add_member(:trace, Shapes::ShapeRef.new(shape: InlineAgentTracePart, event: true, location_name: "trace"))
|
770
|
+
InlineAgentResponseStream.add_member(:validation_exception, Shapes::ShapeRef.new(shape: ValidationException, location_name: "validationException"))
|
771
|
+
InlineAgentResponseStream.struct_class = Types::InlineAgentResponseStream
|
772
|
+
|
773
|
+
InlineAgentReturnControlPayload.add_member(:invocation_id, Shapes::ShapeRef.new(shape: String, location_name: "invocationId"))
|
774
|
+
InlineAgentReturnControlPayload.add_member(:invocation_inputs, Shapes::ShapeRef.new(shape: InvocationInputs, location_name: "invocationInputs"))
|
775
|
+
InlineAgentReturnControlPayload.struct_class = Types::InlineAgentReturnControlPayload
|
776
|
+
|
777
|
+
InlineAgentTracePart.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location_name: "sessionId"))
|
778
|
+
InlineAgentTracePart.add_member(:trace, Shapes::ShapeRef.new(shape: Trace, location_name: "trace"))
|
779
|
+
InlineAgentTracePart.struct_class = Types::InlineAgentTracePart
|
780
|
+
|
781
|
+
InlineSessionState.add_member(:files, Shapes::ShapeRef.new(shape: InputFiles, location_name: "files"))
|
782
|
+
InlineSessionState.add_member(:invocation_id, Shapes::ShapeRef.new(shape: String, location_name: "invocationId"))
|
783
|
+
InlineSessionState.add_member(:prompt_session_attributes, Shapes::ShapeRef.new(shape: PromptSessionAttributesMap, location_name: "promptSessionAttributes"))
|
784
|
+
InlineSessionState.add_member(:return_control_invocation_results, Shapes::ShapeRef.new(shape: ReturnControlInvocationResults, location_name: "returnControlInvocationResults"))
|
785
|
+
InlineSessionState.add_member(:session_attributes, Shapes::ShapeRef.new(shape: SessionAttributesMap, location_name: "sessionAttributes"))
|
786
|
+
InlineSessionState.struct_class = Types::InlineSessionState
|
787
|
+
|
663
788
|
InputFile.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
|
664
789
|
InputFile.add_member(:source, Shapes::ShapeRef.new(shape: FileSource, required: true, location_name: "source"))
|
665
790
|
InputFile.add_member(:use_case, Shapes::ShapeRef.new(shape: FileUseCase, required: true, location_name: "useCase"))
|
@@ -730,6 +855,33 @@ module Aws::BedrockAgentRuntime
|
|
730
855
|
InvokeFlowResponse[:payload] = :response_stream
|
731
856
|
InvokeFlowResponse[:payload_member] = InvokeFlowResponse.member(:response_stream)
|
732
857
|
|
858
|
+
InvokeInlineAgentRequest.add_member(:action_groups, Shapes::ShapeRef.new(shape: AgentActionGroups, location_name: "actionGroups"))
|
859
|
+
InvokeInlineAgentRequest.add_member(:customer_encryption_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "customerEncryptionKeyArn"))
|
860
|
+
InvokeInlineAgentRequest.add_member(:enable_trace, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableTrace"))
|
861
|
+
InvokeInlineAgentRequest.add_member(:end_session, Shapes::ShapeRef.new(shape: Boolean, location_name: "endSession"))
|
862
|
+
InvokeInlineAgentRequest.add_member(:foundation_model, Shapes::ShapeRef.new(shape: ModelIdentifier, required: true, location_name: "foundationModel"))
|
863
|
+
InvokeInlineAgentRequest.add_member(:guardrail_configuration, Shapes::ShapeRef.new(shape: GuardrailConfigurationWithArn, location_name: "guardrailConfiguration"))
|
864
|
+
InvokeInlineAgentRequest.add_member(:idle_session_ttl_in_seconds, Shapes::ShapeRef.new(shape: SessionTTL, location_name: "idleSessionTTLInSeconds"))
|
865
|
+
InvokeInlineAgentRequest.add_member(:inline_session_state, Shapes::ShapeRef.new(shape: InlineSessionState, location_name: "inlineSessionState"))
|
866
|
+
InvokeInlineAgentRequest.add_member(:input_text, Shapes::ShapeRef.new(shape: InputText, location_name: "inputText"))
|
867
|
+
InvokeInlineAgentRequest.add_member(:instruction, Shapes::ShapeRef.new(shape: Instruction, required: true, location_name: "instruction"))
|
868
|
+
InvokeInlineAgentRequest.add_member(:knowledge_bases, Shapes::ShapeRef.new(shape: KnowledgeBases, location_name: "knowledgeBases"))
|
869
|
+
InvokeInlineAgentRequest.add_member(:prompt_override_configuration, Shapes::ShapeRef.new(shape: PromptOverrideConfiguration, location_name: "promptOverrideConfiguration"))
|
870
|
+
InvokeInlineAgentRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, required: true, location: "uri", location_name: "sessionId"))
|
871
|
+
InvokeInlineAgentRequest.struct_class = Types::InvokeInlineAgentRequest
|
872
|
+
|
873
|
+
InvokeInlineAgentResponse.add_member(:completion, Shapes::ShapeRef.new(shape: InlineAgentResponseStream, required: true, eventstream: true, location_name: "completion"))
|
874
|
+
InvokeInlineAgentResponse.add_member(:content_type, Shapes::ShapeRef.new(shape: MimeType, required: true, location: "header", location_name: "x-amzn-bedrock-agent-content-type"))
|
875
|
+
InvokeInlineAgentResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, required: true, location: "header", location_name: "x-amz-bedrock-agent-session-id"))
|
876
|
+
InvokeInlineAgentResponse.struct_class = Types::InvokeInlineAgentResponse
|
877
|
+
InvokeInlineAgentResponse[:payload] = :completion
|
878
|
+
InvokeInlineAgentResponse[:payload_member] = InvokeInlineAgentResponse.member(:completion)
|
879
|
+
|
880
|
+
KnowledgeBase.add_member(:description, Shapes::ShapeRef.new(shape: ResourceDescription, required: true, location_name: "description"))
|
881
|
+
KnowledgeBase.add_member(:knowledge_base_id, Shapes::ShapeRef.new(shape: KnowledgeBaseId, required: true, location_name: "knowledgeBaseId"))
|
882
|
+
KnowledgeBase.add_member(:retrieval_configuration, Shapes::ShapeRef.new(shape: KnowledgeBaseRetrievalConfiguration, location_name: "retrievalConfiguration"))
|
883
|
+
KnowledgeBase.struct_class = Types::KnowledgeBase
|
884
|
+
|
733
885
|
KnowledgeBaseConfiguration.add_member(:knowledge_base_id, Shapes::ShapeRef.new(shape: KnowledgeBaseId, required: true, location_name: "knowledgeBaseId"))
|
734
886
|
KnowledgeBaseConfiguration.add_member(:retrieval_configuration, Shapes::ShapeRef.new(shape: KnowledgeBaseRetrievalConfiguration, required: true, location_name: "retrievalConfiguration"))
|
735
887
|
KnowledgeBaseConfiguration.struct_class = Types::KnowledgeBaseConfiguration
|
@@ -769,6 +921,8 @@ module Aws::BedrockAgentRuntime
|
|
769
921
|
KnowledgeBaseVectorSearchConfiguration.add_member(:override_search_type, Shapes::ShapeRef.new(shape: SearchType, location_name: "overrideSearchType"))
|
770
922
|
KnowledgeBaseVectorSearchConfiguration.struct_class = Types::KnowledgeBaseVectorSearchConfiguration
|
771
923
|
|
924
|
+
KnowledgeBases.member = Shapes::ShapeRef.new(shape: KnowledgeBase)
|
925
|
+
|
772
926
|
Memories.member = Shapes::ShapeRef.new(shape: Memory)
|
773
927
|
|
774
928
|
Memory.add_member(:session_summary, Shapes::ShapeRef.new(shape: MemorySessionSummary, location_name: "sessionSummary"))
|
@@ -870,8 +1024,16 @@ module Aws::BedrockAgentRuntime
|
|
870
1024
|
Parameter.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "value"))
|
871
1025
|
Parameter.struct_class = Types::Parameter
|
872
1026
|
|
1027
|
+
ParameterDetail.add_member(:description, Shapes::ShapeRef.new(shape: ParameterDescription, location_name: "description"))
|
1028
|
+
ParameterDetail.add_member(:required, Shapes::ShapeRef.new(shape: Boolean, location_name: "required"))
|
1029
|
+
ParameterDetail.add_member(:type, Shapes::ShapeRef.new(shape: ParameterType, required: true, location_name: "type"))
|
1030
|
+
ParameterDetail.struct_class = Types::ParameterDetail
|
1031
|
+
|
873
1032
|
ParameterList.member = Shapes::ShapeRef.new(shape: Parameter)
|
874
1033
|
|
1034
|
+
ParameterMap.key = Shapes::ShapeRef.new(shape: ParameterName)
|
1035
|
+
ParameterMap.value = Shapes::ShapeRef.new(shape: ParameterDetail)
|
1036
|
+
|
875
1037
|
Parameters.member = Shapes::ShapeRef.new(shape: Parameter)
|
876
1038
|
|
877
1039
|
PayloadPart.add_member(:attribution, Shapes::ShapeRef.new(shape: Attribution, location_name: "attribution"))
|
@@ -913,6 +1075,20 @@ module Aws::BedrockAgentRuntime
|
|
913
1075
|
PreProcessingTrace.add_member_subclass(:unknown, Types::PreProcessingTrace::Unknown)
|
914
1076
|
PreProcessingTrace.struct_class = Types::PreProcessingTrace
|
915
1077
|
|
1078
|
+
PromptConfiguration.add_member(:base_prompt_template, Shapes::ShapeRef.new(shape: BasePromptTemplate, location_name: "basePromptTemplate"))
|
1079
|
+
PromptConfiguration.add_member(:inference_configuration, Shapes::ShapeRef.new(shape: InferenceConfiguration, location_name: "inferenceConfiguration"))
|
1080
|
+
PromptConfiguration.add_member(:parser_mode, Shapes::ShapeRef.new(shape: CreationMode, location_name: "parserMode"))
|
1081
|
+
PromptConfiguration.add_member(:prompt_creation_mode, Shapes::ShapeRef.new(shape: CreationMode, location_name: "promptCreationMode"))
|
1082
|
+
PromptConfiguration.add_member(:prompt_state, Shapes::ShapeRef.new(shape: PromptState, location_name: "promptState"))
|
1083
|
+
PromptConfiguration.add_member(:prompt_type, Shapes::ShapeRef.new(shape: PromptType, location_name: "promptType"))
|
1084
|
+
PromptConfiguration.struct_class = Types::PromptConfiguration
|
1085
|
+
|
1086
|
+
PromptConfigurations.member = Shapes::ShapeRef.new(shape: PromptConfiguration)
|
1087
|
+
|
1088
|
+
PromptOverrideConfiguration.add_member(:override_lambda, Shapes::ShapeRef.new(shape: LambdaResourceArn, location_name: "overrideLambda"))
|
1089
|
+
PromptOverrideConfiguration.add_member(:prompt_configurations, Shapes::ShapeRef.new(shape: PromptConfigurations, required: true, location_name: "promptConfigurations"))
|
1090
|
+
PromptOverrideConfiguration.struct_class = Types::PromptOverrideConfiguration
|
1091
|
+
|
916
1092
|
PromptSessionAttributesMap.key = Shapes::ShapeRef.new(shape: String)
|
917
1093
|
PromptSessionAttributesMap.value = Shapes::ShapeRef.new(shape: String)
|
918
1094
|
|
@@ -1072,6 +1248,10 @@ module Aws::BedrockAgentRuntime
|
|
1072
1248
|
ReturnControlPayload.add_member(:invocation_inputs, Shapes::ShapeRef.new(shape: InvocationInputs, location_name: "invocationInputs"))
|
1073
1249
|
ReturnControlPayload.struct_class = Types::ReturnControlPayload
|
1074
1250
|
|
1251
|
+
S3Identifier.add_member(:s3_bucket_name, Shapes::ShapeRef.new(shape: S3BucketName, location_name: "s3BucketName"))
|
1252
|
+
S3Identifier.add_member(:s3_object_key, Shapes::ShapeRef.new(shape: S3ObjectKey, location_name: "s3ObjectKey"))
|
1253
|
+
S3Identifier.struct_class = Types::S3Identifier
|
1254
|
+
|
1075
1255
|
S3ObjectDoc.add_member(:uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "uri"))
|
1076
1256
|
S3ObjectDoc.struct_class = Types::S3ObjectDoc
|
1077
1257
|
|
@@ -1236,6 +1416,23 @@ module Aws::BedrockAgentRuntime
|
|
1236
1416
|
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
1237
1417
|
end)
|
1238
1418
|
|
1419
|
+
api.add_operation(:invoke_inline_agent, Seahorse::Model::Operation.new.tap do |o|
|
1420
|
+
o.name = "InvokeInlineAgent"
|
1421
|
+
o.http_method = "POST"
|
1422
|
+
o.http_request_uri = "/agents/{sessionId}"
|
1423
|
+
o.input = Shapes::ShapeRef.new(shape: InvokeInlineAgentRequest)
|
1424
|
+
o.output = Shapes::ShapeRef.new(shape: InvokeInlineAgentResponse)
|
1425
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
1426
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1427
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1428
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1429
|
+
o.errors << Shapes::ShapeRef.new(shape: DependencyFailedException)
|
1430
|
+
o.errors << Shapes::ShapeRef.new(shape: BadGatewayException)
|
1431
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1432
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1433
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
1434
|
+
end)
|
1435
|
+
|
1239
1436
|
api.add_operation(:optimize_prompt, Seahorse::Model::Operation.new.tap do |o|
|
1240
1437
|
o.name = "OptimizePrompt"
|
1241
1438
|
o.http_method = "POST"
|
@@ -191,6 +191,100 @@ module Aws::BedrockAgentRuntime
|
|
191
191
|
# @return Aws::EventEmitter
|
192
192
|
attr_reader :event_emitter
|
193
193
|
|
194
|
+
end
|
195
|
+
class InlineAgentResponseStream
|
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_bad_gateway_exception_event(&block)
|
206
|
+
@event_emitter.on(:bad_gateway_exception, block) if block_given?
|
207
|
+
end
|
208
|
+
|
209
|
+
def on_chunk_event(&block)
|
210
|
+
@event_emitter.on(:chunk, block) if block_given?
|
211
|
+
end
|
212
|
+
|
213
|
+
def on_conflict_exception_event(&block)
|
214
|
+
@event_emitter.on(:conflict_exception, block) if block_given?
|
215
|
+
end
|
216
|
+
|
217
|
+
def on_dependency_failed_exception_event(&block)
|
218
|
+
@event_emitter.on(:dependency_failed_exception, block) if block_given?
|
219
|
+
end
|
220
|
+
|
221
|
+
def on_files_event(&block)
|
222
|
+
@event_emitter.on(:files, block) if block_given?
|
223
|
+
end
|
224
|
+
|
225
|
+
def on_internal_server_exception_event(&block)
|
226
|
+
@event_emitter.on(:internal_server_exception, block) if block_given?
|
227
|
+
end
|
228
|
+
|
229
|
+
def on_resource_not_found_exception_event(&block)
|
230
|
+
@event_emitter.on(:resource_not_found_exception, block) if block_given?
|
231
|
+
end
|
232
|
+
|
233
|
+
def on_return_control_event(&block)
|
234
|
+
@event_emitter.on(:return_control, block) if block_given?
|
235
|
+
end
|
236
|
+
|
237
|
+
def on_service_quota_exceeded_exception_event(&block)
|
238
|
+
@event_emitter.on(:service_quota_exceeded_exception, block) if block_given?
|
239
|
+
end
|
240
|
+
|
241
|
+
def on_throttling_exception_event(&block)
|
242
|
+
@event_emitter.on(:throttling_exception, block) if block_given?
|
243
|
+
end
|
244
|
+
|
245
|
+
def on_trace_event(&block)
|
246
|
+
@event_emitter.on(:trace, block) if block_given?
|
247
|
+
end
|
248
|
+
|
249
|
+
def on_validation_exception_event(&block)
|
250
|
+
@event_emitter.on(:validation_exception, block) if block_given?
|
251
|
+
end
|
252
|
+
|
253
|
+
def on_error_event(&block)
|
254
|
+
@event_emitter.on(:error, block) if block_given?
|
255
|
+
end
|
256
|
+
|
257
|
+
def on_initial_response_event(&block)
|
258
|
+
@event_emitter.on(:initial_response, block) if block_given?
|
259
|
+
end
|
260
|
+
|
261
|
+
def on_unknown_event(&block)
|
262
|
+
@event_emitter.on(:unknown_event, block) if block_given?
|
263
|
+
end
|
264
|
+
|
265
|
+
def on_event(&block)
|
266
|
+
on_access_denied_exception_event(&block)
|
267
|
+
on_bad_gateway_exception_event(&block)
|
268
|
+
on_chunk_event(&block)
|
269
|
+
on_conflict_exception_event(&block)
|
270
|
+
on_dependency_failed_exception_event(&block)
|
271
|
+
on_files_event(&block)
|
272
|
+
on_internal_server_exception_event(&block)
|
273
|
+
on_resource_not_found_exception_event(&block)
|
274
|
+
on_return_control_event(&block)
|
275
|
+
on_service_quota_exceeded_exception_event(&block)
|
276
|
+
on_throttling_exception_event(&block)
|
277
|
+
on_trace_event(&block)
|
278
|
+
on_validation_exception_event(&block)
|
279
|
+
on_error_event(&block)
|
280
|
+
on_initial_response_event(&block)
|
281
|
+
on_unknown_event(&block)
|
282
|
+
end
|
283
|
+
|
284
|
+
# @api private
|
285
|
+
# @return Aws::EventEmitter
|
286
|
+
attr_reader :event_emitter
|
287
|
+
|
194
288
|
end
|
195
289
|
class OptimizedPromptStream
|
196
290
|
|