| 1 |
{ |
| 2 |
"version":"2.0", |
| 3 |
"metadata":{ |
| 4 |
"apiVersion":"2023-07-26", |
| 5 |
"endpointPrefix":"bedrock-agent-runtime", |
| 6 |
"jsonVersion":"1.1", |
| 7 |
"protocol":"rest-json", |
| 8 |
"serviceFullName":"Agents for Amazon Bedrock Runtime", |
| 9 |
"serviceId":"Bedrock Agent Runtime", |
| 10 |
"signatureVersion":"v4", |
| 11 |
"signingName":"bedrock", |
| 12 |
"uid":"bedrock-agent-runtime-2023-07-26" |
| 13 |
}, |
| 14 |
"operations":{ |
| 15 |
"InvokeAgent":{ |
| 16 |
"name":"InvokeAgent", |
| 17 |
"http":{ |
| 18 |
"method":"POST", |
| 19 |
"requestUri":"/agents/{agentId}/agentAliases/{agentAliasId}/sessions/{sessionId}/text", |
| 20 |
"responseCode":200 |
| 21 |
}, |
| 22 |
"input":{"shape":"InvokeAgentRequest"}, |
| 23 |
"output":{"shape":"InvokeAgentResponse"}, |
| 24 |
"errors":[ |
| 25 |
{"shape":"ConflictException"}, |
| 26 |
{"shape":"ResourceNotFoundException"}, |
| 27 |
{"shape":"ValidationException"}, |
| 28 |
{"shape":"InternalServerException"}, |
| 29 |
{"shape":"DependencyFailedException"}, |
| 30 |
{"shape":"BadGatewayException"}, |
| 31 |
{"shape":"ThrottlingException"}, |
| 32 |
{"shape":"AccessDeniedException"}, |
| 33 |
{"shape":"ServiceQuotaExceededException"} |
| 34 |
] |
| 35 |
}, |
| 36 |
"Retrieve":{ |
| 37 |
"name":"Retrieve", |
| 38 |
"http":{ |
| 39 |
"method":"POST", |
| 40 |
"requestUri":"/knowledgebases/{knowledgeBaseId}/retrieve", |
| 41 |
"responseCode":200 |
| 42 |
}, |
| 43 |
"input":{"shape":"RetrieveRequest"}, |
| 44 |
"output":{"shape":"RetrieveResponse"}, |
| 45 |
"errors":[ |
| 46 |
{"shape":"ConflictException"}, |
| 47 |
{"shape":"ResourceNotFoundException"}, |
| 48 |
{"shape":"ValidationException"}, |
| 49 |
{"shape":"InternalServerException"}, |
| 50 |
{"shape":"DependencyFailedException"}, |
| 51 |
{"shape":"BadGatewayException"}, |
| 52 |
{"shape":"ThrottlingException"}, |
| 53 |
{"shape":"AccessDeniedException"}, |
| 54 |
{"shape":"ServiceQuotaExceededException"} |
| 55 |
] |
| 56 |
}, |
| 57 |
"RetrieveAndGenerate":{ |
| 58 |
"name":"RetrieveAndGenerate", |
| 59 |
"http":{ |
| 60 |
"method":"POST", |
| 61 |
"requestUri":"/retrieveAndGenerate", |
| 62 |
"responseCode":200 |
| 63 |
}, |
| 64 |
"input":{"shape":"RetrieveAndGenerateRequest"}, |
| 65 |
"output":{"shape":"RetrieveAndGenerateResponse"}, |
| 66 |
"errors":[ |
| 67 |
{"shape":"ConflictException"}, |
| 68 |
{"shape":"ResourceNotFoundException"}, |
| 69 |
{"shape":"ValidationException"}, |
| 70 |
{"shape":"InternalServerException"}, |
| 71 |
{"shape":"DependencyFailedException"}, |
| 72 |
{"shape":"BadGatewayException"}, |
| 73 |
{"shape":"ThrottlingException"}, |
| 74 |
{"shape":"AccessDeniedException"}, |
| 75 |
{"shape":"ServiceQuotaExceededException"} |
| 76 |
] |
| 77 |
} |
| 78 |
}, |
| 79 |
"shapes":{ |
| 80 |
"AccessDeniedException":{ |
| 81 |
"type":"structure", |
| 82 |
"members":{ |
| 83 |
"message":{"shape":"NonBlankString"} |
| 84 |
}, |
| 85 |
"error":{ |
| 86 |
"httpStatusCode":403, |
| 87 |
"senderFault":true |
| 88 |
}, |
| 89 |
"exception":true |
| 90 |
}, |
| 91 |
"ActionGroupInvocationInput":{ |
| 92 |
"type":"structure", |
| 93 |
"members":{ |
| 94 |
"actionGroupName":{"shape":"ActionGroupName"}, |
| 95 |
"verb":{"shape":"Verb"}, |
| 96 |
"apiPath":{"shape":"ApiPath"}, |
| 97 |
"parameters":{"shape":"Parameters"}, |
| 98 |
"requestBody":{"shape":"RequestBody"} |
| 99 |
} |
| 100 |
}, |
| 101 |
"ActionGroupInvocationOutput":{ |
| 102 |
"type":"structure", |
| 103 |
"members":{ |
| 104 |
"text":{"shape":"ActionGroupOutputString"} |
| 105 |
} |
| 106 |
}, |
| 107 |
"ActionGroupName":{ |
| 108 |
"type":"string", |
| 109 |
"sensitive":true |
| 110 |
}, |
| 111 |
"ActionGroupOutputString":{ |
| 112 |
"type":"string", |
| 113 |
"sensitive":true |
| 114 |
}, |
| 115 |
"AgentAliasId":{ |
| 116 |
"type":"string", |
| 117 |
"max":10, |
| 118 |
"min":0, |
| 119 |
"pattern":"[0-9a-zA-Z]+" |
| 120 |
}, |
| 121 |
"AgentId":{ |
| 122 |
"type":"string", |
| 123 |
"max":10, |
| 124 |
"min":0, |
| 125 |
"pattern":"[0-9a-zA-Z]+" |
| 126 |
}, |
| 127 |
"ApiPath":{ |
| 128 |
"type":"string", |
| 129 |
"sensitive":true |
| 130 |
}, |
| 131 |
"Attribution":{ |
| 132 |
"type":"structure", |
| 133 |
"members":{ |
| 134 |
"citations":{"shape":"Citations"} |
| 135 |
} |
| 136 |
}, |
| 137 |
"BadGatewayException":{ |
| 138 |
"type":"structure", |
| 139 |
"members":{ |
| 140 |
"message":{"shape":"NonBlankString"}, |
| 141 |
"resourceName":{"shape":"NonBlankString"} |
| 142 |
}, |
| 143 |
"error":{"httpStatusCode":502}, |
| 144 |
"exception":true, |
| 145 |
"fault":true |
| 146 |
}, |
| 147 |
"BedrockModelArn":{ |
| 148 |
"type":"string", |
| 149 |
"max":1011, |
| 150 |
"min":20, |
| 151 |
"pattern":"arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}))" |
| 152 |
}, |
| 153 |
"Boolean":{ |
| 154 |
"type":"boolean", |
| 155 |
"box":true |
| 156 |
}, |
| 157 |
"Citation":{ |
| 158 |
"type":"structure", |
| 159 |
"members":{ |
| 160 |
"generatedResponsePart":{"shape":"GeneratedResponsePart"}, |
| 161 |
"retrievedReferences":{"shape":"RetrievedReferences"} |
| 162 |
} |
| 163 |
}, |
| 164 |
"Citations":{ |
| 165 |
"type":"list", |
| 166 |
"member":{"shape":"Citation"} |
| 167 |
}, |
| 168 |
"ConflictException":{ |
| 169 |
"type":"structure", |
| 170 |
"members":{ |
| 171 |
"message":{"shape":"NonBlankString"} |
| 172 |
}, |
| 173 |
"error":{ |
| 174 |
"httpStatusCode":409, |
| 175 |
"senderFault":true |
| 176 |
}, |
| 177 |
"exception":true |
| 178 |
}, |
| 179 |
"ContentMap":{ |
| 180 |
"type":"map", |
| 181 |
"key":{"shape":"String"}, |
| 182 |
"value":{"shape":"Parameters"} |
| 183 |
}, |
| 184 |
"CreationMode":{ |
| 185 |
"type":"string", |
| 186 |
"enum":[ |
| 187 |
"DEFAULT", |
| 188 |
"OVERRIDDEN" |
| 189 |
] |
| 190 |
}, |
| 191 |
"DependencyFailedException":{ |
| 192 |
"type":"structure", |
| 193 |
"members":{ |
| 194 |
"message":{"shape":"NonBlankString"}, |
| 195 |
"resourceName":{"shape":"NonBlankString"} |
| 196 |
}, |
| 197 |
"error":{ |
| 198 |
"httpStatusCode":424, |
| 199 |
"senderFault":true |
| 200 |
}, |
| 201 |
"exception":true |
| 202 |
}, |
| 203 |
"Double":{ |
| 204 |
"type":"double", |
| 205 |
"box":true |
| 206 |
}, |
| 207 |
"FailureReasonString":{ |
| 208 |
"type":"string", |
| 209 |
"sensitive":true |
| 210 |
}, |
| 211 |
"FailureTrace":{ |
| 212 |
"type":"structure", |
| 213 |
"members":{ |
| 214 |
"traceId":{"shape":"TraceId"}, |
| 215 |
"failureReason":{"shape":"FailureReasonString"} |
| 216 |
}, |
| 217 |
"sensitive":true |
| 218 |
}, |
| 219 |
"FinalResponse":{ |
| 220 |
"type":"structure", |
| 221 |
"members":{ |
| 222 |
"text":{"shape":"FinalResponseString"} |
| 223 |
} |
| 224 |
}, |
| 225 |
"FinalResponseString":{ |
| 226 |
"type":"string", |
| 227 |
"sensitive":true |
| 228 |
}, |
| 229 |
"GeneratedResponsePart":{ |
| 230 |
"type":"structure", |
| 231 |
"members":{ |
| 232 |
"textResponsePart":{"shape":"TextResponsePart"} |
| 233 |
} |
| 234 |
}, |
| 235 |
"InferenceConfiguration":{ |
| 236 |
"type":"structure", |
| 237 |
"members":{ |
| 238 |
"temperature":{"shape":"Temperature"}, |
| 239 |
"topP":{"shape":"TopP"}, |
| 240 |
"topK":{"shape":"TopK"}, |
| 241 |
"maximumLength":{"shape":"MaximumLength"}, |
| 242 |
"stopSequences":{"shape":"StopSequences"} |
| 243 |
} |
| 244 |
}, |
| 245 |
"InputText":{ |
| 246 |
"type":"string", |
| 247 |
"max":25000000, |
| 248 |
"min":0, |
| 249 |
"sensitive":true |
| 250 |
}, |
| 251 |
"InternalServerException":{ |
| 252 |
"type":"structure", |
| 253 |
"members":{ |
| 254 |
"message":{"shape":"NonBlankString"} |
| 255 |
}, |
| 256 |
"error":{"httpStatusCode":500}, |
| 257 |
"exception":true, |
| 258 |
"fault":true |
| 259 |
}, |
| 260 |
"InvocationInput":{ |
| 261 |
"type":"structure", |
| 262 |
"members":{ |
| 263 |
"traceId":{"shape":"TraceId"}, |
| 264 |
"invocationType":{"shape":"InvocationType"}, |
| 265 |
"actionGroupInvocationInput":{"shape":"ActionGroupInvocationInput"}, |
| 266 |
"knowledgeBaseLookupInput":{"shape":"KnowledgeBaseLookupInput"} |
| 267 |
}, |
| 268 |
"sensitive":true |
| 269 |
}, |
| 270 |
"InvocationType":{ |
| 271 |
"type":"string", |
| 272 |
"enum":[ |
| 273 |
"ACTION_GROUP", |
| 274 |
"KNOWLEDGE_BASE", |
| 275 |
"FINISH" |
| 276 |
] |
| 277 |
}, |
| 278 |
"InvokeAgentRequest":{ |
| 279 |
"type":"structure", |
| 280 |
"required":[ |
| 281 |
"agentId", |
| 282 |
"agentAliasId", |
| 283 |
"sessionId", |
| 284 |
"inputText" |
| 285 |
], |
| 286 |
"members":{ |
| 287 |
"sessionState":{"shape":"SessionState"}, |
| 288 |
"agentId":{ |
| 289 |
"shape":"AgentId", |
| 290 |
"location":"uri", |
| 291 |
"locationName":"agentId" |
| 292 |
}, |
| 293 |
"agentAliasId":{ |
| 294 |
"shape":"AgentAliasId", |
| 295 |
"location":"uri", |
| 296 |
"locationName":"agentAliasId" |
| 297 |
}, |
| 298 |
"sessionId":{ |
| 299 |
"shape":"SessionId", |
| 300 |
"location":"uri", |
| 301 |
"locationName":"sessionId" |
| 302 |
}, |
| 303 |
"endSession":{"shape":"Boolean"}, |
| 304 |
"enableTrace":{"shape":"Boolean"}, |
| 305 |
"inputText":{"shape":"InputText"} |
| 306 |
} |
| 307 |
}, |
| 308 |
"InvokeAgentResponse":{ |
| 309 |
"type":"structure", |
| 310 |
"required":[ |
| 311 |
"completion", |
| 312 |
"contentType", |
| 313 |
"sessionId" |
| 314 |
], |
| 315 |
"members":{ |
| 316 |
"completion":{"shape":"ResponseStream"}, |
| 317 |
"contentType":{ |
| 318 |
"shape":"MimeType", |
| 319 |
"location":"header", |
| 320 |
"locationName":"x-amzn-bedrock-agent-content-type" |
| 321 |
}, |
| 322 |
"sessionId":{ |
| 323 |
"shape":"SessionId", |
| 324 |
"location":"header", |
| 325 |
"locationName":"x-amz-bedrock-agent-session-id" |
| 326 |
} |
| 327 |
}, |
| 328 |
"payload":"completion" |
| 329 |
}, |
| 330 |
"KmsKeyArn":{ |
| 331 |
"type":"string", |
| 332 |
"max":2048, |
| 333 |
"min":1, |
| 334 |
"pattern":"arn:aws(|-cn|-us-gov):kms:[a-zA-Z0-9-]*:[0-9]{12}:key/[a-zA-Z0-9-]{36}" |
| 335 |
}, |
| 336 |
"KnowledgeBaseId":{ |
| 337 |
"type":"string", |
| 338 |
"max":10, |
| 339 |
"min":0, |
| 340 |
"pattern":"[0-9a-zA-Z]+" |
| 341 |
}, |
| 342 |
"KnowledgeBaseLookupInput":{ |
| 343 |
"type":"structure", |
| 344 |
"members":{ |
| 345 |
"text":{"shape":"KnowledgeBaseLookupInputString"}, |
| 346 |
"knowledgeBaseId":{"shape":"TraceKnowledgeBaseId"} |
| 347 |
} |
| 348 |
}, |
| 349 |
"KnowledgeBaseLookupInputString":{ |
| 350 |
"type":"string", |
| 351 |
"sensitive":true |
| 352 |
}, |
| 353 |
"KnowledgeBaseLookupOutput":{ |
| 354 |
"type":"structure", |
| 355 |
"members":{ |
| 356 |
"retrievedReferences":{"shape":"RetrievedReferences"} |
| 357 |
} |
| 358 |
}, |
| 359 |
"KnowledgeBaseQuery":{ |
| 360 |
"type":"structure", |
| 361 |
"required":["text"], |
| 362 |
"members":{ |
| 363 |
"text":{"shape":"KnowledgeBaseQueryTextString"} |
| 364 |
}, |
| 365 |
"sensitive":true |
| 366 |
}, |
| 367 |
"KnowledgeBaseQueryTextString":{ |
| 368 |
"type":"string", |
| 369 |
"max":1000, |
| 370 |
"min":0 |
| 371 |
}, |
| 372 |
"KnowledgeBaseRetrievalConfiguration":{ |
| 373 |
"type":"structure", |
| 374 |
"required":["vectorSearchConfiguration"], |
| 375 |
"members":{ |
| 376 |
"vectorSearchConfiguration":{"shape":"KnowledgeBaseVectorSearchConfiguration"} |
| 377 |
} |
| 378 |
}, |
| 379 |
"KnowledgeBaseRetrievalResult":{ |
| 380 |
"type":"structure", |
| 381 |
"required":["content"], |
| 382 |
"members":{ |
| 383 |
"content":{"shape":"RetrievalResultContent"}, |
| 384 |
"location":{"shape":"RetrievalResultLocation"}, |
| 385 |
"score":{"shape":"Double"} |
| 386 |
} |
| 387 |
}, |
| 388 |
"KnowledgeBaseRetrievalResults":{ |
| 389 |
"type":"list", |
| 390 |
"member":{"shape":"KnowledgeBaseRetrievalResult"}, |
| 391 |
"sensitive":true |
| 392 |
}, |
| 393 |
"KnowledgeBaseRetrieveAndGenerateConfiguration":{ |
| 394 |
"type":"structure", |
| 395 |
"required":[ |
| 396 |
"knowledgeBaseId", |
| 397 |
"modelArn" |
| 398 |
], |
| 399 |
"members":{ |
| 400 |
"knowledgeBaseId":{"shape":"KnowledgeBaseId"}, |
| 401 |
"modelArn":{"shape":"BedrockModelArn"} |
| 402 |
} |
| 403 |
}, |
| 404 |
"KnowledgeBaseVectorSearchConfiguration":{ |
| 405 |
"type":"structure", |
| 406 |
"required":["numberOfResults"], |
| 407 |
"members":{ |
| 408 |
"numberOfResults":{"shape":"KnowledgeBaseVectorSearchConfigurationNumberOfResultsInteger"} |
| 409 |
} |
| 410 |
}, |
| 411 |
"KnowledgeBaseVectorSearchConfigurationNumberOfResultsInteger":{ |
| 412 |
"type":"integer", |
| 413 |
"box":true, |
| 414 |
"max":10, |
| 415 |
"min":1 |
| 416 |
}, |
| 417 |
"LambdaArn":{"type":"string"}, |
| 418 |
"MaximumLength":{ |
| 419 |
"type":"integer", |
| 420 |
"box":true, |
| 421 |
"max":4096, |
| 422 |
"min":0 |
| 423 |
}, |
| 424 |
"MimeType":{"type":"string"}, |
| 425 |
"ModelInvocationInput":{ |
| 426 |
"type":"structure", |
| 427 |
"members":{ |
| 428 |
"traceId":{"shape":"TraceId"}, |
| 429 |
"text":{"shape":"PromptText"}, |
| 430 |
"type":{"shape":"PromptType"}, |
| 431 |
"inferenceConfiguration":{"shape":"InferenceConfiguration"}, |
| 432 |
"overrideLambda":{"shape":"LambdaArn"}, |
| 433 |
"promptCreationMode":{"shape":"CreationMode"}, |
| 434 |
"parserMode":{"shape":"CreationMode"} |
| 435 |
}, |
| 436 |
"sensitive":true |
| 437 |
}, |
| 438 |
"NextToken":{ |
| 439 |
"type":"string", |
| 440 |
"max":2048, |
| 441 |
"min":1, |
| 442 |
"pattern":"\\S*" |
| 443 |
}, |
| 444 |
"NonBlankString":{ |
| 445 |
"type":"string", |
| 446 |
"pattern":"[\\s\\S]*" |
| 447 |
}, |
| 448 |
"Observation":{ |
| 449 |
"type":"structure", |
| 450 |
"members":{ |
| 451 |
"traceId":{"shape":"TraceId"}, |
| 452 |
"type":{"shape":"Type"}, |
| 453 |
"actionGroupInvocationOutput":{"shape":"ActionGroupInvocationOutput"}, |
| 454 |
"knowledgeBaseLookupOutput":{"shape":"KnowledgeBaseLookupOutput"}, |
| 455 |
"finalResponse":{"shape":"FinalResponse"}, |
| 456 |
"repromptResponse":{"shape":"RepromptResponse"} |
| 457 |
}, |
| 458 |
"sensitive":true |
| 459 |
}, |
| 460 |
"OrchestrationTrace":{ |
| 461 |
"type":"structure", |
| 462 |
"members":{ |
| 463 |
"rationale":{"shape":"Rationale"}, |
| 464 |
"invocationInput":{"shape":"InvocationInput"}, |
| 465 |
"observation":{"shape":"Observation"}, |
| 466 |
"modelInvocationInput":{"shape":"ModelInvocationInput"} |
| 467 |
}, |
| 468 |
"sensitive":true, |
| 469 |
"union":true |
| 470 |
}, |
| 471 |
"OutputString":{ |
| 472 |
"type":"string", |
| 473 |
"sensitive":true |
| 474 |
}, |
| 475 |
"Parameter":{ |
| 476 |
"type":"structure", |
| 477 |
"members":{ |
| 478 |
"name":{"shape":"String"}, |
| 479 |
"type":{"shape":"String"}, |
| 480 |
"value":{"shape":"String"} |
| 481 |
} |
| 482 |
}, |
| 483 |
"Parameters":{ |
| 484 |
"type":"list", |
| 485 |
"member":{"shape":"Parameter"} |
| 486 |
}, |
| 487 |
"PartBody":{ |
| 488 |
"type":"blob", |
| 489 |
"max":1000000, |
| 490 |
"min":0, |
| 491 |
"sensitive":true |
| 492 |
}, |
| 493 |
"PayloadPart":{ |
| 494 |
"type":"structure", |
| 495 |
"members":{ |
| 496 |
"bytes":{"shape":"PartBody"}, |
| 497 |
"attribution":{"shape":"Attribution"} |
| 498 |
}, |
| 499 |
"event":true, |
| 500 |
"sensitive":true |
| 501 |
}, |
| 502 |
"PostProcessingModelInvocationOutput":{ |
| 503 |
"type":"structure", |
| 504 |
"members":{ |
| 505 |
"traceId":{"shape":"TraceId"}, |
| 506 |
"parsedResponse":{"shape":"PostProcessingParsedResponse"} |
| 507 |
}, |
| 508 |
"sensitive":true |
| 509 |
}, |
| 510 |
"PostProcessingParsedResponse":{ |
| 511 |
"type":"structure", |
| 512 |
"members":{ |
| 513 |
"text":{"shape":"OutputString"} |
| 514 |
}, |
| 515 |
"sensitive":true |
| 516 |
}, |
| 517 |
"PostProcessingTrace":{ |
| 518 |
"type":"structure", |
| 519 |
"members":{ |
| 520 |
"modelInvocationInput":{"shape":"ModelInvocationInput"}, |
| 521 |
"modelInvocationOutput":{"shape":"PostProcessingModelInvocationOutput"} |
| 522 |
}, |
| 523 |
"sensitive":true, |
| 524 |
"union":true |
| 525 |
}, |
| 526 |
"PreProcessingModelInvocationOutput":{ |
| 527 |
"type":"structure", |
| 528 |
"members":{ |
| 529 |
"traceId":{"shape":"TraceId"}, |
| 530 |
"parsedResponse":{"shape":"PreProcessingParsedResponse"} |
| 531 |
}, |
| 532 |
"sensitive":true |
| 533 |
}, |
| 534 |
"PreProcessingParsedResponse":{ |
| 535 |
"type":"structure", |
| 536 |
"members":{ |
| 537 |
"rationale":{"shape":"RationaleString"}, |
| 538 |
"isValid":{"shape":"Boolean"} |
| 539 |
}, |
| 540 |
"sensitive":true |
| 541 |
}, |
| 542 |
"PreProcessingTrace":{ |
| 543 |
"type":"structure", |
| 544 |
"members":{ |
| 545 |
"modelInvocationInput":{"shape":"ModelInvocationInput"}, |
| 546 |
"modelInvocationOutput":{"shape":"PreProcessingModelInvocationOutput"} |
| 547 |
}, |
| 548 |
"sensitive":true, |
| 549 |
"union":true |
| 550 |
}, |
| 551 |
"PromptSessionAttributesMap":{ |
| 552 |
"type":"map", |
| 553 |
"key":{"shape":"String"}, |
| 554 |
"value":{"shape":"String"} |
| 555 |
}, |
| 556 |
"PromptText":{ |
| 557 |
"type":"string", |
| 558 |
"sensitive":true |
| 559 |
}, |
| 560 |
"PromptType":{ |
| 561 |
"type":"string", |
| 562 |
"enum":[ |
| 563 |
"PRE_PROCESSING", |
| 564 |
"ORCHESTRATION", |
| 565 |
"KNOWLEDGE_BASE_RESPONSE_GENERATION", |
| 566 |
"POST_PROCESSING" |
| 567 |
] |
| 568 |
}, |
| 569 |
"Rationale":{ |
| 570 |
"type":"structure", |
| 571 |
"members":{ |
| 572 |
"traceId":{"shape":"TraceId"}, |
| 573 |
"text":{"shape":"RationaleString"} |
| 574 |
}, |
| 575 |
"sensitive":true |
| 576 |
}, |
| 577 |
"RationaleString":{ |
| 578 |
"type":"string", |
| 579 |
"sensitive":true |
| 580 |
}, |
| 581 |
"RepromptResponse":{ |
| 582 |
"type":"structure", |
| 583 |
"members":{ |
| 584 |
"text":{"shape":"String"}, |
| 585 |
"source":{"shape":"Source"} |
| 586 |
}, |
| 587 |
"sensitive":true |
| 588 |
}, |
| 589 |
"RequestBody":{ |
| 590 |
"type":"structure", |
| 591 |
"members":{ |
| 592 |
"content":{"shape":"ContentMap"} |
| 593 |
} |
| 594 |
}, |
| 595 |
"ResourceNotFoundException":{ |
| 596 |
"type":"structure", |
| 597 |
"members":{ |
| 598 |
"message":{"shape":"NonBlankString"} |
| 599 |
}, |
| 600 |
"error":{ |
| 601 |
"httpStatusCode":404, |
| 602 |
"senderFault":true |
| 603 |
}, |
| 604 |
"exception":true |
| 605 |
}, |
| 606 |
"ResponseStream":{ |
| 607 |
"type":"structure", |
| 608 |
"members":{ |
| 609 |
"chunk":{"shape":"PayloadPart"}, |
| 610 |
"trace":{"shape":"TracePart"}, |
| 611 |
"internalServerException":{"shape":"InternalServerException"}, |
| 612 |
"validationException":{"shape":"ValidationException"}, |
| 613 |
"resourceNotFoundException":{"shape":"ResourceNotFoundException"}, |
| 614 |
"serviceQuotaExceededException":{"shape":"ServiceQuotaExceededException"}, |
| 615 |
"throttlingException":{"shape":"ThrottlingException"}, |
| 616 |
"accessDeniedException":{"shape":"AccessDeniedException"}, |
| 617 |
"conflictException":{"shape":"ConflictException"}, |
| 618 |
"dependencyFailedException":{"shape":"DependencyFailedException"}, |
| 619 |
"badGatewayException":{"shape":"BadGatewayException"} |
| 620 |
}, |
| 621 |
"eventstream":true |
| 622 |
}, |
| 623 |
"RetrievalResultContent":{ |
| 624 |
"type":"structure", |
| 625 |
"required":["text"], |
| 626 |
"members":{ |
| 627 |
"text":{"shape":"String"} |
| 628 |
} |
| 629 |
}, |
| 630 |
"RetrievalResultLocation":{ |
| 631 |
"type":"structure", |
| 632 |
"required":["type"], |
| 633 |
"members":{ |
| 634 |
"type":{"shape":"RetrievalResultLocationType"}, |
| 635 |
"s3Location":{"shape":"RetrievalResultS3Location"} |
| 636 |
} |
| 637 |
}, |
| 638 |
"RetrievalResultLocationType":{ |
| 639 |
"type":"string", |
| 640 |
"enum":["S3"] |
| 641 |
}, |
| 642 |
"RetrievalResultS3Location":{ |
| 643 |
"type":"structure", |
| 644 |
"members":{ |
| 645 |
"uri":{"shape":"String"} |
| 646 |
} |
| 647 |
}, |
| 648 |
"RetrieveAndGenerateConfiguration":{ |
| 649 |
"type":"structure", |
| 650 |
"required":["type"], |
| 651 |
"members":{ |
| 652 |
"type":{"shape":"RetrieveAndGenerateType"}, |
| 653 |
"knowledgeBaseConfiguration":{"shape":"KnowledgeBaseRetrieveAndGenerateConfiguration"} |
| 654 |
} |
| 655 |
}, |
| 656 |
"RetrieveAndGenerateInput":{ |
| 657 |
"type":"structure", |
| 658 |
"required":["text"], |
| 659 |
"members":{ |
| 660 |
"text":{"shape":"RetrieveAndGenerateInputTextString"} |
| 661 |
}, |
| 662 |
"sensitive":true |
| 663 |
}, |
| 664 |
"RetrieveAndGenerateInputTextString":{ |
| 665 |
"type":"string", |
| 666 |
"max":1000, |
| 667 |
"min":0 |
| 668 |
}, |
| 669 |
"RetrieveAndGenerateOutput":{ |
| 670 |
"type":"structure", |
| 671 |
"required":["text"], |
| 672 |
"members":{ |
| 673 |
"text":{"shape":"String"} |
| 674 |
}, |
| 675 |
"sensitive":true |
| 676 |
}, |
| 677 |
"RetrieveAndGenerateRequest":{ |
| 678 |
"type":"structure", |
| 679 |
"required":["input"], |
| 680 |
"members":{ |
| 681 |
"sessionId":{"shape":"SessionId"}, |
| 682 |
"input":{"shape":"RetrieveAndGenerateInput"}, |
| 683 |
"retrieveAndGenerateConfiguration":{"shape":"RetrieveAndGenerateConfiguration"}, |
| 684 |
"sessionConfiguration":{"shape":"RetrieveAndGenerateSessionConfiguration"} |
| 685 |
} |
| 686 |
}, |
| 687 |
"RetrieveAndGenerateResponse":{ |
| 688 |
"type":"structure", |
| 689 |
"required":[ |
| 690 |
"sessionId", |
| 691 |
"output" |
| 692 |
], |
| 693 |
"members":{ |
| 694 |
"sessionId":{"shape":"SessionId"}, |
| 695 |
"output":{"shape":"RetrieveAndGenerateOutput"}, |
| 696 |
"citations":{"shape":"Citations"} |
| 697 |
} |
| 698 |
}, |
| 699 |
"RetrieveAndGenerateSessionConfiguration":{ |
| 700 |
"type":"structure", |
| 701 |
"required":["kmsKeyArn"], |
| 702 |
"members":{ |
| 703 |
"kmsKeyArn":{"shape":"KmsKeyArn"} |
| 704 |
} |
| 705 |
}, |
| 706 |
"RetrieveAndGenerateType":{ |
| 707 |
"type":"string", |
| 708 |
"enum":["KNOWLEDGE_BASE"] |
| 709 |
}, |
| 710 |
"RetrieveRequest":{ |
| 711 |
"type":"structure", |
| 712 |
"required":[ |
| 713 |
"knowledgeBaseId", |
| 714 |
"retrievalQuery" |
| 715 |
], |
| 716 |
"members":{ |
| 717 |
"knowledgeBaseId":{ |
| 718 |
"shape":"KnowledgeBaseId", |
| 719 |
"location":"uri", |
| 720 |
"locationName":"knowledgeBaseId" |
| 721 |
}, |
| 722 |
"retrievalQuery":{"shape":"KnowledgeBaseQuery"}, |
| 723 |
"retrievalConfiguration":{"shape":"KnowledgeBaseRetrievalConfiguration"}, |
| 724 |
"nextToken":{"shape":"NextToken"} |
| 725 |
} |
| 726 |
}, |
| 727 |
"RetrieveResponse":{ |
| 728 |
"type":"structure", |
| 729 |
"required":["retrievalResults"], |
| 730 |
"members":{ |
| 731 |
"retrievalResults":{"shape":"KnowledgeBaseRetrievalResults"}, |
| 732 |
"nextToken":{"shape":"NextToken"} |
| 733 |
} |
| 734 |
}, |
| 735 |
"RetrievedReference":{ |
| 736 |
"type":"structure", |
| 737 |
"members":{ |
| 738 |
"content":{"shape":"RetrievalResultContent"}, |
| 739 |
"location":{"shape":"RetrievalResultLocation"} |
| 740 |
} |
| 741 |
}, |
| 742 |
"RetrievedReferences":{ |
| 743 |
"type":"list", |
| 744 |
"member":{"shape":"RetrievedReference"} |
| 745 |
}, |
| 746 |
"ServiceQuotaExceededException":{ |
| 747 |
"type":"structure", |
| 748 |
"members":{ |
| 749 |
"message":{"shape":"NonBlankString"} |
| 750 |
}, |
| 751 |
"error":{ |
| 752 |
"httpStatusCode":400, |
| 753 |
"senderFault":true |
| 754 |
}, |
| 755 |
"exception":true |
| 756 |
}, |
| 757 |
"SessionAttributesMap":{ |
| 758 |
"type":"map", |
| 759 |
"key":{"shape":"String"}, |
| 760 |
"value":{"shape":"String"} |
| 761 |
}, |
| 762 |
"SessionId":{ |
| 763 |
"type":"string", |
| 764 |
"max":100, |
| 765 |
"min":2, |
| 766 |
"pattern":"[0-9a-zA-Z._:-]+" |
| 767 |
}, |
| 768 |
"SessionState":{ |
| 769 |
"type":"structure", |
| 770 |
"members":{ |
| 771 |
"sessionAttributes":{"shape":"SessionAttributesMap"}, |
| 772 |
"promptSessionAttributes":{"shape":"PromptSessionAttributesMap"} |
| 773 |
} |
| 774 |
}, |
| 775 |
"Source":{ |
| 776 |
"type":"string", |
| 777 |
"enum":[ |
| 778 |
"ACTION_GROUP", |
| 779 |
"KNOWLEDGE_BASE", |
| 780 |
"PARSER" |
| 781 |
], |
| 782 |
"sensitive":true |
| 783 |
}, |
| 784 |
"Span":{ |
| 785 |
"type":"structure", |
| 786 |
"members":{ |
| 787 |
"start":{"shape":"SpanStartInteger"}, |
| 788 |
"end":{"shape":"SpanEndInteger"} |
| 789 |
} |
| 790 |
}, |
| 791 |
"SpanEndInteger":{ |
| 792 |
"type":"integer", |
| 793 |
"box":true, |
| 794 |
"min":0 |
| 795 |
}, |
| 796 |
"SpanStartInteger":{ |
| 797 |
"type":"integer", |
| 798 |
"box":true, |
| 799 |
"min":0 |
| 800 |
}, |
| 801 |
"StopSequences":{ |
| 802 |
"type":"list", |
| 803 |
"member":{"shape":"String"}, |
| 804 |
"max":4, |
| 805 |
"min":0 |
| 806 |
}, |
| 807 |
"String":{"type":"string"}, |
| 808 |
"Temperature":{ |
| 809 |
"type":"float", |
| 810 |
"box":true, |
| 811 |
"max":1, |
| 812 |
"min":0 |
| 813 |
}, |
| 814 |
"TextResponsePart":{ |
| 815 |
"type":"structure", |
| 816 |
"members":{ |
| 817 |
"text":{"shape":"String"}, |
| 818 |
"span":{"shape":"Span"} |
| 819 |
} |
| 820 |
}, |
| 821 |
"ThrottlingException":{ |
| 822 |
"type":"structure", |
| 823 |
"members":{ |
| 824 |
"message":{"shape":"NonBlankString"} |
| 825 |
}, |
| 826 |
"error":{ |
| 827 |
"httpStatusCode":429, |
| 828 |
"senderFault":true |
| 829 |
}, |
| 830 |
"exception":true |
| 831 |
}, |
| 832 |
"TopK":{ |
| 833 |
"type":"integer", |
| 834 |
"box":true, |
| 835 |
"max":500, |
| 836 |
"min":0 |
| 837 |
}, |
| 838 |
"TopP":{ |
| 839 |
"type":"float", |
| 840 |
"box":true, |
| 841 |
"max":1, |
| 842 |
"min":0 |
| 843 |
}, |
| 844 |
"Trace":{ |
| 845 |
"type":"structure", |
| 846 |
"members":{ |
| 847 |
"preProcessingTrace":{"shape":"PreProcessingTrace"}, |
| 848 |
"orchestrationTrace":{"shape":"OrchestrationTrace"}, |
| 849 |
"postProcessingTrace":{"shape":"PostProcessingTrace"}, |
| 850 |
"failureTrace":{"shape":"FailureTrace"} |
| 851 |
}, |
| 852 |
"sensitive":true, |
| 853 |
"union":true |
| 854 |
}, |
| 855 |
"TraceId":{ |
| 856 |
"type":"string", |
| 857 |
"max":16, |
| 858 |
"min":2 |
| 859 |
}, |
| 860 |
"TraceKnowledgeBaseId":{ |
| 861 |
"type":"string", |
| 862 |
"sensitive":true |
| 863 |
}, |
| 864 |
"TracePart":{ |
| 865 |
"type":"structure", |
| 866 |
"members":{ |
| 867 |
"agentId":{"shape":"AgentId"}, |
| 868 |
"agentAliasId":{"shape":"AgentAliasId"}, |
| 869 |
"sessionId":{"shape":"SessionId"}, |
| 870 |
"trace":{"shape":"Trace"} |
| 871 |
}, |
| 872 |
"event":true, |
| 873 |
"sensitive":true |
| 874 |
}, |
| 875 |
"Type":{ |
| 876 |
"type":"string", |
| 877 |
"enum":[ |
| 878 |
"ACTION_GROUP", |
| 879 |
"KNOWLEDGE_BASE", |
| 880 |
"FINISH", |
| 881 |
"ASK_USER", |
| 882 |
"REPROMPT" |
| 883 |
] |
| 884 |
}, |
| 885 |
"ValidationException":{ |
| 886 |
"type":"structure", |
| 887 |
"members":{ |
| 888 |
"message":{"shape":"NonBlankString"} |
| 889 |
}, |
| 890 |
"error":{ |
| 891 |
"httpStatusCode":400, |
| 892 |
"senderFault":true |
| 893 |
}, |
| 894 |
"exception":true |
| 895 |
}, |
| 896 |
"Verb":{ |
| 897 |
"type":"string", |
| 898 |
"sensitive":true |
| 899 |
} |
| 900 |
} |
| 901 |
} |