-
Notifications
You must be signed in to change notification settings - Fork 861
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 support for using Guardrails with the Converse and …
…ConverseStream APIs.
- Loading branch information
1 parent
eeab51c
commit a37aeb4
Showing
70 changed files
with
5,660 additions
and
134 deletions.
There are no files selected for viewing
332 changes: 328 additions & 4 deletions
332
generator/ServiceModels/bedrock-runtime/bedrock-runtime-2023-09-30.api.json
Large diffs are not rendered by default.
Oops, something went wrong.
296 changes: 278 additions & 18 deletions
296
generator/ServiceModels/bedrock-runtime/bedrock-runtime-2023-09-30.docs.json
Large diffs are not rendered by default.
Oops, something went wrong.
522 changes: 504 additions & 18 deletions
522
generator/ServiceModels/bedrock-runtime/bedrock-runtime-2023-09-30.normal.json
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
59 changes: 59 additions & 0 deletions
59
sdk/src/Services/BedrockRuntime/Generated/Model/ConverseStreamTrace.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,59 @@ | ||
/* | ||
* 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> | ||
/// The trace object in a response from <a>ConverseStream</a>. Currently, you can only | ||
/// trace guardrails. | ||
/// </summary> | ||
public partial class ConverseStreamTrace | ||
{ | ||
private GuardrailTraceAssessment _guardrail; | ||
|
||
/// <summary> | ||
/// Gets and sets the property Guardrail. | ||
/// <para> | ||
/// The guardrail trace object. | ||
/// </para> | ||
/// </summary> | ||
public GuardrailTraceAssessment Guardrail | ||
{ | ||
get { return this._guardrail; } | ||
set { this._guardrail = value; } | ||
} | ||
|
||
// Check to see if Guardrail property is set | ||
internal bool IsSetGuardrail() | ||
{ | ||
return this._guardrail != null; | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.