Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ResourceLinkContent.cs
1using System;
3using System.Threading.Tasks;
5
7{
12 {
17 : base()
18 {
19 }
20
25 Dictionary<string, object>? MetaData)
27 {
28 }
29
33 public override Type[] Encodes => new Type[]
34 {
35 typeof(Uri)
36 };
37
41 public override bool IsStructuredContent => false;
42
49 public override Task<Dictionary<string, object>> Encode(object Content)
50 {
51 // TODO: Resource-object
52 // TODO: EmbeddedResource
53
54 Uri Uri = (Uri)Content;
55 Dictionary<string, object> Result = new Dictionary<string, object>()
56 {
57 { "type", "resource_link" },
58 { "uri", Uri.ToString() }
59 };
60
61 this.Annotate(Result);
62
63 return Task.FromResult(Result);
64 }
65 }
66}
DateTime? LastModified
The moment the resource was last modified, as an ISO 8601 formatted string.
Definition: Annotations.cs:61
double? Priority
Describes how important this data is for operating the server.
Definition: Annotations.cs:53
McpRole?[] Audience
Describes who the intended audience of this object or data is.
Definition: Annotations.cs:44
Abstract base class for an MCP Content Block.
Definition: ContentBlock.cs:11
override void Annotate(Dictionary< string, object > Object)
Annotates an object.
Definition: ContentBlock.cs:57
McpRole
Identifies a Role in a Model Context Protocol (MCP) context.
Definition: McpRole.cs:7