构建你自己的编程智能助手
/
第五章:工具协议
第五章:工具协议
https://leanpub.com/build-your-own-coding-agent-zh-Hans-224caa26
工具究竟是如何运作的
https://leanpub.com/build-your-own-coding-agent-zh-Hans-224caa26
定义工具接口
https://leanpub.com/build-your-own-coding-agent-zh-Hans-224caa26
ReadFile 工具
https://leanpub.com/build-your-own-coding-agent-zh-Hans-224caa26
WriteFile 工具
https://leanpub.com/build-your-own-coding-agent-zh-Hans-224caa26
工具辅助函数
https://leanpub.com/build-your-own-coding-agent-zh-Hans-224caa26
更新 Thought 类
https://leanpub.com/build-your-own-coding-agent-zh-Hans-224caa26
更新 Claude 类
https://leanpub.com/build-your-own-coding-agent-zh-Hans-224caa26
带工具的 Agent 类
https://leanpub.com/build-your-own-coding-agent-zh-Hans-224caa26
主循环
https://leanpub.com/build-your-own-coding-agent-zh-Hans-224caa26
测试一下
https://leanpub.com/build-your-own-coding-agent-zh-Hans-224caa26
总结
https://leanpub.com/build-your-own-coding-agent-zh-Hans-224caa26
Previous
第二部分:双手
Up next
第六章:便签本(记忆)
In this chapter
第五章:工具协议
工具究竟是如何运作的
定义工具接口
ReadFile 工具
WriteFile 工具
工具辅助函数
更新 Thought 类
更新 Claude 类
带工具的 Agent 类
主循环
测试一下
总结