|
377 | 377 | "documentation":"<p>Removes the specified recommendations from the specified assistant's queue of newly available recommendations. You can use this API in conjunction with <a href=\"https://docs.aws.amazon.com/wisdom/latest/APIReference/API_GetRecommendations.html\">GetRecommendations</a> and a <code>waitTimeSeconds</code> input for long-polling behavior and avoiding duplicate recommendations.</p>",
|
378 | 378 | "idempotent":true
|
379 | 379 | },
|
| 380 | + "PutFeedback":{ |
| 381 | + "name":"PutFeedback", |
| 382 | + "http":{ |
| 383 | + "method":"PUT", |
| 384 | + "requestUri":"/assistants/{assistantId}/feedback", |
| 385 | + "responseCode":200 |
| 386 | + }, |
| 387 | + "input":{"shape":"PutFeedbackRequest"}, |
| 388 | + "output":{"shape":"PutFeedbackResponse"}, |
| 389 | + "errors":[ |
| 390 | + {"shape":"ValidationException"}, |
| 391 | + {"shape":"AccessDeniedException"}, |
| 392 | + {"shape":"ResourceNotFoundException"} |
| 393 | + ], |
| 394 | + "documentation":"<p>Submits feedback to Wisdom. The feedback is used to improve future recommendations from <a href=\"https://docs.aws.amazon.com/wisdom/latest/APIReference/API_GetRecommendations.html\">GetRecommendations</a> or results from <a href=\"https://docs.aws.amazon.com/wisdom/latest/APIReference/API_QueryAssistant.html\">QueryAssistant</a>. Feedback can be resubmitted up to 6 hours after submission. </p>", |
| 395 | + "idempotent":true |
| 396 | + }, |
380 | 397 | "QueryAssistant":{
|
381 | 398 | "name":"QueryAssistant",
|
382 | 399 | "http":{
|
|
1349 | 1366 | },
|
1350 | 1367 | "documentation":"<p>The text of the document.</p>"
|
1351 | 1368 | },
|
| 1369 | + "FeedbackData":{ |
| 1370 | + "type":"structure", |
| 1371 | + "required":["relevance"], |
| 1372 | + "members":{ |
| 1373 | + "relevance":{ |
| 1374 | + "shape":"Relevance", |
| 1375 | + "documentation":"<p>The relevance of the target this feedback is for.</p>" |
| 1376 | + } |
| 1377 | + }, |
| 1378 | + "documentation":"<p>The feedback to submit to Wisdom.</p>" |
| 1379 | + }, |
1352 | 1380 | "Filter":{
|
1353 | 1381 | "type":"structure",
|
1354 | 1382 | "required":[
|
|
2026 | 2054 | },
|
2027 | 2055 | "exception":true
|
2028 | 2056 | },
|
| 2057 | + "PutFeedbackRequest":{ |
| 2058 | + "type":"structure", |
| 2059 | + "required":[ |
| 2060 | + "assistantId", |
| 2061 | + "feedback", |
| 2062 | + "targetId", |
| 2063 | + "targetType" |
| 2064 | + ], |
| 2065 | + "members":{ |
| 2066 | + "assistantId":{ |
| 2067 | + "shape":"UuidOrArn", |
| 2068 | + "documentation":"<p>The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>", |
| 2069 | + "location":"uri", |
| 2070 | + "locationName":"assistantId" |
| 2071 | + }, |
| 2072 | + "feedback":{ |
| 2073 | + "shape":"FeedbackData", |
| 2074 | + "documentation":"<p>The feedback.</p>" |
| 2075 | + }, |
| 2076 | + "targetId":{ |
| 2077 | + "shape":"String", |
| 2078 | + "documentation":"<p>The identifier of a recommendation. or The identifier of the result data.</p>" |
| 2079 | + }, |
| 2080 | + "targetType":{ |
| 2081 | + "shape":"TargetType", |
| 2082 | + "documentation":"<p>The type of the targetId for which The feedback. is targeted.</p>" |
| 2083 | + } |
| 2084 | + } |
| 2085 | + }, |
| 2086 | + "PutFeedbackResponse":{ |
| 2087 | + "type":"structure", |
| 2088 | + "required":[ |
| 2089 | + "assistantArn", |
| 2090 | + "assistantId", |
| 2091 | + "feedback", |
| 2092 | + "targetId", |
| 2093 | + "targetType" |
| 2094 | + ], |
| 2095 | + "members":{ |
| 2096 | + "assistantArn":{ |
| 2097 | + "shape":"UuidOrArn", |
| 2098 | + "documentation":"<p>The Amazon Resource Name (ARN) of the Wisdom assistant.</p>" |
| 2099 | + }, |
| 2100 | + "assistantId":{ |
| 2101 | + "shape":"Uuid", |
| 2102 | + "documentation":"<p>The identifier of the Wisdom assistant.</p>" |
| 2103 | + }, |
| 2104 | + "feedback":{ |
| 2105 | + "shape":"FeedbackData", |
| 2106 | + "documentation":"<p>The feedback.</p>" |
| 2107 | + }, |
| 2108 | + "targetId":{ |
| 2109 | + "shape":"Uuid", |
| 2110 | + "documentation":"<p>The identifier of a recommendation. or The identifier of the result data.</p>" |
| 2111 | + }, |
| 2112 | + "targetType":{ |
| 2113 | + "shape":"TargetType", |
| 2114 | + "documentation":"<p>The type of the targetId for which The feedback. is targeted.</p>" |
| 2115 | + } |
| 2116 | + } |
| 2117 | + }, |
2029 | 2118 | "QueryAssistantRequest":{
|
2030 | 2119 | "type":"structure",
|
2031 | 2120 | "required":[
|
|
2187 | 2276 | "type":"string",
|
2188 | 2277 | "enum":["KNOWLEDGE_CONTENT"]
|
2189 | 2278 | },
|
| 2279 | + "Relevance":{ |
| 2280 | + "type":"string", |
| 2281 | + "enum":[ |
| 2282 | + "HELPFUL", |
| 2283 | + "NOT_HELPFUL" |
| 2284 | + ] |
| 2285 | + }, |
2190 | 2286 | "RelevanceLevel":{
|
2191 | 2287 | "type":"string",
|
2192 | 2288 | "enum":[
|
|
2562 | 2658 | "key":{"shape":"TagKey"},
|
2563 | 2659 | "value":{"shape":"TagValue"}
|
2564 | 2660 | },
|
| 2661 | + "TargetType":{ |
| 2662 | + "type":"string", |
| 2663 | + "enum":[ |
| 2664 | + "RECOMMENDATION", |
| 2665 | + "RESULT" |
| 2666 | + ] |
| 2667 | + }, |
2565 | 2668 | "TooManyTagsException":{
|
2566 | 2669 | "type":"structure",
|
2567 | 2670 | "members":{
|
|
0 commit comments