Tools Call 推荐阅读
- OpenAI Function Calling:严格 schema、工具选择和消息结构。
- Anthropic Tool Use:client tool、server tool 及
tool_result契约。 - Gemini Function Calling:多工具组合与函数调用配置。
- Model Context Protocol:标准化接入 tools、resources 和 prompts。
- Toolformer:研究模型学习何时调用外部工具的思路。
- Python
subprocess:进程创建、参数数组、stdout/stderr、timeout 与返回码。 - Node.js
child_process:流式进程、管道背压、取消以及exit/close的区别。 - Node.js File system:文件读写、流、文件句柄和平台差异。
- Rust
std::process::Command:类型化构造子进程及其标准流。 - SWE-agent ACI Commands:面向语言模型设计导航、编辑、搜索和执行命令的实例。
建议实践:定义 calculator、search、read_file、write_file、start_process 和 read_process 六个严格工具,加入非法参数、超时、空结果、重复调用、输出截断、并发写冲突和证据抽取测试。