-
Notifications
You must be signed in to change notification settings - Fork 849
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This release adds document support to Converse and ConverseStream APIs
- Loading branch information
1 parent
df994c8
commit a95ec46
Showing
17 changed files
with
810 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 102 additions & 0 deletions
102
sdk/src/Services/BedrockRuntime/Generated/Model/DocumentBlock.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
/* | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
* A copy of the License is located at | ||
* | ||
* http://aws.amazon.com/apache2.0 | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
|
||
/* | ||
* Do not modify this file. This file is generated from the bedrock-runtime-2023-09-30.normal.json service model. | ||
*/ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Xml.Serialization; | ||
using System.Text; | ||
using System.IO; | ||
using System.Net; | ||
|
||
using Amazon.Runtime; | ||
using Amazon.Runtime.Internal; | ||
|
||
#pragma warning disable CS0612,CS0618,CS1570 | ||
namespace Amazon.BedrockRuntime.Model | ||
{ | ||
/// <summary> | ||
/// 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. | ||
/// </summary> | ||
public partial class DocumentBlock | ||
{ | ||
private DocumentFormat _format; | ||
private string _name; | ||
private DocumentSource _source; | ||
|
||
/// <summary> | ||
/// Gets and sets the property Format. | ||
/// <para> | ||
/// The format of a document, or its extension. | ||
/// </para> | ||
/// </summary> | ||
[AWSProperty(Required=true)] | ||
public DocumentFormat Format | ||
{ | ||
get { return this._format; } | ||
set { this._format = value; } | ||
} | ||
|
||
// Check to see if Format property is set | ||
internal bool IsSetFormat() | ||
{ | ||
return this._format != null; | ||
} | ||
|
||
/// <summary> | ||
/// Gets and sets the property Name. | ||
/// <para> | ||
/// A name for the document. | ||
/// </para> | ||
/// </summary> | ||
[AWSProperty(Required=true, Min=1, Max=64)] | ||
public string Name | ||
{ | ||
get { return this._name; } | ||
set { this._name = value; } | ||
} | ||
|
||
// Check to see if Name property is set | ||
internal bool IsSetName() | ||
{ | ||
return this._name != null; | ||
} | ||
|
||
/// <summary> | ||
/// Gets and sets the property Source. | ||
/// <para> | ||
/// Contains the content of the document. | ||
/// </para> | ||
/// </summary> | ||
[AWSProperty(Required=true)] | ||
public DocumentSource Source | ||
{ | ||
get { return this._source; } | ||
set { this._source = value; } | ||
} | ||
|
||
// Check to see if Source property is set | ||
internal bool IsSetSource() | ||
{ | ||
return this._source != null; | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.