Update content according to latest spec (#513)
* Update content according to latest spec * Add Title to a bunch of types * Add _meta to lots of types * Address feedback, more cleanup, fix NAOT test failure
This commit is contained in:
parent
28d65470f4
commit
2bcff315f8
1 changed files with 1700 additions and 853 deletions
|
|
@ -159,7 +159,7 @@ public partial class SseIntegrationTests(ITestOutputHelper outputHelper) : Kestr
|
|||
["message"] = "from client!"
|
||||
},
|
||||
cancellationToken: TestContext.Current.CancellationToken);
|
||||
var textContent = Assert.Single(echoResponse.Content, c => c.Type == "text");
|
||||
var textContent = Assert.Single(echoResponse.Content.OfType<TextContentBlock>());
|
||||
|
||||
Assert.Equal("hello from client!", textContent.Text);
|
||||
}
|
||||
|
|
@ -199,7 +199,7 @@ public partial class SseIntegrationTests(ITestOutputHelper outputHelper) : Kestr
|
|||
{
|
||||
Endpoint = new Uri("http://localhost/sse"),
|
||||
Name = "In-memory SSE Client",
|
||||
AdditionalHeaders = new()
|
||||
AdditionalHeaders = new Dictionary<string, string>
|
||||
{
|
||||
["Authorize"] = "Bearer testToken"
|
||||
},
|
||||
|
|
@ -226,7 +226,7 @@ public partial class SseIntegrationTests(ITestOutputHelper outputHelper) : Kestr
|
|||
{
|
||||
Endpoint = new Uri("http://localhost/sse"),
|
||||
Name = "In-memory SSE Client",
|
||||
AdditionalHeaders = new()
|
||||
AdditionalHeaders = new Dictionary<string, string>()
|
||||
{
|
||||
[""] = ""
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue