Merge pull request #31 from modelcontextprotocol/justin/is-error-optional

`CallToolResult.isError` should be optional
This commit is contained in:
Justin Spahr-Summers 2024-11-07 13:39:15 +00:00 • committed by GitHub
commit 975f79b119
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -641,7 +641,7 @@ class CallToolResult(Result):
"""The server's response to a tool call."""
content: list[TextContent | ImageContent | EmbeddedResource]
isError: bool
isError: bool = False
class ToolListChangedNotification(Notification):