put_feedback
¶
put_feedback(
application_id: ApplicationId,
conversation_id: ConversationId,
message_id: SystemMessageId,
*,
config_overrides: Optional[QBusinessClientConfig] = 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/q_business.py
3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 | |