Skip to main content

Definition

Assembly: Microsoft.OData.Mcp.Core.dll Namespace: Microsoft.OData.Mcp.Core.Catalog Inheritance: System.Object

Syntax

Summary

The result of invoking a catalog tool.

Constructors

.ctor

Syntax

.ctor Inherited

Inherited from object

Syntax

Properties

IsError

Gets or sets a value indicating whether the tool failed.

Syntax

Property Value

Type: bool

StructuredContent

Gets or sets structured JSON. Catalog tools set this as text. OData success keeps ODataToolInvocationResult.StructuredStream and materializes this string on first read.

Syntax

Property Value

Type: string?

StructuredStream

Gets or sets the OData JSON stream as written, when the executor kept it.

Syntax

Property Value

Type: System.IO.Stream?

Text

Gets or sets the text content returned to the client.

Syntax

Property Value

Type: string

Methods

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?

ToStructuredContent

Returns structured JSON for CallToolResult.StructuredContent. Prefers the OData stream (UTF-8 parse, no string copy). Falls back to ODataToolInvocationResult.StructuredContent.

Syntax

Returns

Type: System.Nullable<System.Text.Json.JsonElement?>? The JSON element, or null when there is no structured payload.