|
142 | 142 | "shape":"ImageBlock",
|
143 | 143 | "documentation":"<p>Image to include in the message. </p> <note> <p>This field is only supported by Anthropic Claude 3 models.</p> </note>"
|
144 | 144 | },
|
| 145 | + "document":{ |
| 146 | + "shape":"DocumentBlock", |
| 147 | + "documentation":"<p>A document to include in the message.</p>" |
| 148 | + }, |
145 | 149 | "toolUse":{
|
146 | 150 | "shape":"ToolUseBlock",
|
147 | 151 | "documentation":"<p>Information about a tool use request from a model. </p>"
|
|
533 | 537 | },
|
534 | 538 | "document":true
|
535 | 539 | },
|
| 540 | + "DocumentBlock":{ |
| 541 | + "type":"structure", |
| 542 | + "required":[ |
| 543 | + "format", |
| 544 | + "name", |
| 545 | + "source" |
| 546 | + ], |
| 547 | + "members":{ |
| 548 | + "format":{ |
| 549 | + "shape":"DocumentFormat", |
| 550 | + "documentation":"<p>The format of a document, or its extension.</p>" |
| 551 | + }, |
| 552 | + "name":{ |
| 553 | + "shape":"DocumentBlockNameString", |
| 554 | + "documentation":"<p>A name for the document.</p>" |
| 555 | + }, |
| 556 | + "source":{ |
| 557 | + "shape":"DocumentSource", |
| 558 | + "documentation":"<p>Contains the content of the document.</p>" |
| 559 | + } |
| 560 | + }, |
| 561 | + "documentation":"<p>A document to include in a message when sending a <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html\">Converse</a> or <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html\">ConverseStream</a> request. You can include up to 5 documents in a request. The maximum document size is 50 MB.</p>" |
| 562 | + }, |
| 563 | + "DocumentBlockNameString":{ |
| 564 | + "type":"string", |
| 565 | + "max":64, |
| 566 | + "min":1 |
| 567 | + }, |
| 568 | + "DocumentFormat":{ |
| 569 | + "type":"string", |
| 570 | + "enum":[ |
| 571 | + "pdf", |
| 572 | + "csv", |
| 573 | + "doc", |
| 574 | + "docx", |
| 575 | + "xls", |
| 576 | + "xlsx", |
| 577 | + "html", |
| 578 | + "txt", |
| 579 | + "md" |
| 580 | + ] |
| 581 | + }, |
| 582 | + "DocumentSource":{ |
| 583 | + "type":"structure", |
| 584 | + "members":{ |
| 585 | + "bytes":{ |
| 586 | + "shape":"DocumentSourceBytesBlob", |
| 587 | + "documentation":"<p>A base64-encoded string of a UTF-8 encoded file, that is the document to include in the message.</p>" |
| 588 | + } |
| 589 | + }, |
| 590 | + "documentation":"<p>Contains the content of the document included in a message when sending a <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html\">Converse</a> or <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html\">ConverseStream</a> request or in the response.</p>", |
| 591 | + "union":true |
| 592 | + }, |
| 593 | + "DocumentSourceBytesBlob":{ |
| 594 | + "type":"blob", |
| 595 | + "min":1 |
| 596 | + }, |
536 | 597 | "GuardrailAssessment":{
|
537 | 598 | "type":"structure",
|
538 | 599 | "members":{
|
|
1633 | 1694 | "image":{
|
1634 | 1695 | "shape":"ImageBlock",
|
1635 | 1696 | "documentation":"<p>A tool result that is an image.</p> <note> <p>This field is only supported by Anthropic Claude 3 models.</p> </note>"
|
| 1697 | + }, |
| 1698 | + "document":{ |
| 1699 | + "shape":"DocumentBlock", |
| 1700 | + "documentation":"<p>A tool result that is a document.</p>" |
1636 | 1701 | }
|
1637 | 1702 | },
|
1638 | 1703 | "documentation":"<p>The tool result content block.</p>",
|
|
0 commit comments