Export GetError and SetError methods (#753)

Exported GetError and SetError. 

Fixes #64

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Jonathan Amsterdam 2026-01-15 11:46:13 -05:00 • committed by GitHub
commit 13488f7da1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -339,7 +339,7 @@ func toolForErr[In, Out any](t *Tool, h ToolHandlerFor[In, Out]) (*Tool, ToolHan
}
// For regular errors, embed them in the tool result as per MCP spec
var errRes CallToolResult
errRes.setError(err)
errRes.SetError(err)
return &errRes, nil
}