toolErrorsAsResult static method
Whether tool execution errors are returned as an isError
CallToolResult (so the model can self-correct) rather than a
JSON-RPC protocol error. Clarified in 2025-11-25 (SEP-1303) and carried
forward. Older negotiated versions keep the prior protocol-error behavior.
Implementation
static bool toolErrorsAsResult(String version) =>
_isAtLeast(version, v2025_11_25);