Skip to content

Commit 44dacf9

Browse files
Introduces Sessions (preview) to enable stateful conversations in GenAI applications.
Add track support for Redshift Serverless workgroup. This release adds support to invoke a process that cleans the specified file share's cache of file entries that are failing upload to Amazon S3. This release supports deleting attachments from conversations. SageMaker HubService is introducing support for creating Training Jobs in Curated Hub (Private Hub). Additionally, it is introducing two new APIs: UpdateHubContent and UpdateHubContentReference. Definition update for EbsConfiguration.
1 parent 897e826 commit 44dacf9

File tree

149 files changed

+11668
-842
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+11668
-842
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.11.515
1+
1.11.516

generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/BedrockAgentRuntimeClient.h

Lines changed: 437 additions & 0 deletions
Large diffs are not rendered by default.

generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/BedrockAgentRuntimeServiceClientModel.h

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,28 @@
1818
/* End of generic header includes */
1919

2020
/* Service model headers required in BedrockAgentRuntimeClient header */
21+
#include <aws/bedrock-agent-runtime/model/CreateInvocationResult.h>
22+
#include <aws/bedrock-agent-runtime/model/CreateSessionResult.h>
2123
#include <aws/bedrock-agent-runtime/model/DeleteAgentMemoryResult.h>
24+
#include <aws/bedrock-agent-runtime/model/DeleteSessionResult.h>
25+
#include <aws/bedrock-agent-runtime/model/EndSessionResult.h>
2226
#include <aws/bedrock-agent-runtime/model/GenerateQueryResult.h>
2327
#include <aws/bedrock-agent-runtime/model/GetAgentMemoryResult.h>
28+
#include <aws/bedrock-agent-runtime/model/GetInvocationStepResult.h>
29+
#include <aws/bedrock-agent-runtime/model/GetSessionResult.h>
30+
#include <aws/bedrock-agent-runtime/model/ListInvocationStepsResult.h>
31+
#include <aws/bedrock-agent-runtime/model/ListInvocationsResult.h>
32+
#include <aws/bedrock-agent-runtime/model/ListSessionsResult.h>
33+
#include <aws/bedrock-agent-runtime/model/ListTagsForResourceResult.h>
34+
#include <aws/bedrock-agent-runtime/model/PutInvocationStepResult.h>
2435
#include <aws/bedrock-agent-runtime/model/RerankSdkResult.h>
2536
#include <aws/bedrock-agent-runtime/model/RetrieveResult.h>
2637
#include <aws/bedrock-agent-runtime/model/RetrieveAndGenerateResult.h>
38+
#include <aws/bedrock-agent-runtime/model/TagResourceResult.h>
39+
#include <aws/bedrock-agent-runtime/model/UntagResourceResult.h>
40+
#include <aws/bedrock-agent-runtime/model/UpdateSessionResult.h>
41+
#include <aws/bedrock-agent-runtime/model/CreateSessionRequest.h>
42+
#include <aws/bedrock-agent-runtime/model/ListSessionsRequest.h>
2743
#include <aws/core/NoResult.h>
2844
/* End of service model headers required in BedrockAgentRuntimeClient header */
2945

