Merge pull request #31 from modelcontextprotocol/justin/is-error-optional
`CallToolResult.isError` should be optional
This commit is contained in:
commit
975f79b119
1 changed files with 1 additions and 1 deletions
|
|
@ -641,7 +641,7 @@ class CallToolResult(Result):
|
||||||
"""The server's response to a tool call."""
|
"""The server's response to a tool call."""
|
||||||
|
|
||||||
content: list[TextContent | ImageContent | EmbeddedResource]
|
content: list[TextContent | ImageContent | EmbeddedResource]
|
||||||
isError: bool
|
isError: bool = False
|
||||||
|
|
||||||
|
|
||||||
class ToolListChangedNotification(Notification):
|
class ToolListChangedNotification(Notification):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue