Files
myWiki/concepts/pushdown-in-agent-interface.md

40 lines
1.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: "Agent 接口下推 (Pushdown in Agent Interface)"
created: 2026-07-04
updated: 2026-07-04
type: concept
tags: [agent, interface, optimization, token-efficiency]
sources: ["https://nokv.io/blog/agents-want-filesystems"]
---
# Agent 接口下推 (Pushdown in Agent Interface)
将过滤、排序、limit、字段投影等操作在一次工具调用中完成由系统端执行而非 Agent 端分步处理,从而减少对话轮数、上下文回灌和重新计费。
## 核心理念
SQL 世界中的「下推」predicate pushdown思想迁移到 Agent 工具接口设计中:
- `find` 一次调用完成:过滤 + 排序 + limit + 字段投影
- `aggregate` 一次调用完成:分组 + 聚合 + 过滤
- 避免 Agent 分多轮:先查 ID 列表 → 再逐个查详情 → 再筛选
## NoKV benchmark 中的体现
复合探索任务上namespace 的优势部分来自下推:
- SQL 版本Agent 需多轮 join → 查指标 → 查参数 → 查 artifact → 拼接
- namespace 版本:`find` 一次 push down 完成过滤/排序/limit/投影
每少一轮工具调用 = 少一次上下文回灌 + 少一次重新计费。
## 对 attention 的影响
下推减少 Agent 在「维持临时任务地图」上的认知消耗([[attention-drifting|注意力偏移]]),让模型有更多有效注意力留给判断、归纳和交叉验证。
## 参考
- [[agent-workspace-filesystem|Agent 工作空间文件系统]]
- [[agent-interface-design|Agent 接口设计]]
- [[token-efficiency|Token 效率]]
- [[progressive-disclosure|渐进式披露]]