Export GetError and SetError methods (#753)
Exported GetError and SetError. Fixes #64 Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
parent
b4f957ff3c
commit
13488f7da1
1 changed files with 8 additions and 8 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue