Erase user memory
Erase what this agent remembers about an end user: it stops drawing on their earlier conversations, and what it learned from them is deleted. With opt_out, it also stops remembering them in future ones. Other agents’ memories of the user are kept. The conversations themselves are not deleted; use the Delete Conversation endpoint for that.
路径参数
agent_id
The id of an agent.
请求头
xi-api-key
请求
This endpoint expects an object.
user_id
ID of the end user whose memory the agent is to erase. Find it from the user_id your conversation initiation data sent with Find Agents User By Identity.
opt_out
True turns the agent's memory off for this user in future conversations, false turns it back on. Left out, the user's current setting is kept.
响应
成功响应
erased_at_unix_secs
The agent remembers nothing about the user from before this time.
opted_out
Whether the agent's memory is off for this user in future conversations.
错误
422
User Memory Erase Request Unprocessable Entity Error