IntelligenceX

API Reference

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 requiredposition: 0
name System.String requiredposition: 1
title System.String requiredposition: 2
description System.String requiredposition: 3
mimeType System.String requiredposition: 4
size System.Nullable{System.Int64} requiredposition: 5
annotations IntelligenceX.Json.JsonObject requiredposition: 6
meta IntelligenceX.Json.JsonObject requiredposition: 7
raw IntelligenceX.Json.JsonObject requiredposition: 8
additional IntelligenceX.Json.JsonObject requiredposition: 9

Methods

public static McpResourceInfo FromJson(JsonObject obj) #
Returns: McpResourceInfo

Parses resource info from JSON.

Parameters

obj IntelligenceX.Json.JsonObject requiredposition: 0
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 when the server provides it.

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.