Make CallToolResult.IsError optional (#573)
Match the spec, and avoid sending the property in the success case.
This commit is contained in:
parent
fc293429f9
commit
ab51400ba0
1 changed files with 10 additions and 10 deletions
|
|
@ -171,7 +171,7 @@ public abstract class MapMcpTests(ITestOutputHelper testOutputHelper) : KestrelI
|
|||
}, cancellationToken: TestContext.Current.CancellationToken);
|
||||
|
||||
Assert.NotNull(result);
|
||||
Assert.False(result.IsError);
|
||||
Assert.Null(result.IsError);
|
||||
var textContent = Assert.Single(result.Content);
|
||||
Assert.Equal("text", textContent.Type);
|
||||
Assert.Equal("Sampling completed successfully. Client responded: Sampling response from client", Assert.IsType<TextContentBlock>(textContent).Text);
|
||||
|
|
|
|||
Loading…
Reference in a new issue