@@ -65,62 +81,118 @@ namespace Aws
6581
namespace Model
6682
{
6783
/* Service model forward declarations required in BedrockAgentRuntimeClient header */
84+
class CreateInvocationRequest;
85+
class CreateSessionRequest;
6886
class DeleteAgentMemoryRequest;
87+
class DeleteSessionRequest;
88+
class EndSessionRequest;
6989
class GenerateQueryRequest;
7090
class GetAgentMemoryRequest;
91+
class GetInvocationStepRequest;
92+
class GetSessionRequest;
7193
class InvokeAgentRequest;
7294
class InvokeFlowRequest;
7395
class InvokeInlineAgentRequest;
96+
class ListInvocationStepsRequest;
97+
class ListInvocationsRequest;
98+
class ListSessionsRequest;
99+
class ListTagsForResourceRequest;
74100
class OptimizePromptRequest;
101+
class PutInvocationStepRequest;
75102
class RerankRequest;
76103
class RetrieveRequest;
77104
class RetrieveAndGenerateRequest;
78105
class RetrieveAndGenerateStreamRequest;
106+
class TagResourceRequest;
107+
class UntagResourceRequest;
108+
class UpdateSessionRequest;
79109
/* End of service model forward declarations required in BedrockAgentRuntimeClient header */
80110

81111
/* Service model Outcome class definitions */
112+
typedef Aws::Utils::Outcome<CreateInvocationResult, BedrockAgentRuntimeError> CreateInvocationOutcome;
113+
typedef Aws::Utils::Outcome<CreateSessionResult, BedrockAgentRuntimeError> CreateSessionOutcome;
82114
typedef Aws::Utils::Outcome<DeleteAgentMemoryResult, BedrockAgentRuntimeError> DeleteAgentMemoryOutcome;
115+
typedef Aws::Utils::Outcome<DeleteSessionResult, BedrockAgentRuntimeError> DeleteSessionOutcome;
116+
typedef Aws::Utils::Outcome<EndSessionResult, BedrockAgentRuntimeError> EndSessionOutcome;
83117
typedef Aws::Utils::Outcome<GenerateQueryResult, BedrockAgentRuntimeError> GenerateQueryOutcome;
84118
typedef Aws::Utils::Outcome<GetAgentMemoryResult, BedrockAgentRuntimeError> GetAgentMemoryOutcome;
119+
typedef Aws::Utils::Outcome<GetInvocationStepResult, BedrockAgentRuntimeError> GetInvocationStepOutcome;
120+
typedef Aws::Utils::Outcome<GetSessionResult, BedrockAgentRuntimeError> GetSessionOutcome;
85121
typedef Aws::Utils::Outcome<Aws::NoResult, BedrockAgentRuntimeError> InvokeAgentOutcome;
86122
typedef Aws::Utils::Outcome<Aws::NoResult, BedrockAgentRuntimeError> InvokeFlowOutcome;
87123
typedef Aws::Utils::Outcome<Aws::NoResult, BedrockAgentRuntimeError> InvokeInlineAgentOutcome;
124+
typedef Aws::Utils::Outcome<ListInvocationStepsResult, BedrockAgentRuntimeError> ListInvocationStepsOutcome;
125+
typedef Aws::Utils::Outcome<ListInvocationsResult, BedrockAgentRuntimeError> ListInvocationsOutcome;
126+
typedef Aws::Utils::Outcome<ListSessionsResult, BedrockAgentRuntimeError> ListSessionsOutcome;
127+
typedef Aws::Utils::Outcome<ListTagsForResourceResult, BedrockAgentRuntimeError> ListTagsForResourceOutcome;
88128
typedef Aws::Utils::Outcome<Aws::NoResult, BedrockAgentRuntimeError> OptimizePromptOutcome;
129+
typedef Aws::Utils::Outcome<PutInvocationStepResult, BedrockAgentRuntimeError> PutInvocationStepOutcome;
89130
typedef Aws::Utils::Outcome<RerankSdkResult, BedrockAgentRuntimeError> RerankOutcome;
90131
typedef Aws::Utils::Outcome<RetrieveResult, BedrockAgentRuntimeError> RetrieveOutcome;
91132
typedef Aws::Utils::Outcome<RetrieveAndGenerateResult, BedrockAgentRuntimeError> RetrieveAndGenerateOutcome;
92133
typedef Aws::Utils::Outcome<Aws::NoResult, BedrockAgentRuntimeError> RetrieveAndGenerateStreamOutcome;
134+
typedef Aws::Utils::Outcome<TagResourceResult, BedrockAgentRuntimeError> TagResourceOutcome;
135+
typedef Aws::Utils::Outcome<UntagResourceResult, BedrockAgentRuntimeError> UntagResourceOutcome;
136+
typedef Aws::Utils::Outcome<UpdateSessionResult, BedrockAgentRuntimeError> UpdateSessionOutcome;
93137
/* End of service model Outcome class definitions */
94138

95139
/* Service model Outcome callable definitions */
140+
typedef std::future<CreateInvocationOutcome> CreateInvocationOutcomeCallable;
141+
typedef std::future<CreateSessionOutcome> CreateSessionOutcomeCallable;
96142
typedef std::future<DeleteAgentMemoryOutcome> DeleteAgentMemoryOutcomeCallable;
143+
typedef std::future<DeleteSessionOutcome> DeleteSessionOutcomeCallable;
144+
typedef std::future<EndSessionOutcome> EndSessionOutcomeCallable;
97145
typedef std::future<GenerateQueryOutcome> GenerateQueryOutcomeCallable;
98146
typedef std::future<GetAgentMemoryOutcome> GetAgentMemoryOutcomeCallable;
147+
typedef std::future<GetInvocationStepOutcome> GetInvocationStepOutcomeCallable;
148+
typedef std::future<GetSessionOutcome> GetSessionOutcomeCallable;
99149
typedef std::future<InvokeAgentOutcome> InvokeAgentOutcomeCallable;
100150
typedef std::future<InvokeFlowOutcome> InvokeFlowOutcomeCallable;
101151
typedef std::future<InvokeInlineAgentOutcome> InvokeInlineAgentOutcomeCallable;
152+
typedef std::future<ListInvocationStepsOutcome> ListInvocationStepsOutcomeCallable;
153+
typedef std::future<ListInvocationsOutcome> ListInvocationsOutcomeCallable;
154+
typedef std::future<ListSessionsOutcome> ListSessionsOutcomeCallable;
155+
typedef std::future<ListTagsForResourceOutcome> ListTagsForResourceOutcomeCallable;
102156
typedef std::future<OptimizePromptOutcome> OptimizePromptOutcomeCallable;
157+
typedef std::future<PutInvocationStepOutcome> PutInvocationStepOutcomeCallable;
103158
typedef std::future<RerankOutcome> RerankOutcomeCallable;
104159
typedef std::future<RetrieveOutcome> RetrieveOutcomeCallable;
105160
typedef std::future<RetrieveAndGenerateOutcome> RetrieveAndGenerateOutcomeCallable;
106161
typedef std::future<RetrieveAndGenerateStreamOutcome> RetrieveAndGenerateStreamOutcomeCallable;
162+
typedef std::future<TagResourceOutcome> TagResourceOutcomeCallable;
163+
typedef std::future<UntagResourceOutcome> UntagResourceOutcomeCallable;
164+
typedef std::future<UpdateSessionOutcome> UpdateSessionOutcomeCallable;
107165
/* End of service model Outcome callable definitions */
108166
} // namespace Model
109167

