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:
Stephen Toub 2025-06-16 19:39:41 -04:00 • committed by GitHub
commit 2bcff315f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -83,11 +83,7 @@ public class DockerEverythingServerTests(ITestOutputHelper testOutputHelper) : L
{
Model = "test-model",
Role = Role.Assistant,
Content = new Content
{
Type = "text",
Text = "Test response"
}
Content = new TextContentBlock { Text = "Test response" },
};
},
},
@ -109,7 +105,7 @@ public class DockerEverythingServerTests(ITestOutputHelper testOutputHelper) : L
// assert
Assert.NotNull(result);
var textContent = Assert.Single(result.Content);
var textContent = Assert.Single(result.Content.OfType<TextContentBlock>());
Assert.Equal("text", textContent.Type);
Assert.False(string.IsNullOrEmpty(textContent.Text));
}