第 1 周 · D3🔒 锁定约 4 小时
工具协议与只读三件套:schema 设计、分片归并与结果截断
给 Agent 装上读代码的眼睛:写出读文件、找文件、搜内容三个只读工具,把工具 schema、流式工具调用分片的归并、以及超长结果怎么截断这三件事一次定清楚,之后十八天都靠它。
给 Agent 装上读代码的眼睛:写出读文件、找文件、搜内容三个只读工具,把工具 schema、流式工具调用分片的归并、以及超长结果怎么截断这三件事一次定清楚,之后十八天都靠它。
面试题库
工具的描述与 JSON Schema 该怎么写,才能让模型少犯错?How do you write a tool's description and JSON Schema so the model gets it right more often?
国内高频海外高频基础#tool-design#json-schema🔒 解锁本章后查看答题要点。
流式返回的工具调用参数怎么归并?有哪些假设是不能做的?How do you reassemble streamed tool-call arguments, and which assumptions are off-limits?
国内高频海外高频深入#tool-calling#streaming🔒 解锁本章后查看答题要点。
工具结果远超上下文预算时,你的截断策略是什么?怎么保证不截掉关键信息?When a tool result blows past your context budget, what is your truncation strategy, and how do you avoid cutting the part that matters?
国内高频海外高频进阶#context-budget#tool-design🔒 解锁本章后查看答题要点。
