IntelligenceX

API Reference

Class

McpResourceInfo

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

Describes an MCP resource.

Inheritance

  • Object
  • McpResourceInfo

Usage

Explore 3 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 2

Accepted by parameters 1

Constructors

public McpResourceInfo(String? uri, String? name, String? title, String? description, String? mimeType, 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.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? 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 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.