立即开始
Mem0 Tools

Mem0 Add New Memory Records

通过 Aident Loadout 使用 Mem0 Tools 的 Mem0 Add New Memory Records。执行前查看输入、输出、设置、价格和风险。

写入操作风险等级 2/5API 密钥连接

服务提供商说明

Adds memory records from messages, optionally inferring structured content. Requires an agent, user, app, or run ID; processing defaults to asynchronous and can be requested synchronously.

价格与限制

价格
免费操作
统一支付
暂不支持

输入

  • inferboolean
    If true, infers structured memories from messages; otherwise, stores messages directly.
  • app_idstring
    Unique identifier for the application associated with this memory. At least one of agent_id, user_id, app_id, or run_id must be provided.
  • org_idstring
    Optional unique identifier for the organization associated with this memory.
  • run_idstring
    Unique identifier for the run associated with this memory. At least one of agent_id, user_id, app_id, or run_id must be provided.
  • user_idstring
    Unique identifier for the user associated with this memory. At least one of agent_id, user_id, app_id, or run_id must be provided.
  • agent_idstring
    Unique identifier for the agent associated with this memory. At least one of agent_id, user_id, app_id, or run_id must be provided.
  • excludesstring
    Comma-separated keywords to exclude specific topics, aiding in filtering out irrelevant information.
  • includesstring
    Comma-separated keywords to include specific topics, aiding filtering and prioritization.
  • messagesarray
    必填
    List of message objects forming the memory's content. Each message should have 'role' (e.g., 'user' or 'assistant') and 'content' (text content). Alternative: You can also provide 'records' with 'text' field which will be automatically converted to messages format.
  • org_namestring
    The name of the organization for this memory. Deprecated: use `org_id` instead.
  • async_modeboolean
    Whether to process memories asynchronously (default: true). When true, returns event_id/status/message for tracking background processing. When false, processes synchronously and returns id/event/memory fields. Most clients use the default async mode.
  • project_idstring
    Optional unique identifier for the project associated with this memory.

可观察输出

  • data
    必填
    Data from the action execution
  • errorstring
    Error if any occurred during the execution of the action
  • successfulboolean
    必填
    Whether or not the action execution was successful or not

使用此操作的技能

相关使用场景

尚未关联经过验证的相关使用场景。

官方来源

服务提供商来源