Week 1 · D3🔒 LockedAbout 4 hours
The Tool Protocol and the Read-Only Trio: Schema Design, Chunk Merging, and Result Truncation
Give the agent eyes to read code: write three read-only tools — read file, find file, search content — and nail down the tool schema, merging streamed tool-call chunks, and how to truncate an overly long result once and for all; the next eighteen days rely on it.
Give the agent eyes to read code: write three read-only tools — read file, find file, search content — and nail down the tool schema, merging streamed tool-call chunks, and how to truncate an overly long result once and for all; the next eighteen days rely on it.
Interview questions
How do you write a tool's description and JSON Schema so the model gets it right more often?工具的描述与 JSON Schema 该怎么写,才能让模型少犯错?
Common in ChinaCommon overseasBasic#tool-design#json-schema🔒 Unlock this chapter to see the answer keys.
How do you reassemble streamed tool-call arguments, and which assumptions are off-limits?流式返回的工具调用参数怎么归并?有哪些假设是不能做的?
Common in ChinaCommon overseasDeep dive#tool-calling#streaming🔒 Unlock this chapter to see the answer keys.
When a tool result blows past your context budget, what is your truncation strategy, and how do you avoid cutting the part that matters?工具结果远超上下文预算时,你的截断策略是什么?怎么保证不截掉关键信息?
Common in ChinaCommon overseasIntermediate#context-budget#tool-design🔒 Unlock this chapter to see the answer keys.
