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.
| Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| aimiaobi:FeedbackDialogue | create | *All Resources * |
| None |
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| AgentKey | string | Yes | The unique ID of the workspace: AgentKey | fcb14f25c9ee41ccad33a049de8f941b_p_outbound_public |
| TaskId | string | No | The ID of the entire page. | 3f7045e099474ba28ceca1b4eb6d6e21 |
| SessionId | string | Yes | The ID of a single-turn conversation. | 75bf82fa-b71b-45d7-ae40-0b00e496cd9e |
| Rating | string | No | thumbsDown: Dislike, thumbsUp: Like | thumbsDown |
| RatingTags | array | No | Tags | |
| RatingTag | string | No | 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) |
| ModifiedResponse | string | No | The modified generated result. | test |
| CustomerResponse | string | No | The feedback message. | test |
| GoodText | string | No | The generated content that is considered good. | test |
Response parameters
| Name | Type | Description | Example value |
|---|---|---|---|
| object | BaseResult | ||
| Code | string | The status code. | successful |
| HttpStatusCode | integer | The HTTP status code. | 200 |
| Message | string | The error message. | successful |
| RequestId | string | The unique ID of the request. | 3f7045e099474ba28ceca1b4eb6d6e21 |
| Success | boolean | Indicates whether the request was successful: true indicates success, and false indicates failure. | true |
Examples
Success response example
JSON format