Tool is the interface that all tools must implement.
| 8 | |
| 9 | // Tool is the interface that all tools must implement. |
| 10 | type Tool interface { |
| 11 | Name() string |
| 12 | Description() string |
| 13 | Parameters() map[string]any |
| 14 | Execute(ctx context.Context, args map[string]any) *ToolResult |
| 15 | } |
| 16 | |
| 17 | const ( |
| 18 | ToolPromptLayerCapability = "capability" |
no outgoing calls
no test coverage detected