agentdb-query

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

AgentDB Query

AgentDB 查询

Query and manage AgentDB's 19 memory controllers.
查询并管理AgentDB的19个内存控制器。

When to use

使用场景

When you need to store, retrieve, or search knowledge across agent sessions. AgentDB provides hierarchical storage, causal knowledge graphs, semantic routing, and context synthesis.
当你需要在Agent会话之间存储、检索或搜索知识时。AgentDB提供分层存储、因果知识图谱、语义路由和上下文合成功能。

Steps

操作步骤

  1. Check health — call
    mcp__claude-flow__agentdb_health
    to verify AgentDB is running
  2. Start session — call
    mcp__claude-flow__agentdb_session-start
    if not already active
  3. Store knowledge — call
    mcp__claude-flow__agentdb_hierarchical-store
    for structured data
  4. Recall knowledge — call
    mcp__claude-flow__agentdb_hierarchical-recall
    with a query
  5. Search patterns — call
    mcp__claude-flow__agentdb_pattern-search
    for learned patterns
  6. Synthesize context — call
    mcp__claude-flow__agentdb_context-synthesize
    to combine multiple memories
  7. Build causal graph — call
    mcp__claude-flow__agentdb_causal-edge
    to link related knowledge
  1. 检查健康状态 — 调用
    mcp__claude-flow__agentdb_health
    验证AgentDB是否正常运行
  2. 启动会话 — 若会话未激活,调用
    mcp__claude-flow__agentdb_session-start
  3. 存储知识 — 针对结构化数据,调用
    mcp__claude-flow__agentdb_hierarchical-store
  4. 召回知识 — 传入查询语句调用
    mcp__claude-flow__agentdb_hierarchical-recall
  5. 搜索模式 — 调用
    mcp__claude-flow__agentdb_pattern-search
    查找已学习的模式
  6. 合成上下文 — 调用
    mcp__claude-flow__agentdb_context-synthesize
    整合多个记忆
  7. 构建因果图 — 调用
    mcp__claude-flow__agentdb_causal-edge
    关联相关知识

19 Controllers

19个控制器

Call
mcp__claude-flow__agentdb_controllers
to list all available controllers:
  • Hierarchical store/recall
  • Pattern store/search
  • Semantic routing
  • Context synthesis
  • Causal edges
  • Feedback loops
  • Batch operations
  • Consolidation
调用
mcp__claude-flow__agentdb_controllers
列出所有可用控制器:
  • 分层存储/召回
  • 模式存储/搜索
  • 语义路由
  • 上下文合成
  • 因果边
  • 反馈循环
  • 批量操作
  • 合并

CLI alternative

CLI替代方案

bash
npx @claude-flow/cli@latest memory search --query "your query" --namespace patterns
npx @claude-flow/cli@latest memory store --key "key" --value "value" --namespace patterns
npx @claude-flow/cli@latest memory list --namespace patterns
bash
npx @claude-flow/cli@latest memory search --query "your query" --namespace patterns
npx @claude-flow/cli@latest memory store --key "key" --value "value" --namespace patterns
npx @claude-flow/cli@latest memory list --namespace patterns