Skip to content

Commit 6295b5d

Browse files
This release adds support for the following capabilities: Chunking generative answer replies from Amazon Q in Connect. Integration support for the use of additional LLM models with Amazon Q in Connect.
1 parent 9e67907 commit 6295b5d

32 files changed

+4610
-3764
lines changed

generator/ServiceModels/qconnect/qconnect-2020-10-19.api.json

Lines changed: 1153 additions & 1120 deletions
Large diffs are not rendered by default.

generator/ServiceModels/qconnect/qconnect-2020-10-19.docs.json

Lines changed: 127 additions & 108 deletions
Large diffs are not rendered by default.

generator/ServiceModels/qconnect/qconnect-2020-10-19.normal.json

Lines changed: 2226 additions & 2166 deletions
Large diffs are not rendered by default.

sdk/code-analysis/ServiceAnalysis/QConnect/Generated/PropertyValueRules.xml

Lines changed: 376 additions & 366 deletions
Large diffs are not rendered by default.

sdk/src/Services/QConnect/Generated/Model/AIPromptData.cs

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,77 @@ internal bool IsSetDescription()
169169
/// <summary>
170170
/// Gets and sets the property ModelId.
171171
/// <para>
172-
/// The identifier of the model used for this AI Prompt. Model Ids supported are: <c>anthropic.claude-3-haiku-20240307-v1:0</c>.
172+
/// The identifier of the model used for this AI Prompt. The following model Ids are supported:
173173
/// </para>
174+
/// <ul> <li>
175+
/// <para>
176+
/// <c>anthropic.claude-3-haiku--v1:0</c>
177+
/// </para>
178+
/// </li> <li>
179+
/// <para>
180+
/// <c>apac.amazon.nova-lite-v1:0</c>
181+
/// </para>
182+
/// </li> <li>
183+
/// <para>
184+
/// <c>apac.amazon.nova-micro-v1:0</c>
185+
/// </para>
186+
/// </li> <li>
187+
/// <para>
188+
/// <c>apac.amazon.nova-pro-v1:0</c>
189+
/// </para>
190+
/// </li> <li>
191+
/// <para>
192+
/// <c>apac.anthropic.claude-3-5-sonnet--v2:0</c>
193+
/// </para>
194+
/// </li> <li>
195+
/// <para>
196+
/// <c>apac.anthropic.claude-3-haiku-20240307-v1:0</c>
197+
/// </para>
198+
/// </li> <li>
199+
/// <para>
200+
/// <c>eu.amazon.nova-lite-v1:0</c>
201+
/// </para>
202+
/// </li> <li>
203+
/// <para>
204+
/// <c>eu.amazon.nova-micro-v1:0</c>
205+
/// </para>
206+
/// </li> <li>
207+
/// <para>
208+
/// <c>eu.amazon.nova-pro-v1:0</c>
209+
/// </para>
210+
/// </li> <li>
211+
/// <para>
212+
/// <c>eu.anthropic.claude-3-7-sonnet-20250219-v1:0</c>
213+
/// </para>
214+
/// </li> <li>
215+
/// <para>
216+
/// <c>eu.anthropic.claude-3-haiku-20240307-v1:0</c>
217+
/// </para>
218+
/// </li> <li>
219+
/// <para>
220+
/// <c>us.amazon.nova-lite-v1:0</c>
221+
/// </para>
222+
/// </li> <li>
223+
/// <para>
224+
/// <c>us.amazon.nova-micro-v1:0</c>
225+
/// </para>
226+
/// </li> <li>
227+
/// <para>
228+
/// <c>us.amazon.nova-pro-v1:0</c>
229+
/// </para>
230+
/// </li> <li>
231+
/// <para>
232+
/// <c>us.anthropic.claude-3-5-haiku-20241022-v1:0</c>
233+
/// </para>
234+
/// </li> <li>
235+
/// <para>
236+
/// <c>us.anthropic.claude-3-7-sonnet-20250219-v1:0</c>
237+
/// </para>
238+
/// </li> <li>
239+
/// <para>
240+
/// <c>us.anthropic.claude-3-haiku-20240307-v1:0</c>
241+
/// </para>
242+
/// </li> </ul>
174243
/// </summary>
175244
[AWSProperty(Required=true, Min=1, Max=2048)]
176245
public string ModelId

