Definition
Assembly: Microsoft.OData.Mcp.Core.dll Namespace: Microsoft.OData.Mcp.Core.Catalog Inheritance: System.ObjectSyntax
Summary
The result of invoking a catalog tool.Constructors
.ctor
Syntax
.ctor Inherited
Inherited from
objectSyntax
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
objectSyntax
Parameters
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?
ToStructuredContent
Returns structured JSON forCallToolResult.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.