Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
namespace ModelContextProtocol.NET.Core.Models.Protocol.Shared.Content;
using System.Text.Json.Serialization;

namespace ModelContextProtocol.NET.Core.Models.Protocol.Shared.Content;

public record EmbeddedResource : Annotated
{
[JsonIgnore]
public string Type => "resource";
public required ResourceContents Resource { get; init; }
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
namespace ModelContextProtocol.NET.Core.Models.Protocol.Shared.Content;
using System.Text.Json.Serialization;

namespace ModelContextProtocol.NET.Core.Models.Protocol.Shared.Content;

public record ImageContent : Annotated
{
[JsonIgnore]
public string Type => "image";
public required string Data { get; init; }
public required string MimeType { get; init; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
using System.Text.Json.Serialization;

namespace ModelContextProtocol.NET.Core.Models.Protocol.Shared.Content;

public record TextContent : Annotated
{
[JsonIgnore]
public string Type => "text";
public required string Text { get; init; }

Expand Down