110168
class BedrockAgentRuntimeClient;
111169

112170
/* Service model async handlers definitions */
171+
typedef std::function<void(const BedrockAgentRuntimeClient*, const Model::CreateInvocationRequest&, const Model::CreateInvocationOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateInvocationResponseReceivedHandler;
172+
typedef std::function<void(const BedrockAgentRuntimeClient*, const Model::CreateSessionRequest&, const Model::CreateSessionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateSessionResponseReceivedHandler;
113173
typedef std::function<void(const BedrockAgentRuntimeClient*, const Model::DeleteAgentMemoryRequest&, const Model::DeleteAgentMemoryOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteAgentMemoryResponseReceivedHandler;
174+
typedef std::function<void(const BedrockAgentRuntimeClient*, const Model::DeleteSessionRequest&, const Model::DeleteSessionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteSessionResponseReceivedHandler;
175+
typedef std::function<void(const BedrockAgentRuntimeClient*, const Model::EndSessionRequest&, const Model::EndSessionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > EndSessionResponseReceivedHandler;
114176
typedef std::function<void(const BedrockAgentRuntimeClient*, const Model::GenerateQueryRequest&, const Model::GenerateQueryOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GenerateQueryResponseReceivedHandler;
115177
typedef std::function<void(const BedrockAgentRuntimeClient*, const Model::GetAgentMemoryRequest&, const Model::GetAgentMemoryOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetAgentMemoryResponseReceivedHandler;
178+
typedef std::function<void(const BedrockAgentRuntimeClient*, const Model::GetInvocationStepRequest&, const Model::GetInvocationStepOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetInvocationStepResponseReceivedHandler;
179+
typedef std::function<void(const BedrockAgentRuntimeClient*, const Model::GetSessionRequest&, const Model::GetSessionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetSessionResponseReceivedHandler;
116180
typedef std::function<void(const BedrockAgentRuntimeClient*, const Model::InvokeAgentRequest&, const Model::InvokeAgentOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > InvokeAgentResponseReceivedHandler;
117181
typedef std::function<void(const BedrockAgentRuntimeClient*, const Model::InvokeFlowRequest&, const Model::InvokeFlowOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > InvokeFlowResponseReceivedHandler;
118182
typedef std::function<void(const BedrockAgentRuntimeClient*, const Model::InvokeInlineAgentRequest&, const Model::InvokeInlineAgentOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > InvokeInlineAgentResponseReceivedHandler;
183+
typedef std::function<void(const BedrockAgentRuntimeClient*, const Model::ListInvocationStepsRequest&, const Model::ListInvocationStepsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListInvocationStepsResponseReceivedHandler;
184+
typedef std::function<void(const BedrockAgentRuntimeClient*, const Model::ListInvocationsRequest&, const Model::ListInvocationsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListInvocationsResponseReceivedHandler;
185+
typedef std::function<void(const BedrockAgentRuntimeClient*, const Model::ListSessionsRequest&, const Model::ListSessionsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListSessionsResponseReceivedHandler;
186+
typedef std::function<void(const BedrockAgentRuntimeClient*, const Model::ListTagsForResourceRequest&, const Model::ListTagsForResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListTagsForResourceResponseReceivedHandler;
119187
typedef std::function<void(const BedrockAgentRuntimeClient*, const Model::OptimizePromptRequest&, const Model::OptimizePromptOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > OptimizePromptResponseReceivedHandler;
188+
typedef std::function<void(const BedrockAgentRuntimeClient*, const Model::PutInvocationStepRequest&, const Model::PutInvocationStepOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > PutInvocationStepResponseReceivedHandler;
120189
typedef std::function<void(const BedrockAgentRuntimeClient*, const Model::RerankRequest&, const Model::RerankOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > RerankResponseReceivedHandler;
121190
typedef std::function<void(const BedrockAgentRuntimeClient*, const Model::RetrieveRequest&, const Model::RetrieveOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > RetrieveResponseReceivedHandler;
122191
typedef std::function<void(const BedrockAgentRuntimeClient*, const Model::RetrieveAndGenerateRequest&, const Model::RetrieveAndGenerateOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > RetrieveAndGenerateResponseReceivedHandler;
123192
typedef std::function<void(const BedrockAgentRuntimeClient*, const Model::RetrieveAndGenerateStreamRequest&, const Model::RetrieveAndGenerateStreamOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > RetrieveAndGenerateStreamResponseReceivedHandler;
193+
typedef std::function<void(const BedrockAgentRuntimeClient*, const Model::TagResourceRequest&, const Model::TagResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > TagResourceResponseReceivedHandler;
194+
typedef std::function<void(const BedrockAgentRuntimeClient*, const Model::UntagResourceRequest&, const Model::UntagResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UntagResourceResponseReceivedHandler;
195+
typedef std::function<void(const BedrockAgentRuntimeClient*, const Model::UpdateSessionRequest&, const Model::UpdateSessionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UpdateSessionResponseReceivedHandler;
124196
/* End of service model async handlers definitions */
125197
} // namespace BedrockAgentRuntime
126198
} // namespace Aws
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
/**
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0.
4+
*/
5+
6+
#pragma once
7+
#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8+
#include <aws/bedrock-agent-runtime/model/ImageBlock.h>
9+
#include <aws/core/utils/memory/stl/AWSString.h>
10+
#include <utility>
11+
12+
namespace Aws
13+
{
14+
namespace Utils
15+
{
16+
namespace Json
17+
{
18+
class JsonValue;
19+
class JsonView;
20+
} // namespace Json
21+
} // namespace Utils
22+
namespace BedrockAgentRuntime
23+
{
24+
namespace Model
25+
{
26+
27+
/**
28+
* <p>A block of content that you pass to, or receive from, a Amazon Bedrock
29+
* session in an invocation step. You pass the content to a session in the
30+
* <code>payLoad</code> of the <a
31+
* href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_PutInvocationStep.html">PutInvocationStep</a>
32+
* API operation. You retrieve the content with the <a
33+
* href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_GetInvocationStep.html">GetInvocationStep</a>
34+
* API operation.</p> <p>For more information about sessions, see <a
35+
* href="https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html">Store
36+
* and retrieve conversation history and context with Amazon Bedrock
37+
* sessions</a>.</p><p><h3>See Also:</h3> <a
38+
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/BedrockSessionContentBlock">AWS
39+
* API Reference</a></p>
40+
*/
41+
class BedrockSessionContentBlock
42+
{
43+
public:
44+
AWS_BEDROCKAGENTRUNTIME_API BedrockSessionContentBlock();
45+
AWS_BEDROCKAGENTRUNTIME_API BedrockSessionContentBlock(Aws::Utils::Json::JsonView jsonValue);
46+
AWS_BEDROCKAGENTRUNTIME_API BedrockSessionContentBlock& operator=(Aws::Utils::Json::JsonView jsonValue);
47+
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
48+
49+
50+
///@{
51+
/**
52+
* <p>The image in the invocation step.</p>
53+
*/
54+
inline const ImageBlock& GetImage() const{ return m_image; }
55+
inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
56+
inline void SetImage(const ImageBlock& value) { m_imageHasBeenSet = true; m_image = value; }
57+
inline void SetImage(ImageBlock&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
58+
inline BedrockSessionContentBlock& WithImage(const ImageBlock& value) { SetImage(value); return *this;}
59+
inline BedrockSessionContentBlock& WithImage(ImageBlock&& value) { SetImage(std::move(value)); return *this;}
60+
///@}
61+
62+
///@{
63+
/**
64+
* <p>The text in the invocation step.</p>
65+
*/
66+
inline const Aws::String& GetText() const{ return m_text; }
67+
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
68+
inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
69+
inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
70+
inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
71+
inline BedrockSessionContentBlock& WithText(const Aws::String& value) { SetText(value); return *this;}
72+
inline BedrockSessionContentBlock& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
73+
inline BedrockSessionContentBlock& WithText(const char* value) { SetText(value); return *this;}
74+
///@}
75+
private:
76+
77+
ImageBlock m_image;
78+
bool m_imageHasBeenSet = false;
79+
80+
Aws::String m_text;
81+
bool m_textHasBeenSet = false;
82+
};
83+
84+
} // namespace Model
85+
} // namespace BedrockAgentRuntime
86+
} // namespace Aws

0 commit comments

Comments
 (0)