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