Skip to main content

FeedbackDialogue

Provides feedback on the quality of the content that the model generates.

Try it now

You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After the call succeeds, OpenAPI Explorer can automatically generate SDK code examples. Debug it

RAM authorization

The following table describes the authorization information for this API. You can use the Action element in RAM policy statements to grant RAM users or RAM roles the permission to call this API. For more information, see the following descriptions:
  • Action: the specific permission point.
  • Access level: the access level of each action. Valid values: Write, Read, and List.
  • Resource type: the resource types that support authorization for the action. For more information, see the following descriptions:
    • For required resource types, an asterisk (*) is added before them.
    • For operations that do not support resource-level authorization, All Resources is used.
  • Condition key: the condition keys defined by the cloud service itself.
  • Dependent action: other permissions required to successfully perform the operation. The caller must have the permissions of all dependent actions before the operation can succeed.
ActionAccess levelResource typeCondition keyDependent action
aimiaobi:FeedbackDialoguecreate
*All Resources
*
    None
None

Request parameters

NameTypeRequiredDescriptionExample value
AgentKeystringYes

The unique ID of the workspace: AgentKey

fcb14f25c9ee41ccad33a049de8f941b_p_outbound_public
TaskIdstringNo

The ID of the entire page.

3f7045e099474ba28ceca1b4eb6d6e21
SessionIdstringYes

The ID of a single-turn conversation.

75bf82fa-b71b-45d7-ae40-0b00e496cd9e
RatingstringNo

thumbsDown: Dislike, thumbsUp: Like

thumbsDown
RatingTagsarrayNo

Tags

RatingTagstringNo

A feedback tag. It can contain any characters and must be less than 20 characters in length.

The generated content does not match the requirements (off-topic)
ModifiedResponsestringNo

The modified generated result.

test
CustomerResponsestringNo

The feedback message.

test
GoodTextstringNo

The generated content that is considered good.

test

Response parameters

NameTypeDescriptionExample value
object

BaseResult

Codestring

The status code.

successful
HttpStatusCodeinteger

The HTTP status code.

200
Messagestring

The error message.

successful
RequestIdstring

The unique ID of the request.

3f7045e099474ba28ceca1b4eb6d6e21
Successboolean

Indicates whether the request was successful: true indicates success, and false indicates failure.

true

Examples

Success response example JSON format
{
  "Code": "successful",
  "HttpStatusCode": 200,
  "Message": "successful",
  "RequestId": "3f7045e099474ba28ceca1b4eb6d6e21",
  "Success": true
}

Error codes

Go to the Error Center to view more error codes.