()
| 14 | func init() { Default.Register(&ReadFileTool{}) } |
| 15 | |
| 16 | func (ReadFileTool) Definition() api.ToolDef { |
| 17 | return api.ToolDef{ |
| 18 | Name: "read_file", |
| 19 | Description: "Read the contents of a file at the given path.", |
| 20 | InputSchema: map[string]any{ |
| 21 | "path": map[string]any{ |
| 22 | "type": "string", |
| 23 | "description": "Path to the file to read.", |
| 24 | }, |
| 25 | }, |
| 26 | Required: []string{"path"}, |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | func (ReadFileTool) Execute(_ context.Context, rawInput string) (string, bool) { |
| 31 | var in struct { |
nothing calls this directly
no outgoing calls
no test coverage detected