Partager via


KernelJsonSchema.Parse Method

Definition

Overloads

Parse(ReadOnlySpan<Byte>)

Parses a JSON Schema for a parameter type.

Parse(ReadOnlySpan<Char>)

Parses a JSON Schema for a parameter type.

Parse(String)

Parses a JSON Schema for a parameter type.

Parse(ReadOnlySpan<Byte>)

Parses a JSON Schema for a parameter type.

public static Microsoft.SemanticKernel.KernelJsonSchema Parse (ReadOnlySpan<byte> utf8JsonSchema);
static member Parse : ReadOnlySpan<byte> -> Microsoft.SemanticKernel.KernelJsonSchema
Public Shared Function Parse (utf8JsonSchema As ReadOnlySpan(Of Byte)) As KernelJsonSchema

Parameters

utf8JsonSchema
ReadOnlySpan<Byte>

The JSON Schema as a sequence of UTF8 bytes.

Returns

A parsed KernelJsonSchema.

Exceptions

The JSON is invalid.

Applies to

Parse(ReadOnlySpan<Char>)

Parses a JSON Schema for a parameter type.

public static Microsoft.SemanticKernel.KernelJsonSchema Parse (ReadOnlySpan<char> jsonSchema);
static member Parse : ReadOnlySpan<char> -> Microsoft.SemanticKernel.KernelJsonSchema
Public Shared Function Parse (jsonSchema As ReadOnlySpan(Of Char)) As KernelJsonSchema

Parameters

jsonSchema
ReadOnlySpan<Char>

The JSON Schema as a sequence of UTF16 chars.

Returns

A parsed KernelJsonSchema.

Exceptions

The JSON is invalid.

Applies to

Parse(String)

Parses a JSON Schema for a parameter type.

public static Microsoft.SemanticKernel.KernelJsonSchema Parse (string jsonSchema);
static member Parse : string -> Microsoft.SemanticKernel.KernelJsonSchema
Public Shared Function Parse (jsonSchema As String) As KernelJsonSchema

Parameters

jsonSchema
String

The JSON Schema as a string.

Returns

A parsed KernelJsonSchema.

Exceptions

jsonSchema is null.

The JSON is invalid.

Applies to