v1

latestOpenAPI 3.0.02026-08-042945133.6 KB
threads

Create feedback review

Creates feedback review for the thread.

post/api/v1/assistants/{assistantId}/threads/{threadId}/interactions/{interactionId}/reviews

Path parameters

assistantIdstring uuid required
Example:507f191e810c19729de860ea

The ID of the assistant in which to create the feedback review.

interactionIdstring uuid required
Example:507f191e810c19729de860ea

The ID of the interaction in which to create the feedback review.

threadIdstring uuid required
Example:507f191e810c19729de860ea

The ID of the thread in which to create the feedback review.

Request body

reviewStatusstring required

Review status.

Example request

{
  "reviewStatus": "reviewed | unreviewed"
}

Response

Successfully created a new thread feedback.

idstring uuid required
ownerIdstring required

Unique identifier of user which created the interaction.

requeststring required

Interaction request content.

rejectedboolean

Indicator the system marked request as suspicious.

responsestring required

Interaction response content.

threadIdstring uuid required

ID of the thread to which the interaction belongs.

createdAtstring date-time required

Datetime when the interaction was created.

updatedAtstring date-time required

Datetime when the interaction was updated.

Example response

{
  "id": "10d347c4-f28a-4faf-93f0-48e781aaf303",
  "ownerId": "65e310c43fb1cf46654e0878",
  "request": "Where was Genghis Khan buried?",
  "sources": [
    {
      "chunks": [
        {
          "chunkId": "10d347c4-f28a-4faf-93f0-48e781aaf303"
        }
      ],
      "source": "Reference.md",
      "documentId": "10d347c4-f28a-4faf-93f0-48e781aaf303",
      "datasourceId": "10d347c4-f28a-4faf-93f0-48e781aaf303",
      "lastIndexedAt": "2021-10-02T14:20:50.52Z",
      "knowledgebaseId": "10d347c4-f28a-4faf-93f0-48e781aaf303"
    }
  ],
  "feedback": {
    "id": "507f191e810c19729de860ea",
    "vote": 1,
    "reason": "inaccurate | irrelevant | repetitive | unhelpful | other",
    "reviewedAt": "2021-10-02T14:20:50.52Z",
    "reviewerId": "507f191e810c19729de860ea",
    "reviewStatus": "reviewed | unreviewed"
  },
  "rejected": true,
  "response": "Somewhere in an unmarked grave",
  "threadId": "125c24c4-668c-4c97-bef8-30d910169913",
  "createdAt": "2021-10-02T14:20:50.52Z",
  "updatedAt": "2021-10-02T14:20:55.52Z"
}