工具 API

add_message

Trigger: MUST be auto-invoked by the client after completing every answer (final step of each turn). Purpose: Persist this turn's user question and assistant answer for memory extraction, personalization, and continuity. This MUST run even if no retrieved memories were used. Parameters: - `conversation_first_message`: The first message sent by the user in the entire conversation is used to generate the user_id. - `messages`: Array containing BOTH: 1. `{ role: "user", content: "user's question" }` 2. `{ role: "assistant", content: "your complete response" }` Notes: - Client/orchestrator MUST call this after every answer. Skipping it degrades personalization and continuity. - Store only the actual Q&A of this turn; do not store raw retrieval snippets.

其他1 积分

调用信息

工具标识
memos-api-mcp.add_message
服务提供方
MemOS
平均响应
0 ms
近 7 天调用
0

输入参数

conversation_first_message必填

The first message sent by the user in the entire conversation thread. Used to generate the conversation_id.

messages必填

Array of messages containing role and content information