aws-sdk-qconnect 1.24.0 → 1.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-qconnect/client.rb +1107 -17
- data/lib/aws-sdk-qconnect/client_api.rb +506 -0
- data/lib/aws-sdk-qconnect/types.rb +1585 -100
- data/lib/aws-sdk-qconnect.rb +1 -1
- data/sig/client.rbs +380 -8
- data/sig/types.rbs +350 -13
- metadata +2 -2
data/lib/aws-sdk-qconnect.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -99,6 +99,7 @@ module Aws
|
|
99
99
|
?client_token: ::String,
|
100
100
|
configuration: {
|
101
101
|
answer_recommendation_ai_agent_configuration: {
|
102
|
+
answer_generation_ai_guardrail_id: ::String?,
|
102
103
|
answer_generation_ai_prompt_id: ::String?,
|
103
104
|
association_configurations: Array[
|
104
105
|
{
|
@@ -139,9 +140,11 @@ module Aws
|
|
139
140
|
},
|
140
141
|
]?,
|
141
142
|
intent_labeling_generation_ai_prompt_id: ::String?,
|
143
|
+
locale: ::String?,
|
142
144
|
query_reformulation_ai_prompt_id: ::String?
|
143
145
|
}?,
|
144
146
|
manual_search_ai_agent_configuration: {
|
147
|
+
answer_generation_ai_guardrail_id: ::String?,
|
145
148
|
answer_generation_ai_prompt_id: ::String?,
|
146
149
|
association_configurations: Array[
|
147
150
|
{
|
@@ -180,13 +183,57 @@ module Aws
|
|
180
183
|
association_id: ::String?,
|
181
184
|
association_type: ("KNOWLEDGE_BASE")?
|
182
185
|
},
|
183
|
-
]
|
186
|
+
]?,
|
187
|
+
locale: ::String?
|
188
|
+
}?,
|
189
|
+
self_service_ai_agent_configuration: {
|
190
|
+
association_configurations: Array[
|
191
|
+
{
|
192
|
+
association_configuration_data: {
|
193
|
+
knowledge_base_association_configuration_data: {
|
194
|
+
content_tag_filter: {
|
195
|
+
and_conditions: Array[
|
196
|
+
{
|
197
|
+
key: ::String,
|
198
|
+
value: ::String?
|
199
|
+
},
|
200
|
+
]?,
|
201
|
+
or_conditions: Array[
|
202
|
+
{
|
203
|
+
and_conditions: Array[
|
204
|
+
{
|
205
|
+
key: ::String,
|
206
|
+
value: ::String?
|
207
|
+
},
|
208
|
+
]?,
|
209
|
+
tag_condition: {
|
210
|
+
key: ::String,
|
211
|
+
value: ::String?
|
212
|
+
}?
|
213
|
+
},
|
214
|
+
]?,
|
215
|
+
tag_condition: {
|
216
|
+
key: ::String,
|
217
|
+
value: ::String?
|
218
|
+
}?
|
219
|
+
}?,
|
220
|
+
max_results: ::Integer?,
|
221
|
+
override_knowledge_base_search_type: ("HYBRID" | "SEMANTIC")?
|
222
|
+
}?
|
223
|
+
}?,
|
224
|
+
association_id: ::String?,
|
225
|
+
association_type: ("KNOWLEDGE_BASE")?
|
226
|
+
},
|
227
|
+
]?,
|
228
|
+
self_service_ai_guardrail_id: ::String?,
|
229
|
+
self_service_answer_generation_ai_prompt_id: ::String?,
|
230
|
+
self_service_pre_processing_ai_prompt_id: ::String?
|
184
231
|
}?
|
185
232
|
},
|
186
233
|
?description: ::String,
|
187
234
|
name: ::String,
|
188
235
|
?tags: Hash[::String, ::String],
|
189
|
-
type: ("MANUAL_SEARCH" | "ANSWER_RECOMMENDATION"),
|
236
|
+
type: ("MANUAL_SEARCH" | "ANSWER_RECOMMENDATION" | "SELF_SERVICE"),
|
190
237
|
visibility_status: ("SAVED" | "PUBLISHED")
|
191
238
|
) -> _CreateAIAgentResponseSuccess
|
192
239
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateAIAgentResponseSuccess
|
@@ -205,6 +252,92 @@ module Aws
|
|
205
252
|
) -> _CreateAIAgentVersionResponseSuccess
|
206
253
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateAIAgentVersionResponseSuccess
|
207
254
|
|
255
|
+
interface _CreateAIGuardrailResponseSuccess
|
256
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateAIGuardrailResponse]
|
257
|
+
def ai_guardrail: () -> Types::AIGuardrailData
|
258
|
+
end
|
259
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/QConnect/Client.html#create_ai_guardrail-instance_method
|
260
|
+
def create_ai_guardrail: (
|
261
|
+
assistant_id: ::String,
|
262
|
+
blocked_input_messaging: ::String,
|
263
|
+
blocked_outputs_messaging: ::String,
|
264
|
+
?client_token: ::String,
|
265
|
+
?content_policy_config: {
|
266
|
+
filters_config: Array[
|
267
|
+
{
|
268
|
+
input_strength: ("NONE" | "LOW" | "MEDIUM" | "HIGH"),
|
269
|
+
output_strength: ("NONE" | "LOW" | "MEDIUM" | "HIGH"),
|
270
|
+
type: ("SEXUAL" | "VIOLENCE" | "HATE" | "INSULTS" | "MISCONDUCT" | "PROMPT_ATTACK")
|
271
|
+
},
|
272
|
+
]
|
273
|
+
},
|
274
|
+
?contextual_grounding_policy_config: {
|
275
|
+
filters_config: Array[
|
276
|
+
{
|
277
|
+
threshold: ::Float,
|
278
|
+
type: ("GROUNDING" | "RELEVANCE")
|
279
|
+
},
|
280
|
+
]
|
281
|
+
},
|
282
|
+
?description: ::String,
|
283
|
+
name: ::String,
|
284
|
+
?sensitive_information_policy_config: {
|
285
|
+
pii_entities_config: Array[
|
286
|
+
{
|
287
|
+
action: ("BLOCK" | "ANONYMIZE"),
|
288
|
+
type: ("ADDRESS" | "AGE" | "AWS_ACCESS_KEY" | "AWS_SECRET_KEY" | "CA_HEALTH_NUMBER" | "CA_SOCIAL_INSURANCE_NUMBER" | "CREDIT_DEBIT_CARD_CVV" | "CREDIT_DEBIT_CARD_EXPIRY" | "CREDIT_DEBIT_CARD_NUMBER" | "DRIVER_ID" | "EMAIL" | "INTERNATIONAL_BANK_ACCOUNT_NUMBER" | "IP_ADDRESS" | "LICENSE_PLATE" | "MAC_ADDRESS" | "NAME" | "PASSWORD" | "PHONE" | "PIN" | "SWIFT_CODE" | "UK_NATIONAL_HEALTH_SERVICE_NUMBER" | "UK_NATIONAL_INSURANCE_NUMBER" | "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER" | "URL" | "USERNAME" | "US_BANK_ACCOUNT_NUMBER" | "US_BANK_ROUTING_NUMBER" | "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER" | "US_PASSPORT_NUMBER" | "US_SOCIAL_SECURITY_NUMBER" | "VEHICLE_IDENTIFICATION_NUMBER")
|
289
|
+
},
|
290
|
+
]?,
|
291
|
+
regexes_config: Array[
|
292
|
+
{
|
293
|
+
action: ("BLOCK" | "ANONYMIZE"),
|
294
|
+
description: ::String?,
|
295
|
+
name: ::String,
|
296
|
+
pattern: ::String
|
297
|
+
},
|
298
|
+
]?
|
299
|
+
},
|
300
|
+
?tags: Hash[::String, ::String],
|
301
|
+
?topic_policy_config: {
|
302
|
+
topics_config: Array[
|
303
|
+
{
|
304
|
+
definition: ::String,
|
305
|
+
examples: Array[::String]?,
|
306
|
+
name: ::String,
|
307
|
+
type: ("DENY")
|
308
|
+
},
|
309
|
+
]
|
310
|
+
},
|
311
|
+
visibility_status: ("SAVED" | "PUBLISHED"),
|
312
|
+
?word_policy_config: {
|
313
|
+
managed_word_lists_config: Array[
|
314
|
+
{
|
315
|
+
type: ("PROFANITY")
|
316
|
+
},
|
317
|
+
]?,
|
318
|
+
words_config: Array[
|
319
|
+
{
|
320
|
+
text: ::String
|
321
|
+
},
|
322
|
+
]?
|
323
|
+
}
|
324
|
+
) -> _CreateAIGuardrailResponseSuccess
|
325
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateAIGuardrailResponseSuccess
|
326
|
+
|
327
|
+
interface _CreateAIGuardrailVersionResponseSuccess
|
328
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateAIGuardrailVersionResponse]
|
329
|
+
def ai_guardrail: () -> Types::AIGuardrailData
|
330
|
+
def version_number: () -> ::Integer
|
331
|
+
end
|
332
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/QConnect/Client.html#create_ai_guardrail_version-instance_method
|
333
|
+
def create_ai_guardrail_version: (
|
334
|
+
ai_guardrail_id: ::String,
|
335
|
+
assistant_id: ::String,
|
336
|
+
?client_token: ::String,
|
337
|
+
?modified_time: ::Time
|
338
|
+
) -> _CreateAIGuardrailVersionResponseSuccess
|
339
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateAIGuardrailVersionResponseSuccess
|
340
|
+
|
208
341
|
interface _CreateAIPromptResponseSuccess
|
209
342
|
include ::Seahorse::Client::_ResponseSuccess[Types::CreateAIPromptResponse]
|
210
343
|
def ai_prompt: () -> Types::AIPromptData
|
@@ -224,7 +357,7 @@ module Aws
|
|
224
357
|
}?
|
225
358
|
},
|
226
359
|
template_type: ("TEXT"),
|
227
|
-
type: ("ANSWER_GENERATION" | "INTENT_LABELING_GENERATION" | "QUERY_REFORMULATION"),
|
360
|
+
type: ("ANSWER_GENERATION" | "INTENT_LABELING_GENERATION" | "QUERY_REFORMULATION" | "SELF_SERVICE_PRE_PROCESSING" | "SELF_SERVICE_ANSWER_GENERATION"),
|
228
361
|
visibility_status: ("SAVED" | "PUBLISHED")
|
229
362
|
) -> _CreateAIPromptResponseSuccess
|
230
363
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateAIPromptResponseSuccess
|
@@ -567,7 +700,7 @@ module Aws
|
|
567
700
|
end
|
568
701
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/QConnect/Client.html#create_session-instance_method
|
569
702
|
def create_session: (
|
570
|
-
?ai_agent_configuration: Hash[("MANUAL_SEARCH" | "ANSWER_RECOMMENDATION"), {
|
703
|
+
?ai_agent_configuration: Hash[("MANUAL_SEARCH" | "ANSWER_RECOMMENDATION" | "SELF_SERVICE"), {
|
571
704
|
ai_agent_id: ::String
|
572
705
|
}],
|
573
706
|
assistant_id: ::String,
|
@@ -639,6 +772,27 @@ module Aws
|
|
639
772
|
) -> _DeleteAIAgentVersionResponseSuccess
|
640
773
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteAIAgentVersionResponseSuccess
|
641
774
|
|
775
|
+
interface _DeleteAIGuardrailResponseSuccess
|
776
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DeleteAIGuardrailResponse]
|
777
|
+
end
|
778
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/QConnect/Client.html#delete_ai_guardrail-instance_method
|
779
|
+
def delete_ai_guardrail: (
|
780
|
+
ai_guardrail_id: ::String,
|
781
|
+
assistant_id: ::String
|
782
|
+
) -> _DeleteAIGuardrailResponseSuccess
|
783
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteAIGuardrailResponseSuccess
|
784
|
+
|
785
|
+
interface _DeleteAIGuardrailVersionResponseSuccess
|
786
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DeleteAIGuardrailVersionResponse]
|
787
|
+
end
|
788
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/QConnect/Client.html#delete_ai_guardrail_version-instance_method
|
789
|
+
def delete_ai_guardrail_version: (
|
790
|
+
ai_guardrail_id: ::String,
|
791
|
+
assistant_id: ::String,
|
792
|
+
version_number: ::Integer
|
793
|
+
) -> _DeleteAIGuardrailVersionResponseSuccess
|
794
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteAIGuardrailVersionResponseSuccess
|
795
|
+
|
642
796
|
interface _DeleteAIPromptResponseSuccess
|
643
797
|
include ::Seahorse::Client::_ResponseSuccess[Types::DeleteAIPromptResponse]
|
644
798
|
end
|
@@ -762,6 +916,18 @@ module Aws
|
|
762
916
|
) -> _GetAIAgentResponseSuccess
|
763
917
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAIAgentResponseSuccess
|
764
918
|
|
919
|
+
interface _GetAIGuardrailResponseSuccess
|
920
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetAIGuardrailResponse]
|
921
|
+
def ai_guardrail: () -> Types::AIGuardrailData
|
922
|
+
def version_number: () -> ::Integer
|
923
|
+
end
|
924
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/QConnect/Client.html#get_ai_guardrail-instance_method
|
925
|
+
def get_ai_guardrail: (
|
926
|
+
ai_guardrail_id: ::String,
|
927
|
+
assistant_id: ::String
|
928
|
+
) -> _GetAIGuardrailResponseSuccess
|
929
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAIGuardrailResponseSuccess
|
930
|
+
|
765
931
|
interface _GetAIPromptResponseSuccess
|
766
932
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetAIPromptResponse]
|
767
933
|
def ai_prompt: () -> Types::AIPromptData
|
@@ -861,6 +1027,23 @@ module Aws
|
|
861
1027
|
) -> _GetMessageTemplateResponseSuccess
|
862
1028
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetMessageTemplateResponseSuccess
|
863
1029
|
|
1030
|
+
interface _GetNextMessageResponseSuccess
|
1031
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetNextMessageResponse]
|
1032
|
+
def conversation_session_data: () -> ::Array[Types::RuntimeSessionData]
|
1033
|
+
def conversation_state: () -> Types::ConversationState
|
1034
|
+
def next_message_token: () -> ::String
|
1035
|
+
def request_message_id: () -> ::String
|
1036
|
+
def response: () -> Types::MessageOutput
|
1037
|
+
def type: () -> ("TEXT")
|
1038
|
+
end
|
1039
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/QConnect/Client.html#get_next_message-instance_method
|
1040
|
+
def get_next_message: (
|
1041
|
+
assistant_id: ::String,
|
1042
|
+
next_message_token: ::String,
|
1043
|
+
session_id: ::String
|
1044
|
+
) -> _GetNextMessageResponseSuccess
|
1045
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetNextMessageResponseSuccess
|
1046
|
+
|
864
1047
|
interface _GetQuickResponseResponseSuccess
|
865
1048
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetQuickResponseResponse]
|
866
1049
|
def quick_response: () -> Types::QuickResponseData
|
@@ -926,6 +1109,33 @@ module Aws
|
|
926
1109
|
) -> _ListAIAgentsResponseSuccess
|
927
1110
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAIAgentsResponseSuccess
|
928
1111
|
|
1112
|
+
interface _ListAIGuardrailVersionsResponseSuccess
|
1113
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListAIGuardrailVersionsResponse]
|
1114
|
+
def ai_guardrail_version_summaries: () -> ::Array[Types::AIGuardrailVersionSummary]
|
1115
|
+
def next_token: () -> ::String
|
1116
|
+
end
|
1117
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/QConnect/Client.html#list_ai_guardrail_versions-instance_method
|
1118
|
+
def list_ai_guardrail_versions: (
|
1119
|
+
ai_guardrail_id: ::String,
|
1120
|
+
assistant_id: ::String,
|
1121
|
+
?max_results: ::Integer,
|
1122
|
+
?next_token: ::String
|
1123
|
+
) -> _ListAIGuardrailVersionsResponseSuccess
|
1124
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAIGuardrailVersionsResponseSuccess
|
1125
|
+
|
1126
|
+
interface _ListAIGuardrailsResponseSuccess
|
1127
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListAIGuardrailsResponse]
|
1128
|
+
def ai_guardrail_summaries: () -> ::Array[Types::AIGuardrailSummary]
|
1129
|
+
def next_token: () -> ::String
|
1130
|
+
end
|
1131
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/QConnect/Client.html#list_ai_guardrails-instance_method
|
1132
|
+
def list_ai_guardrails: (
|
1133
|
+
assistant_id: ::String,
|
1134
|
+
?max_results: ::Integer,
|
1135
|
+
?next_token: ::String
|
1136
|
+
) -> _ListAIGuardrailsResponseSuccess
|
1137
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAIGuardrailsResponseSuccess
|
1138
|
+
|
929
1139
|
interface _ListAIPromptVersionsResponseSuccess
|
930
1140
|
include ::Seahorse::Client::_ResponseSuccess[Types::ListAIPromptVersionsResponse]
|
931
1141
|
def ai_prompt_version_summaries: () -> ::Array[Types::AIPromptVersionSummary]
|
@@ -1059,6 +1269,20 @@ module Aws
|
|
1059
1269
|
) -> _ListMessageTemplatesResponseSuccess
|
1060
1270
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListMessageTemplatesResponseSuccess
|
1061
1271
|
|
1272
|
+
interface _ListMessagesResponseSuccess
|
1273
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListMessagesResponse]
|
1274
|
+
def messages: () -> ::Array[Types::MessageOutput]
|
1275
|
+
def next_token: () -> ::String
|
1276
|
+
end
|
1277
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/QConnect/Client.html#list_messages-instance_method
|
1278
|
+
def list_messages: (
|
1279
|
+
assistant_id: ::String,
|
1280
|
+
?max_results: ::Integer,
|
1281
|
+
?next_token: ::String,
|
1282
|
+
session_id: ::String
|
1283
|
+
) -> _ListMessagesResponseSuccess
|
1284
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListMessagesResponseSuccess
|
1285
|
+
|
1062
1286
|
interface _ListQuickResponsesResponseSuccess
|
1063
1287
|
include ::Seahorse::Client::_ResponseSuccess[Types::ListQuickResponsesResponse]
|
1064
1288
|
def next_token: () -> ::String
|
@@ -1154,7 +1378,7 @@ module Aws
|
|
1154
1378
|
end
|
1155
1379
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/QConnect/Client.html#remove_assistant_ai_agent-instance_method
|
1156
1380
|
def remove_assistant_ai_agent: (
|
1157
|
-
ai_agent_type: ("MANUAL_SEARCH" | "ANSWER_RECOMMENDATION"),
|
1381
|
+
ai_agent_type: ("MANUAL_SEARCH" | "ANSWER_RECOMMENDATION" | "SELF_SERVICE"),
|
1158
1382
|
assistant_id: ::String
|
1159
1383
|
) -> _RemoveAssistantAIAgentResponseSuccess
|
1160
1384
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RemoveAssistantAIAgentResponseSuccess
|
@@ -1374,6 +1598,36 @@ module Aws
|
|
1374
1598
|
) -> _SearchSessionsResponseSuccess
|
1375
1599
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SearchSessionsResponseSuccess
|
1376
1600
|
|
1601
|
+
interface _SendMessageResponseSuccess
|
1602
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::SendMessageResponse]
|
1603
|
+
def next_message_token: () -> ::String
|
1604
|
+
def request_message_id: () -> ::String
|
1605
|
+
end
|
1606
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/QConnect/Client.html#send_message-instance_method
|
1607
|
+
def send_message: (
|
1608
|
+
assistant_id: ::String,
|
1609
|
+
?client_token: ::String,
|
1610
|
+
?conversation_context: {
|
1611
|
+
self_service_conversation_history: Array[
|
1612
|
+
{
|
1613
|
+
bot_response: ::String?,
|
1614
|
+
input_transcript: ::String?,
|
1615
|
+
turn_number: ::Integer
|
1616
|
+
},
|
1617
|
+
]
|
1618
|
+
},
|
1619
|
+
message: {
|
1620
|
+
value: {
|
1621
|
+
text: {
|
1622
|
+
value: ::String?
|
1623
|
+
}?
|
1624
|
+
}
|
1625
|
+
},
|
1626
|
+
session_id: ::String,
|
1627
|
+
type: ("TEXT")
|
1628
|
+
) -> _SendMessageResponseSuccess
|
1629
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SendMessageResponseSuccess
|
1630
|
+
|
1377
1631
|
interface _StartContentUploadResponseSuccess
|
1378
1632
|
include ::Seahorse::Client::_ResponseSuccess[Types::StartContentUploadResponse]
|
1379
1633
|
def headers_to_include: () -> ::Hash[::String, ::String]
|
@@ -1442,6 +1696,7 @@ module Aws
|
|
1442
1696
|
?client_token: ::String,
|
1443
1697
|
?configuration: {
|
1444
1698
|
answer_recommendation_ai_agent_configuration: {
|
1699
|
+
answer_generation_ai_guardrail_id: ::String?,
|
1445
1700
|
answer_generation_ai_prompt_id: ::String?,
|
1446
1701
|
association_configurations: Array[
|
1447
1702
|
{
|
@@ -1482,9 +1737,11 @@ module Aws
|
|
1482
1737
|
},
|
1483
1738
|
]?,
|
1484
1739
|
intent_labeling_generation_ai_prompt_id: ::String?,
|
1740
|
+
locale: ::String?,
|
1485
1741
|
query_reformulation_ai_prompt_id: ::String?
|
1486
1742
|
}?,
|
1487
1743
|
manual_search_ai_agent_configuration: {
|
1744
|
+
answer_generation_ai_guardrail_id: ::String?,
|
1488
1745
|
answer_generation_ai_prompt_id: ::String?,
|
1489
1746
|
association_configurations: Array[
|
1490
1747
|
{
|
@@ -1523,7 +1780,51 @@ module Aws
|
|
1523
1780
|
association_id: ::String?,
|
1524
1781
|
association_type: ("KNOWLEDGE_BASE")?
|
1525
1782
|
},
|
1526
|
-
]
|
1783
|
+
]?,
|
1784
|
+
locale: ::String?
|
1785
|
+
}?,
|
1786
|
+
self_service_ai_agent_configuration: {
|
1787
|
+
association_configurations: Array[
|
1788
|
+
{
|
1789
|
+
association_configuration_data: {
|
1790
|
+
knowledge_base_association_configuration_data: {
|
1791
|
+
content_tag_filter: {
|
1792
|
+
and_conditions: Array[
|
1793
|
+
{
|
1794
|
+
key: ::String,
|
1795
|
+
value: ::String?
|
1796
|
+
},
|
1797
|
+
]?,
|
1798
|
+
or_conditions: Array[
|
1799
|
+
{
|
1800
|
+
and_conditions: Array[
|
1801
|
+
{
|
1802
|
+
key: ::String,
|
1803
|
+
value: ::String?
|
1804
|
+
},
|
1805
|
+
]?,
|
1806
|
+
tag_condition: {
|
1807
|
+
key: ::String,
|
1808
|
+
value: ::String?
|
1809
|
+
}?
|
1810
|
+
},
|
1811
|
+
]?,
|
1812
|
+
tag_condition: {
|
1813
|
+
key: ::String,
|
1814
|
+
value: ::String?
|
1815
|
+
}?
|
1816
|
+
}?,
|
1817
|
+
max_results: ::Integer?,
|
1818
|
+
override_knowledge_base_search_type: ("HYBRID" | "SEMANTIC")?
|
1819
|
+
}?
|
1820
|
+
}?,
|
1821
|
+
association_id: ::String?,
|
1822
|
+
association_type: ("KNOWLEDGE_BASE")?
|
1823
|
+
},
|
1824
|
+
]?,
|
1825
|
+
self_service_ai_guardrail_id: ::String?,
|
1826
|
+
self_service_answer_generation_ai_prompt_id: ::String?,
|
1827
|
+
self_service_pre_processing_ai_prompt_id: ::String?
|
1527
1828
|
}?
|
1528
1829
|
},
|
1529
1830
|
?description: ::String,
|
@@ -1531,6 +1832,77 @@ module Aws
|
|
1531
1832
|
) -> _UpdateAIAgentResponseSuccess
|
1532
1833
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateAIAgentResponseSuccess
|
1533
1834
|
|
1835
|
+
interface _UpdateAIGuardrailResponseSuccess
|
1836
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::UpdateAIGuardrailResponse]
|
1837
|
+
def ai_guardrail: () -> Types::AIGuardrailData
|
1838
|
+
end
|
1839
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/QConnect/Client.html#update_ai_guardrail-instance_method
|
1840
|
+
def update_ai_guardrail: (
|
1841
|
+
ai_guardrail_id: ::String,
|
1842
|
+
assistant_id: ::String,
|
1843
|
+
blocked_input_messaging: ::String,
|
1844
|
+
blocked_outputs_messaging: ::String,
|
1845
|
+
?client_token: ::String,
|
1846
|
+
?content_policy_config: {
|
1847
|
+
filters_config: Array[
|
1848
|
+
{
|
1849
|
+
input_strength: ("NONE" | "LOW" | "MEDIUM" | "HIGH"),
|
1850
|
+
output_strength: ("NONE" | "LOW" | "MEDIUM" | "HIGH"),
|
1851
|
+
type: ("SEXUAL" | "VIOLENCE" | "HATE" | "INSULTS" | "MISCONDUCT" | "PROMPT_ATTACK")
|
1852
|
+
},
|
1853
|
+
]
|
1854
|
+
},
|
1855
|
+
?contextual_grounding_policy_config: {
|
1856
|
+
filters_config: Array[
|
1857
|
+
{
|
1858
|
+
threshold: ::Float,
|
1859
|
+
type: ("GROUNDING" | "RELEVANCE")
|
1860
|
+
},
|
1861
|
+
]
|
1862
|
+
},
|
1863
|
+
?description: ::String,
|
1864
|
+
?sensitive_information_policy_config: {
|
1865
|
+
pii_entities_config: Array[
|
1866
|
+
{
|
1867
|
+
action: ("BLOCK" | "ANONYMIZE"),
|
1868
|
+
type: ("ADDRESS" | "AGE" | "AWS_ACCESS_KEY" | "AWS_SECRET_KEY" | "CA_HEALTH_NUMBER" | "CA_SOCIAL_INSURANCE_NUMBER" | "CREDIT_DEBIT_CARD_CVV" | "CREDIT_DEBIT_CARD_EXPIRY" | "CREDIT_DEBIT_CARD_NUMBER" | "DRIVER_ID" | "EMAIL" | "INTERNATIONAL_BANK_ACCOUNT_NUMBER" | "IP_ADDRESS" | "LICENSE_PLATE" | "MAC_ADDRESS" | "NAME" | "PASSWORD" | "PHONE" | "PIN" | "SWIFT_CODE" | "UK_NATIONAL_HEALTH_SERVICE_NUMBER" | "UK_NATIONAL_INSURANCE_NUMBER" | "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER" | "URL" | "USERNAME" | "US_BANK_ACCOUNT_NUMBER" | "US_BANK_ROUTING_NUMBER" | "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER" | "US_PASSPORT_NUMBER" | "US_SOCIAL_SECURITY_NUMBER" | "VEHICLE_IDENTIFICATION_NUMBER")
|
1869
|
+
},
|
1870
|
+
]?,
|
1871
|
+
regexes_config: Array[
|
1872
|
+
{
|
1873
|
+
action: ("BLOCK" | "ANONYMIZE"),
|
1874
|
+
description: ::String?,
|
1875
|
+
name: ::String,
|
1876
|
+
pattern: ::String
|
1877
|
+
},
|
1878
|
+
]?
|
1879
|
+
},
|
1880
|
+
?topic_policy_config: {
|
1881
|
+
topics_config: Array[
|
1882
|
+
{
|
1883
|
+
definition: ::String,
|
1884
|
+
examples: Array[::String]?,
|
1885
|
+
name: ::String,
|
1886
|
+
type: ("DENY")
|
1887
|
+
},
|
1888
|
+
]
|
1889
|
+
},
|
1890
|
+
visibility_status: ("SAVED" | "PUBLISHED"),
|
1891
|
+
?word_policy_config: {
|
1892
|
+
managed_word_lists_config: Array[
|
1893
|
+
{
|
1894
|
+
type: ("PROFANITY")
|
1895
|
+
},
|
1896
|
+
]?,
|
1897
|
+
words_config: Array[
|
1898
|
+
{
|
1899
|
+
text: ::String
|
1900
|
+
},
|
1901
|
+
]?
|
1902
|
+
}
|
1903
|
+
) -> _UpdateAIGuardrailResponseSuccess
|
1904
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateAIGuardrailResponseSuccess
|
1905
|
+
|
1534
1906
|
interface _UpdateAIPromptResponseSuccess
|
1535
1907
|
include ::Seahorse::Client::_ResponseSuccess[Types::UpdateAIPromptResponse]
|
1536
1908
|
def ai_prompt: () -> Types::AIPromptData
|
@@ -1556,7 +1928,7 @@ module Aws
|
|
1556
1928
|
end
|
1557
1929
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/QConnect/Client.html#update_assistant_ai_agent-instance_method
|
1558
1930
|
def update_assistant_ai_agent: (
|
1559
|
-
ai_agent_type: ("MANUAL_SEARCH" | "ANSWER_RECOMMENDATION"),
|
1931
|
+
ai_agent_type: ("MANUAL_SEARCH" | "ANSWER_RECOMMENDATION" | "SELF_SERVICE"),
|
1560
1932
|
assistant_id: ::String,
|
1561
1933
|
configuration: {
|
1562
1934
|
ai_agent_id: ::String
|
@@ -1757,7 +2129,7 @@ module Aws
|
|
1757
2129
|
end
|
1758
2130
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/QConnect/Client.html#update_session-instance_method
|
1759
2131
|
def update_session: (
|
1760
|
-
?ai_agent_configuration: Hash[("MANUAL_SEARCH" | "ANSWER_RECOMMENDATION"), {
|
2132
|
+
?ai_agent_configuration: Hash[("MANUAL_SEARCH" | "ANSWER_RECOMMENDATION" | "SELF_SERVICE"), {
|
1761
2133
|
ai_agent_id: ::String
|
1762
2134
|
}],
|
1763
2135
|
assistant_id: ::String,
|