|
291 | 291 | "type":"boolean",
|
292 | 292 | "box":true
|
293 | 293 | },
|
| 294 | + "ByteContentBlob":{ |
| 295 | + "type":"blob", |
| 296 | + "max":10485760, |
| 297 | + "min":1, |
| 298 | + "sensitive":true |
| 299 | + }, |
| 300 | + "ByteContentDoc":{ |
| 301 | + "type":"structure", |
| 302 | + "required":[ |
| 303 | + "contentType", |
| 304 | + "data", |
| 305 | + "identifier" |
| 306 | + ], |
| 307 | + "members":{ |
| 308 | + "contentType":{ |
| 309 | + "shape":"ContentType", |
| 310 | + "documentation":"<p>The MIME type of the document contained in the wrapper object.</p>" |
| 311 | + }, |
| 312 | + "data":{ |
| 313 | + "shape":"ByteContentBlob", |
| 314 | + "documentation":"<p>The byte value of the file to upload, encoded as a Base-64 string.</p>" |
| 315 | + }, |
| 316 | + "identifier":{ |
| 317 | + "shape":"Identifier", |
| 318 | + "documentation":"<p>The file name of the document contained in the wrapper object.</p>" |
| 319 | + } |
| 320 | + }, |
| 321 | + "documentation":"<p>This property contains the document to chat with, along with its attributes.</p>" |
| 322 | + }, |
294 | 323 | "Citation":{
|
295 | 324 | "type":"structure",
|
296 | 325 | "members":{
|
|
336 | 365 | "key":{"shape":"String"},
|
337 | 366 | "value":{"shape":"Parameters"}
|
338 | 367 | },
|
| 368 | + "ContentType":{ |
| 369 | + "type":"string", |
| 370 | + "pattern":"[a-z]{1,20}/.{1,20}" |
| 371 | + }, |
339 | 372 | "CreationMode":{
|
340 | 373 | "type":"string",
|
341 | 374 | "enum":[
|
|
363 | 396 | "type":"double",
|
364 | 397 | "box":true
|
365 | 398 | },
|
| 399 | + "ExternalSource":{ |
| 400 | + "type":"structure", |
| 401 | + "required":["sourceType"], |
| 402 | + "members":{ |
| 403 | + "byteContent":{ |
| 404 | + "shape":"ByteContentDoc", |
| 405 | + "documentation":"<p>The identifier, contentType, and data of the external source wrapper object.</p>" |
| 406 | + }, |
| 407 | + "s3Location":{ |
| 408 | + "shape":"S3ObjectDoc", |
| 409 | + "documentation":"<p>The S3 location of the external source wrapper object.</p>" |
| 410 | + }, |
| 411 | + "sourceType":{ |
| 412 | + "shape":"ExternalSourceType", |
| 413 | + "documentation":"<p>The source type of the external source wrapper object.</p>" |
| 414 | + } |
| 415 | + }, |
| 416 | + "documentation":"<p>The unique external source of the content contained in the wrapper object.</p>" |
| 417 | + }, |
| 418 | + "ExternalSourceType":{ |
| 419 | + "type":"string", |
| 420 | + "enum":[ |
| 421 | + "S3", |
| 422 | + "BYTE_CONTENT" |
| 423 | + ] |
| 424 | + }, |
| 425 | + "ExternalSources":{ |
| 426 | + "type":"list", |
| 427 | + "member":{"shape":"ExternalSource"}, |
| 428 | + "max":1, |
| 429 | + "min":1 |
| 430 | + }, |
| 431 | + "ExternalSourcesGenerationConfiguration":{ |
| 432 | + "type":"structure", |
| 433 | + "members":{ |
| 434 | + "promptTemplate":{ |
| 435 | + "shape":"PromptTemplate", |
| 436 | + "documentation":"<p>Contain the textPromptTemplate string for the external source wrapper object.</p>" |
| 437 | + } |
| 438 | + }, |
| 439 | + "documentation":"<p>Contains the generation configuration of the external source wrapper object.</p>" |
| 440 | + }, |
| 441 | + "ExternalSourcesRetrieveAndGenerateConfiguration":{ |
| 442 | + "type":"structure", |
| 443 | + "required":[ |
| 444 | + "modelArn", |
| 445 | + "sources" |
| 446 | + ], |
| 447 | + "members":{ |
| 448 | + "generationConfiguration":{ |
| 449 | + "shape":"ExternalSourcesGenerationConfiguration", |
| 450 | + "documentation":"<p>The prompt used with the external source wrapper object with the retrieveAndGenerate function.</p>" |
| 451 | + }, |
| 452 | + "modelArn":{ |
| 453 | + "shape":"BedrockModelArn", |
| 454 | + "documentation":"<p>The modelArn used with the external source wrapper object in the retrieveAndGenerate function.</p>" |
| 455 | + }, |
| 456 | + "sources":{ |
| 457 | + "shape":"ExternalSources", |
| 458 | + "documentation":"<p>The document used with the external source wrapper object in the retrieveAndGenerate function.</p>" |
| 459 | + } |
| 460 | + }, |
| 461 | + "documentation":"<p>The configurations of the external source wrapper object in the retrieveAndGenerate function.</p>" |
| 462 | + }, |
366 | 463 | "FailureReasonString":{
|
367 | 464 | "type":"string",
|
368 | 465 | "sensitive":true
|
|
513 | 610 | },
|
514 | 611 | "documentation":"<p>Contains configurations for response generation based on the knowledge base query results.</p> <p>This data type is used in the following API operations:</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax\">RetrieveAndGenerate request</a> </p> </li> </ul>"
|
515 | 612 | },
|
| 613 | + "Identifier":{ |
| 614 | + "type":"string", |
| 615 | + "max":1024, |
| 616 | + "min":1, |
| 617 | + "sensitive":true |
| 618 | + }, |
516 | 619 | "InferenceConfiguration":{
|
517 | 620 | "type":"structure",
|
518 | 621 | "members":{
|
|
1375 | 1478 | "type":"structure",
|
1376 | 1479 | "required":["type"],
|
1377 | 1480 | "members":{
|
| 1481 | + "externalSourcesConfiguration":{ |
| 1482 | + "shape":"ExternalSourcesRetrieveAndGenerateConfiguration", |
| 1483 | + "documentation":"<p>The configuration used with the external source wrapper object in the retrieveAndGenerate function.</p>" |
| 1484 | + }, |
1378 | 1485 | "knowledgeBaseConfiguration":{
|
1379 | 1486 | "shape":"KnowledgeBaseRetrieveAndGenerateConfiguration",
|
1380 | 1487 | "documentation":"<p>Contains details about the resource being queried.</p>"
|
|
1471 | 1578 | },
|
1472 | 1579 | "RetrieveAndGenerateType":{
|
1473 | 1580 | "type":"string",
|
1474 |
| - "enum":["KNOWLEDGE_BASE"] |
| 1581 | + "enum":[ |
| 1582 | + "KNOWLEDGE_BASE", |
| 1583 | + "EXTERNAL_SOURCES" |
| 1584 | + ] |
1475 | 1585 | },
|
1476 | 1586 | "RetrieveRequest":{
|
1477 | 1587 | "type":"structure",
|
|
1558 | 1668 | "event":true,
|
1559 | 1669 | "sensitive":true
|
1560 | 1670 | },
|
| 1671 | + "S3ObjectDoc":{ |
| 1672 | + "type":"structure", |
| 1673 | + "required":["uri"], |
| 1674 | + "members":{ |
| 1675 | + "uri":{ |
| 1676 | + "shape":"S3Uri", |
| 1677 | + "documentation":"<p>The file location of the S3 wrapper object.</p>" |
| 1678 | + } |
| 1679 | + }, |
| 1680 | + "documentation":"<p>The unique wrapper object of the document from the S3 location.</p>" |
| 1681 | + }, |
| 1682 | + "S3Uri":{ |
| 1683 | + "type":"string", |
| 1684 | + "max":1024, |
| 1685 | + "min":1, |
| 1686 | + "pattern":"^s3://[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]/.{1,1024}$" |
| 1687 | + }, |
1561 | 1688 | "SearchType":{
|
1562 | 1689 | "type":"string",
|
1563 | 1690 | "enum":[
|
|
0 commit comments