Skip to content

Commit 3eb7154

Browse files
Update API model
1 parent 0505f3f commit 3eb7154

File tree

3 files changed

+201
-53
lines changed

3 files changed

+201
-53
lines changed

tools/code-generation/smithy/api-descriptions/qconnect.json

+120-6
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,14 @@
791791
{
792792
"value": "ANTHROPIC_CLAUDE_TEXT_COMPLETIONS",
793793
"name": "ANTHROPIC_CLAUDE_TEXT_COMPLETIONS"
794+
},
795+
{
796+
"value": "MESSAGES",
797+
"name": "MESSAGES"
798+
},
799+
{
800+
"value": "TEXT_COMPLETIONS",
801+
"name": "TEXT_COMPLETIONS"
794802
}
795803
]
796804
}
@@ -850,7 +858,7 @@
850858
"modelId": {
851859
"target": "com.amazonaws.qconnect#AIPromptModelIdentifier",
852860
"traits": {
853-
"smithy.api#documentation": "<p>The identifier of the model used for this AI Prompt. Model Ids supported are:\n <code>anthropic.claude-3-haiku-20240307-v1:0</code>.</p>",
861+
"smithy.api#documentation": "<p>The identifier of the model used for this AI Prompt. The following model Ids are\n supported:</p>\n <ul>\n <li>\n <p>\n <code>anthropic.claude-3-haiku--v1:0</code>\n </p>\n </li>\n <li>\n <p>\n <code>apac.amazon.nova-lite-v1:0</code>\n </p>\n </li>\n <li>\n <p>\n <code>apac.amazon.nova-micro-v1:0</code>\n </p>\n </li>\n <li>\n <p>\n <code>apac.amazon.nova-pro-v1:0</code>\n </p>\n </li>\n <li>\n <p>\n <code>apac.anthropic.claude-3-5-sonnet--v2:0</code>\n </p>\n </li>\n <li>\n <p>\n <code>apac.anthropic.claude-3-haiku-20240307-v1:0</code>\n </p>\n </li>\n <li>\n <p>\n <code>eu.amazon.nova-lite-v1:0</code>\n </p>\n </li>\n <li>\n <p>\n <code>eu.amazon.nova-micro-v1:0</code>\n </p>\n </li>\n <li>\n <p>\n <code>eu.amazon.nova-pro-v1:0</code>\n </p>\n </li>\n <li>\n <p>\n <code>eu.anthropic.claude-3-7-sonnet-20250219-v1:0</code>\n </p>\n </li>\n <li>\n <p>\n <code>eu.anthropic.claude-3-haiku-20240307-v1:0</code>\n </p>\n </li>\n <li>\n <p>\n <code>us.amazon.nova-lite-v1:0</code>\n </p>\n </li>\n <li>\n <p>\n <code>us.amazon.nova-micro-v1:0</code>\n </p>\n </li>\n <li>\n <p>\n <code>us.amazon.nova-pro-v1:0</code>\n </p>\n </li>\n <li>\n <p>\n <code>us.anthropic.claude-3-5-haiku-20241022-v1:0</code>\n </p>\n </li>\n <li>\n <p>\n <code>us.anthropic.claude-3-7-sonnet-20250219-v1:0</code>\n </p>\n </li>\n <li>\n <p>\n <code>us.anthropic.claude-3-haiku-20240307-v1:0</code>\n </p>\n </li>\n </ul>",
854862
"smithy.api#required": {}
855863
}
856864
},
@@ -985,7 +993,7 @@
985993
"modelId": {
986994
"target": "com.amazonaws.qconnect#AIPromptModelIdentifier",
987995
"traits": {
988-
"smithy.api#documentation": "<p>The identifier of the model used for this AI Prompt. Model Ids supported are:\n <code>anthropic.claude-3-haiku-20240307-v1:0</code>.</p>",
996+
"smithy.api#documentation": "<p>The identifier of the model used for this AI Prompt. Model Ids supported are:\n <code>anthropic.claude-3-haiku-20240307-v1:0</code>.</p>",
989997
"smithy.api#required": {}
990998
}
991999
},
@@ -3378,14 +3386,14 @@
33783386
"modelId": {
33793387
"target": "com.amazonaws.qconnect#AIPromptModelIdentifier",
33803388
"traits": {
3381-
"smithy.api#documentation": "<p>The identifier of the model used for this AI Prompt. Model Ids supported are:\n <code>anthropic.claude-3-haiku-20240307-v1:0</code>\n </p>",
3389+
"smithy.api#documentation": "<p>The identifier of the model used for this AI Prompt.</p>",
33823390
"smithy.api#required": {}
33833391
}
33843392
},
33853393
"apiFormat": {
33863394
"target": "com.amazonaws.qconnect#AIPromptAPIFormat",
33873395
"traits": {
3388-
"smithy.api#documentation": "<p>The API Format of the AI Prompt.</p>",
3396+
"smithy.api#documentation": "<p>The API Format of the AI Prompt.</p>\n <p>Recommended values: <code>MESSAGES | TEXT_COMPLETIONS</code>\n </p>\n <note>\n <p>The values <code>ANTHROPIC_CLAUDE_MESSAGES | ANTHROPIC_CLAUDE_TEXT_COMPLETIONS</code>\n will be deprecated.</p>\n </note>",
33893397
"smithy.api#required": {}
33903398
}
33913399
},
@@ -4917,6 +4925,12 @@
49174925
"traits": {
49184926
"smithy.api#documentation": "<p>Details about the content data.</p>"
49194927
}
4928+
},
4929+
"generativeChunkData": {
4930+
"target": "com.amazonaws.qconnect#GenerativeChunkDataDetails",
4931+
"traits": {
4932+
"smithy.api#documentation": "<p>Details about the generative chunk data.</p>"
4933+
}
49204934
}
49214935
},
49224936
"traits": {
@@ -5589,6 +5603,9 @@
55895603
{
55905604
"target": "com.amazonaws.qconnect#AccessDeniedException"
55915605
},
5606+
{
5607+
"target": "com.amazonaws.qconnect#ConflictException"
5608+
},
55925609
{
55935610
"target": "com.amazonaws.qconnect#ResourceNotFoundException"
55945611
},
@@ -6430,6 +6447,32 @@
64306447
"smithy.api#documentation": "<p>Configurations for when you choose fixed-size chunking. If you set the\n <code>chunkingStrategy</code> as <code>NONE</code>, exclude this field.</p>"
64316448
}
64326449
},
6450+
"com.amazonaws.qconnect#GenerativeChunkDataDetails": {
6451+
"type": "structure",
6452+
"members": {
6453+
"completion": {
6454+
"target": "com.amazonaws.qconnect#SensitiveString",
6455+
"traits": {
6456+
"smithy.api#documentation": "<p>A chunk of the LLM response.</p>"
6457+
}
6458+
},
6459+
"references": {
6460+
"target": "com.amazonaws.qconnect#DataSummaryList",
6461+
"traits": {
6462+
"smithy.api#documentation": "<p>The references used to generate the LLM response.</p>"
6463+
}
6464+
},
6465+
"nextChunkToken": {
6466+
"target": "com.amazonaws.qconnect#NextToken",
6467+
"traits": {
6468+
"smithy.api#documentation": "<p>The token for the next set of chunks. Use the value returned in the previous response in\n the next request to retrieve the next set of chunks.</p>"
6469+
}
6470+
}
6471+
},
6472+
"traits": {
6473+
"smithy.api#documentation": "<p>Details about the generative chunk data.</p>"
6474+
}
6475+
},
64336476
"com.amazonaws.qconnect#GenerativeContentFeedbackData": {
64346477
"type": "structure",
64356478
"members": {
@@ -7462,6 +7505,13 @@
74627505
"smithy.api#documentation": "<p>The duration (in seconds) for which the call waits for a recommendation to be made\n available before returning. If a recommendation is available, the call returns sooner than\n <code>WaitTimeSeconds</code>. If no messages are available and the wait time expires, the\n call returns successfully with an empty list.</p>",
74637506
"smithy.api#httpQuery": "waitTimeSeconds"
74647507
}
7508+
},
7509+
"nextChunkToken": {
7510+
"target": "com.amazonaws.qconnect#NextToken",
7511+
"traits": {
7512+
"smithy.api#documentation": "<p>The token for the next set of chunks. Use the value returned in the previous response in\n the next request to retrieve the next set of chunks.</p>",
7513+
"smithy.api#httpQuery": "nextChunkToken"
7514+
}
74657515
}
74667516
}
74677517
},
@@ -10469,6 +10519,20 @@
1046910519
}
1047010520
}
1047110521
},
10522+
"com.amazonaws.qconnect#MessageConfiguration": {
10523+
"type": "structure",
10524+
"members": {
10525+
"generateFillerMessage": {
10526+
"target": "smithy.api#Boolean",
10527+
"traits": {
10528+
"smithy.api#documentation": "<p>Generates a filler response when tool selection is <code>QUESTION</code>.</p>"
10529+
}
10530+
}
10531+
},
10532+
"traits": {
10533+
"smithy.api#documentation": "<p>The configuration for a <a href=\"https://docs.aws.amazon.com/connect/latest/APIReference/API_amazon-q-connect_SendMessage.html\">SendMessage</a>\n request.</p>"
10534+
}
10535+
},
1047210536
"com.amazonaws.qconnect#MessageData": {
1047310537
"type": "union",
1047410538
"members": {
@@ -12124,6 +12188,22 @@
1212412188
{
1212512189
"value": "GENERATIVE_ANSWER",
1212612190
"name": "GENERATIVE_ANSWER"
12191+
},
12192+
{
12193+
"value": "GENERATIVE_ANSWER_CHUNK",
12194+
"name": "GENERATIVE_ANSWER_CHUNK"
12195+
},
12196+
{
12197+
"value": "BLOCKED_GENERATIVE_ANSWER_CHUNK",
12198+
"name": "BLOCKED_GENERATIVE_ANSWER_CHUNK"
12199+
},
12200+
{
12201+
"value": "INTENT_ANSWER_CHUNK",
12202+
"name": "INTENT_ANSWER_CHUNK"
12203+
},
12204+
{
12205+
"value": "BLOCKED_INTENT_ANSWER_CHUNK",
12206+
"name": "BLOCKED_INTENT_ANSWER_CHUNK"
1212712207
}
1212812208
]
1212912209
}
@@ -13142,6 +13222,22 @@
1314213222
{
1314313223
"value": "DETECTED_INTENT",
1314413224
"name": "DETECTED_INTENT"
13225+
},
13226+
{
13227+
"value": "GENERATIVE_ANSWER_CHUNK",
13228+
"name": "GENERATIVE_ANSWER_CHUNK"
13229+
},
13230+
{
13231+
"value": "BLOCKED_GENERATIVE_ANSWER_CHUNK",
13232+
"name": "BLOCKED_GENERATIVE_ANSWER_CHUNK"
13233+
},
13234+
{
13235+
"value": "INTENT_ANSWER_CHUNK",
13236+
"name": "INTENT_ANSWER_CHUNK"
13237+
},
13238+
{
13239+
"value": "BLOCKED_INTENT_ANSWER_CHUNK",
13240+
"name": "BLOCKED_INTENT_ANSWER_CHUNK"
1314513241
}
1314613242
]
1314713243
}
@@ -14028,7 +14124,7 @@
1402814124
}
1402914125
},
1403014126
"traits": {
14031-
"smithy.api#documentation": "<p>The conversation history data to included in conversation context data before the\n Amazon Q in Connect session.</p>"
14127+
"smithy.api#documentation": "<p>The conversation history data to included in conversation context data before the Amazon Q\n in Connect session.</p>"
1403214128
}
1403314129
},
1403414130
"com.amazonaws.qconnect#SelfServiceConversationHistoryList": {
@@ -14160,6 +14256,12 @@
1416014256
"smithy.api#documentation": "<p>The conversation context before the Amazon Q in Connect session.</p>"
1416114257
}
1416214258
},
14259+
"configuration": {
14260+
"target": "com.amazonaws.qconnect#MessageConfiguration",
14261+
"traits": {
14262+
"smithy.api#documentation": "<p>The configuration of the <a href=\"https://docs.aws.amazon.com/connect/latest/APIReference/API_amazon-q-connect_SendMessage.html\">SendMessage</a>\n request.</p>"
14263+
}
14264+
},
1416314265
"clientToken": {
1416414266
"target": "com.amazonaws.qconnect#ClientToken",
1416514267
"traits": {
@@ -14182,6 +14284,12 @@
1418214284
"smithy.api#required": {}
1418314285
}
1418414286
},
14287+
"configuration": {
14288+
"target": "com.amazonaws.qconnect#MessageConfiguration",
14289+
"traits": {
14290+
"smithy.api#documentation": "<p>The configuration of the <a href=\"https://docs.aws.amazon.com/connect/latest/APIReference/API_amazon-q-connect_SendMessage.html\">SendMessage</a>\n request.</p>"
14291+
}
14292+
},
1418514293
"nextMessageToken": {
1418614294
"target": "com.amazonaws.qconnect#NextToken",
1418714295
"traits": {
@@ -14320,6 +14428,12 @@
1432014428
"traits": {
1432114429
"smithy.api#documentation": "<p>The configuration of the AI Agents (mapped by AI Agent Type to AI Agent version) that\n should be used by Amazon Q in Connect for this Session.</p>"
1432214430
}
14431+
},
14432+
"origin": {
14433+
"target": "com.amazonaws.qconnect#Origin",
14434+
"traits": {
14435+
"smithy.api#documentation": "<p>The origin of the Session to be listed. <code>SYSTEM</code> for a default Session created\n by Amazon Q in Connect or <code>CUSTOMER</code> for a Session created by calling <a href=\"https://docs.aws.amazon.com/connect/latest/APIReference/API_amazon-q-connect_CreateSession.html\">CreateSession</a> API.</p>"
14436+
}
1432314437
}
1432414438
},
1432514439
"traits": {
@@ -14909,7 +15023,7 @@
1490915023
"traits": {
1491015024
"smithy.api#length": {
1491115025
"min": 1,
14912-
"max": 200000
15026+
"max": 1000000
1491315027
},
1491415028
"smithy.api#sensitive": {}
1491515029
}

0 commit comments

Comments
 (0)