Class
McpResourceInfo
Describes an MCP resource.
Inheritance
- Object
- McpResourceInfo
Constructors
public McpResourceInfo(String uri, String name, String title, String description, String mimeType, Nullable<Int64> size, JsonObject annotations, JsonObject meta, JsonObject raw, JsonObject additional) #Initializes a new MCP resource info.
Parameters
- uri System.String
- name System.String
- title System.String
- description System.String
- mimeType System.String
- size System.Nullable{System.Int64}
- annotations IntelligenceX.Json.JsonObject
- meta IntelligenceX.Json.JsonObject
- raw IntelligenceX.Json.JsonObject
- additional IntelligenceX.Json.JsonObject
Methods
public static McpResourceInfo FromJson(JsonObject obj) #Returns:
McpResourceInfoParses resource info from JSON.
Parameters
- obj IntelligenceX.Json.JsonObject
- Source JSON object.
Returns
The parsed resource info.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public String Uri { get; } #Gets the resource URI.
public String Name { get; } #Gets the resource name.
public String Title { get; } #Gets the resource title.
public String Description { get; } #Gets the resource description.
public String MimeType { get; } #Gets the mime type.
public Nullable<Int64> Size { get; } #Gets the resource size in bytes.
public JsonObject Annotations { get; } #Gets resource annotations.
public JsonObject Meta { get; } #Gets resource metadata.
public JsonObject Raw { get; } #Gets the raw JSON object.
public JsonObject Additional { get; } #Gets unrecognized fields from the payload.