memory_lookup
Search the AIOS knowledge base for relevant memories including past decisions, design constraints, code parameters, and performance data when you need specific context during reasoning.
Instructions
在 AIOS 知识库中主动检索相关记忆(推理中断 / demand paging)。
当你推理时发现需要某类知识但不确定时,调用此工具:
- 上次关于某模块的决策
- 某功能的已知设计约束
- 某段代码的参数格式
- 之前总结的性能数据
Args:
query: 查询字符串(自然语言或关键词均可)
top_k: 返回结果数量(默认 5)
chunk_types: 可选,过滤 chunk 类型(如 ["design_constraint", "decision"])
project: 可选,指定项目 ID(默认自动推断)
Returns:
格式化的检索结果,包含 summary 和 content 摘要
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "memory_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| top_k | No | ||
| chunk_types | No | ||
| project | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |