KernelJsonSchema.Parse Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.