feat: add content type
This commit is contained in:
@@ -24,4 +24,9 @@ public static class ContentType
|
||||
/// Represents the tool result content type.
|
||||
/// </summary>
|
||||
public const string ToolResult = "tool_result";
|
||||
|
||||
/// <summary>
|
||||
/// Represents the document content type.
|
||||
/// </summary>
|
||||
public const string Document = "document";
|
||||
}
|
||||
@@ -5,40 +5,30 @@ public class ContentTypeTests
|
||||
[Fact]
|
||||
public void Text_WhenCalled_ItShouldReturnText()
|
||||
{
|
||||
var expected = "text";
|
||||
|
||||
var actual = ContentType.Text;
|
||||
|
||||
actual.Should().Be(expected);
|
||||
ContentType.Text.Should().Be("text");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Image_WhenCalled_ItShouldReturnImage()
|
||||
{
|
||||
var expected = "image";
|
||||
|
||||
var actual = ContentType.Image;
|
||||
|
||||
actual.Should().Be(expected);
|
||||
ContentType.Image.Should().Be("image");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ToolUse_WhenCalled_ItShouldReturnToolUse()
|
||||
{
|
||||
var expected = "tool_use";
|
||||
|
||||
var actual = ContentType.ToolUse;
|
||||
|
||||
actual.Should().Be(expected);
|
||||
ContentType.ToolUse.Should().Be("tool_use");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ToolResult_WhenCalled_ItShouldReturnToolResult()
|
||||
{
|
||||
var expected = "tool_result";
|
||||
ContentType.ToolResult.Should().Be("tool_result");
|
||||
}
|
||||
|
||||
var actual = ContentType.ToolResult;
|
||||
|
||||
actual.Should().Be(expected);
|
||||
[Fact]
|
||||
public void Document_WhenCalled_ItShouldReturnDocument()
|
||||
{
|
||||
ContentType.Document.Should().Be("document");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user