NewReadTool 创建文件读取工具
(config map[string]any)
| 16 | |
| 17 | // NewReadTool 创建文件读取工具 |
| 18 | func NewReadTool(config map[string]any) (tools.Tool, error) { |
| 19 | return &ReadTool{}, nil |
| 20 | } |
| 21 | |
| 22 | func (t *ReadTool) Name() string { |
| 23 | return "Read" // 使用标准的工具名称 |
no outgoing calls