sdk/src/Services/QConnect/Generated/Model/CreateAIPromptRequest.cs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@ public partial class CreateAIPromptRequest : AmazonQConnectRequest
5252
/// <para>
5353
/// The API Format of the AI Prompt.
5454
/// </para>
55+
///
56+
/// <para>
57+
/// Recommended values: <c>MESSAGES | TEXT_COMPLETIONS</c>
58+
/// </para>
59+
/// <note>
60+
/// <para>
61+
/// The values <c>ANTHROPIC_CLAUDE_MESSAGES | ANTHROPIC_CLAUDE_TEXT_COMPLETIONS</c> will
62+
/// be deprecated.
63+
/// </para>
64+
/// </note>
5565
/// </summary>
5666
[AWSProperty(Required=true)]
5767
public AIPromptAPIFormat ApiFormat
@@ -130,8 +140,7 @@ internal bool IsSetDescription()
130140
/// <summary>
131141
/// Gets and sets the property ModelId.
132142
/// <para>
133-
/// The identifier of the model used for this AI Prompt. Model Ids supported are: <c>anthropic.claude-3-haiku-20240307-v1:0</c>
134-
///
143+
/// The identifier of the model used for this AI Prompt.
135144
/// </para>
136145
/// </summary>
137146
[AWSProperty(Required=true, Min=1, Max=2048)]

sdk/src/Services/QConnect/Generated/Model/DataDetails.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ namespace Amazon.QConnect.Model
3535
public partial class DataDetails
3636
{
3737
private ContentDataDetails _contentData;
38+
private GenerativeChunkDataDetails _generativeChunkData;
3839
private GenerativeDataDetails _generativeData;
3940
private IntentDetectedDataDetails _intentDetectedData;
4041
private SourceContentDataDetails _sourceContentData;
@@ -57,6 +58,24 @@ internal bool IsSetContentData()
5758
return this._contentData != null;
5859
}
5960

61+
/// <summary>
62+
/// Gets and sets the property GenerativeChunkData.
63+
/// <para>
64+
/// Details about the generative chunk data.
65+
/// </para>
66+
/// </summary>
67+
public GenerativeChunkDataDetails GenerativeChunkData
68+
{
69+
get { return this._generativeChunkData; }
70+
set { this._generativeChunkData = value; }
71+
}
72+
73+
// Check to see if GenerativeChunkData property is set
74+
internal bool IsSetGenerativeChunkData()
75+
{
76+
return this._generativeChunkData != null;
77+
}
78+
6079
/// <summary>
6180
/// Gets and sets the property GenerativeData.
6281
/// <para>
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
/*
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
/*
17+
* Do not modify this file. This file is generated from the qconnect-2020-10-19.normal.json service model.
18+
*/
19+
using System;
20+
using System.Collections.Generic;
21+
using System.Xml.Serialization;
22+
using System.Text;
23+
using System.IO;
24+
using System.Net;
25+
26+
using Amazon.Runtime;
27+
using Amazon.Runtime.Internal;
28+
29+
#pragma warning disable CS0612,CS0618,CS1570
30+
namespace Amazon.QConnect.Model
31+
{
32+
/// <summary>
33+
/// Details about the generative chunk data.
34+
/// </summary>
35+
public partial class GenerativeChunkDataDetails
36+
{
37+
private string _completion;
38+
private string _nextChunkToken;
39+
private List<DataSummary> _references = AWSConfigs.InitializeCollections ? new List<DataSummary>() : null;
40+
41+
/// <summary>
42+
/// Gets and sets the property Completion.
43+
/// <para>
44+
/// A chunk of the LLM response.
45+
/// </para>
46+
/// </summary>
47+
[AWSProperty(Sensitive=true)]
48+
public string Completion
49+
{
50+
get { return this._completion; }
51+
set { this._completion = value; }
52+
}
53+
54+
// Check to see if Completion property is set
55+
internal bool IsSetCompletion()
56+
{
57+
return this._completion != null;
58+
}
59+
60+
/// <summary>
61+
/// Gets and sets the property NextChunkToken.
62+
/// <para>
63+
/// The token for the next set of chunks. Use the value returned in the previous response
64+
/// in the next request to retrieve the next set of chunks.
65+
/// </para>
66+
/// </summary>
67+
[AWSProperty(Min=1, Max=2048)]
68+
public string NextChunkToken
69+
{
70+
get { return this._nextChunkToken; }
71+
set { this._nextChunkToken = value; }
72+
}
73+
74+
// Check to see if NextChunkToken property is set
75+
internal bool IsSetNextChunkToken()
76+
{
77+
return this._nextChunkToken != null;
78+
}
79+
80+
/// <summary>
81+
/// Gets and sets the property References.
82+
/// <para>
83+
/// The references used to generate the LLM response.
84+
/// </para>
85+
/// </summary>
86+
public List<DataSummary> References
87+
{
88+
get { return this._references; }
89+
set { this._references = value; }
90+
}
91+
92+
// Check to see if References property is set
93+
internal bool IsSetReferences()
94+
{
95+
return this._references != null && (this._references.Count > 0 || !AWSConfigs.InitializeCollections);
96+
}
97+
98+
}
99+
}

0 commit comments

Comments
 (0)