logo
การพัฒนา
ค้นหา
Agent Feedback Evaluation

Agent Feedback Evaluation

Supports development and operations personnel in inspecting and evaluating the quality of content generated by the Agent, helping assess response quality and guide further optimization.

Request Method

POST

Endpoint

https://api.gptbots.ai/v1/message/quality

Authentication

For details, refer to the authentication method description in the API Overview.

Request

Request Example

curl -X POST https://api.gptbots.ai/v1/message/quality \ -H 'Authorization: Bearer your_apikey' \ -H 'Content-Type: application/json' \ -d '{ "answer_id": "123456789", "quality": "FULLY_RESOLVED" }'
                      
                      curl -X POST https://api.gptbots.ai/v1/message/quality \
  -H 'Authorization: Bearer your_apikey' \
  -H 'Content-Type: application/json' \
  -d '{
        "answer_id": "123456789",
        "quality": "FULLY_RESOLVED"
      }'

                    
บล็อกโค้ดนี้ในหน้าต่างลอย

Request Headers

Field Type Description
Authorization Bearer ${token} Please use Authorization: Bearer ${token} for authentication. You can obtain the token from the API key page.
Content-Type application/json Data type, value should be application/json.

Request Body

Field Type Required Description
answer_id string Yes The reply ID of the Agent.
quality string Yes Quality assurance evaluation of the Agent's response. Possible values:
- NONE: No feedback
- UNRESOLVED: Unresolved
- PARTIALLY_RESOLVED: Partially resolved
- FULLY_RESOLVED: Fully resolved

Response

Response Example

{ "affectCount": 2 }
                      
                      {
    "affectCount": 2
}

                    
บล็อกโค้ดนี้ในหน้าต่างลอย

Successful Response

Field Type Description
affectCount long The number of successful evaluations in this instance. A value of 2 indicates success.

Error Response

Field Type Description
code int Error code
message string Error details

Error Codes

Code Message
40000 Parameter error
40127 Developer authentication failed
20059 Agent has been deleted