-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation update, adding clarity and rephrasing.
This release improves support for newer models in Amazon Bedrock Flows. This release adds Reasoning Content support to Converse and ConverseStream APIs Adding support for ReasoningContent fields in Pre-Processing, Post-Processing and Orchestration Trace outputs.
- Loading branch information
1 parent
c0eab4e
commit 3a8bb67
Showing
49 changed files
with
1,937 additions
and
885 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.11.512 | ||
1.11.513 |
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
80 changes: 80 additions & 0 deletions
80
...sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ReasoningContentBlock.h
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,80 @@ | ||
/** | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0. | ||
*/ | ||
|
||
#pragma once | ||
#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h> | ||
#include <aws/bedrock-agent-runtime/model/ReasoningTextBlock.h> | ||
#include <aws/core/utils/Array.h> | ||
#include <utility> | ||
|
||
namespace Aws | ||
{ | ||
namespace Utils | ||
{ | ||
namespace Json | ||
{ | ||
class JsonValue; | ||
class JsonView; | ||
} // namespace Json | ||
} // namespace Utils | ||
namespace BedrockAgentRuntime | ||
{ | ||
namespace Model | ||
{ | ||
|
||
/** | ||
* <p>Contains content regarding the reasoning that the foundation model made with | ||
* respect to the content in the content block. Reasoning refers to a Chain of | ||
* Thought (CoT) that the model generates to enhance the accuracy of its final | ||
* response.</p><p><h3>See Also:</h3> <a | ||
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/ReasoningContentBlock">AWS | ||
* API Reference</a></p> | ||
*/ | ||
class ReasoningContentBlock | ||
{ | ||
public: | ||
AWS_BEDROCKAGENTRUNTIME_API ReasoningContentBlock(); | ||
AWS_BEDROCKAGENTRUNTIME_API ReasoningContentBlock(Aws::Utils::Json::JsonView jsonValue); | ||
AWS_BEDROCKAGENTRUNTIME_API ReasoningContentBlock& operator=(Aws::Utils::Json::JsonView jsonValue); | ||
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const; | ||
|
||
|
||
///@{ | ||
/** | ||
* <p>Contains information about the reasoning that the model used to return the | ||
* content in the content block.</p> | ||
*/ | ||
inline const ReasoningTextBlock& GetReasoningText() const{ return m_reasoningText; } | ||
inline bool ReasoningTextHasBeenSet() const { return m_reasoningTextHasBeenSet; } | ||
inline void SetReasoningText(const ReasoningTextBlock& value) { m_reasoningTextHasBeenSet = true; m_reasoningText = value; } | ||
inline void SetReasoningText(ReasoningTextBlock&& value) { m_reasoningTextHasBeenSet = true; m_reasoningText = std::move(value); } | ||
inline ReasoningContentBlock& WithReasoningText(const ReasoningTextBlock& value) { SetReasoningText(value); return *this;} | ||
inline ReasoningContentBlock& WithReasoningText(ReasoningTextBlock&& value) { SetReasoningText(std::move(value)); return *this;} | ||
///@} | ||
|
||
///@{ | ||
/** | ||
* <p>The content in the reasoning that was encrypted by the model provider for | ||
* trust and safety reasons.</p> | ||
*/ | ||
inline const Aws::Utils::ByteBuffer& GetRedactedContent() const{ return m_redactedContent; } | ||
inline bool RedactedContentHasBeenSet() const { return m_redactedContentHasBeenSet; } | ||
inline void SetRedactedContent(const Aws::Utils::ByteBuffer& value) { m_redactedContentHasBeenSet = true; m_redactedContent = value; } | ||
inline void SetRedactedContent(Aws::Utils::ByteBuffer&& value) { m_redactedContentHasBeenSet = true; m_redactedContent = std::move(value); } | ||
inline ReasoningContentBlock& WithRedactedContent(const Aws::Utils::ByteBuffer& value) { SetRedactedContent(value); return *this;} | ||
inline ReasoningContentBlock& WithRedactedContent(Aws::Utils::ByteBuffer&& value) { SetRedactedContent(std::move(value)); return *this;} | ||
///@} | ||
private: | ||
|
||
ReasoningTextBlock m_reasoningText; | ||
bool m_reasoningTextHasBeenSet = false; | ||
|
||
Aws::Utils::ByteBuffer m_redactedContent; | ||
bool m_redactedContentHasBeenSet = false; | ||
}; | ||
|
||
} // namespace Model | ||
} // namespace BedrockAgentRuntime | ||
} // namespace Aws |
83 changes: 83 additions & 0 deletions
83
...pp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ReasoningTextBlock.h
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,83 @@ | ||
/** | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0. | ||
*/ | ||
|
||
#pragma once | ||
#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h> | ||
#include <aws/core/utils/memory/stl/AWSString.h> | ||
#include <utility> | ||
|
||
namespace Aws | ||
{ | ||
namespace Utils | ||
{ | ||
namespace Json | ||
{ | ||
class JsonValue; | ||
class JsonView; | ||
} // namespace Json | ||
} // namespace Utils | ||
namespace BedrockAgentRuntime | ||
{ | ||
namespace Model | ||
{ | ||
|
||
/** | ||
* <p>Contains information about the reasoning that the model used to return the | ||
* content in the content block.</p><p><h3>See Also:</h3> <a | ||
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/ReasoningTextBlock">AWS | ||
* API Reference</a></p> | ||
*/ | ||
class ReasoningTextBlock | ||
{ | ||
public: | ||
AWS_BEDROCKAGENTRUNTIME_API ReasoningTextBlock(); | ||
AWS_BEDROCKAGENTRUNTIME_API ReasoningTextBlock(Aws::Utils::Json::JsonView jsonValue); | ||
AWS_BEDROCKAGENTRUNTIME_API ReasoningTextBlock& operator=(Aws::Utils::Json::JsonView jsonValue); | ||
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const; | ||
|
||
|
||
///@{ | ||
/** | ||
* <p>A hash of all the messages in the conversation to ensure that the content in | ||
* the reasoning text block isn't tampered with. You must submit the signature in | ||
* subsequent <code>Converse</code> requests, in addition to the previous messages. | ||
* If the previous messages are tampered with, the response throws an error.</p> | ||
*/ | ||
inline const Aws::String& GetSignature() const{ return m_signature; } | ||
inline bool SignatureHasBeenSet() const { return m_signatureHasBeenSet; } | ||
inline void SetSignature(const Aws::String& value) { m_signatureHasBeenSet = true; m_signature = value; } | ||
inline void SetSignature(Aws::String&& value) { m_signatureHasBeenSet = true; m_signature = std::move(value); } | ||
inline void SetSignature(const char* value) { m_signatureHasBeenSet = true; m_signature.assign(value); } | ||
inline ReasoningTextBlock& WithSignature(const Aws::String& value) { SetSignature(value); return *this;} | ||
inline ReasoningTextBlock& WithSignature(Aws::String&& value) { SetSignature(std::move(value)); return *this;} | ||
inline ReasoningTextBlock& WithSignature(const char* value) { SetSignature(value); return *this;} | ||
///@} | ||
|
||
///@{ | ||
/** | ||
* <p>Text describing the reasoning that the model used to return the content in | ||
* the content block.</p> | ||
*/ | ||
inline const Aws::String& GetText() const{ return m_text; } | ||
inline bool TextHasBeenSet() const { return m_textHasBeenSet; } | ||
inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } | ||
inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } | ||
inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } | ||
inline ReasoningTextBlock& WithText(const Aws::String& value) { SetText(value); return *this;} | ||
inline ReasoningTextBlock& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} | ||
inline ReasoningTextBlock& WithText(const char* value) { SetText(value); return *this;} | ||
///@} | ||
private: | ||
|
||
Aws::String m_signature; | ||
bool m_signatureHasBeenSet = false; | ||
|
||
Aws::String m_text; | ||
bool m_textHasBeenSet = false; | ||
}; | ||
|
||
} // namespace Model | ||
} // namespace BedrockAgentRuntime | ||
} // namespace Aws |
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
Oops, something went wrong.