IntelligenceX
Class

McpResourceInfo

Namespace IntelligenceX.OpenAI.AppServer.Models
Assembly IntelligenceX
Modifiers sealed

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: McpResourceInfo

Parses resource info from JSON.

Parameters

obj IntelligenceX.Json.JsonObject
Source JSON object.

Returns

The parsed resource info.

Properties

public String Description { get; } #

Gets the resource description.

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.