Skip to main content
POST
/
product
/
feedback
Feedback memories
curl --request POST \
  --url https://api.example.com/product/feedback \
  --header 'Content-Type: application/json' \
  --data '
{
  "user_id": "<string>",
  "history": [
    {
      "content": "<string>",
      "role": "<string>",
      "name": "<string>",
      "chat_time": "<string>",
      "message_id": "<string>"
    }
  ],
  "feedback_content": "<string>",
  "session_id": "default_session",
  "task_id": "<string>",
  "retrieved_memory_ids": [
    "<string>"
  ],
  "feedback_time": "<string>",
  "writable_cube_ids": [
    "<string>"
  ],
  "async_mode": "async",
  "corrected_answer": false,
  "info": {},
  "mem_cube_id": "<string>"
}
'
{
  "message": "<string>",
  "code": 200,
  "data": [
    "<unknown>"
  ]
}

Body

application/json

Request model for processing feedback info.

user_id
string
required

User ID

history
(ChatCompletionSystemMessageParam · object | ChatCompletionUserMessageParam · object | ChatCompletionAssistantMessageParam · object | ChatCompletionToolMessageParam · object)[] | null
required

Chat history

feedback_content
string | null
required

Feedback content to process

session_id
string | null
default:default_session

Session ID for soft-filtering memories

task_id
string | null

Task ID for monitering async tasks

retrieved_memory_ids
string[] | null

Retrieved memory ids at last turn

feedback_time
string | null

Feedback time

writable_cube_ids
string[] | null

List of cube IDs user can write for multi-cube add

async_mode
enum<string>
default:async

feedback mode: sync or async

Available options:
sync,
async
corrected_answer
boolean
default:false

Whether need return corrected answer

info
Info · object

Additional metadata for the add request. All keys can be used as filters in search. Example: {'agent_id': 'xxxxxx', 'app_id': 'xxxx', 'source_type': 'web', 'source_url': 'https://www.baidu.com', 'source_content': 'West Lake is the most famous scenic spot in Hangzhou'}.

mem_cube_id
string | null

(Deprecated) Single cube ID to search in. Prefer readable_cube_ids for multi-cube search.

Response

Successful Response

Response model for memory operations.

message
string
required

Response message

code
integer
default:200

Response status code

data
any[] | null

Response data