Cleanable is an optional interface that tools can implement to release resources. Tools implementing this interface will have their Cleanup method called during registry cleanup (e.g., at the end of an agent session).
| 162 | // Tools implementing this interface will have their Cleanup method called during |
| 163 | // registry cleanup (e.g., at the end of an agent session). |
| 164 | type Cleanable interface { |
| 165 | Cleanup(ctx context.Context) |
| 166 | } |
| 167 | |
| 168 | // ToolResult represents the result of a tool execution |
| 169 | type ToolResult struct { |
no outgoing calls
no test coverage detected