put_feedback
async
¶
put_feedback(
application_id: ApplicationId,
conversation_id: ConversationId,
message_id: SystemMessageId,
*,
config_overrides: Optional[AsyncQBusinessClientConfig] = None,
user_id: Optional[UserId] = None,
message_copied_at: Optional[Timestamp] = None,
message_usefulness: Optional[MessageUsefulnessFeedback] = None,
) -> None
Enables your end user to provide feedback on their Amazon Q Business generated chat responses.
Parameters:
-
application_id(ApplicationId) –The identifier of the application associated with the feedback.
-
user_id(Optional[UserId], default:None) –The identifier of the user giving the feedback.
-
conversation_id(ConversationId) –The identifier of the conversation the feedback is attached to.
-
message_id(SystemMessageId) –The identifier of the chat message that the feedback was given for.
-
message_copied_at(Optional[Timestamp], default:None) –The timestamp for when the feedback was recorded.
-
message_usefulness(Optional[MessageUsefulnessFeedback], default:None) –The feedback usefulness value given by the user to the chat message.
Raises:
-
AccessDeniedException–You don't have access to perform this action. Make sure you have the required permission policies and user accounts and try again.
-
InternalServerException–An issue occurred with the internal server used for your Amazon Q Business service. Wait some minutes and try again, or contact Support for help.
-
ResourceNotFoundException–The application or plugin resource you want to use doesn’t exist. Make sure you have provided the correct resource and try again.
-
ThrottlingException–The request was denied due to throttling. Reduce the number of requests and try again.
-
ValidationException–The input doesn't meet the constraints set by the Amazon Q Business service. Provide the correct input and try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_qbusiness/_services/async_q_business.py
3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 | |