Share via


AIJsonSchemaTransformCache.GetOrCreateTransformedSchema Method

Definition

Overloads

Name Description
GetOrCreateTransformedSchema(AIFunction)

Gets or creates a transformed JSON schema for the specified AIFunction instance.

GetOrCreateTransformedSchema(AIFunctionDeclaration)

Gets or creates a transformed JSON schema for the specified AIFunctionDeclaration instance.

GetOrCreateTransformedSchema(ChatResponseFormatJson)

Gets or creates a transformed JSON schema for the specified ChatResponseFormatJson instance.

GetOrCreateTransformedSchema(AIFunction)

Source:
AIJsonSchemaTransformCache.cs

Gets or creates a transformed JSON schema for the specified AIFunction instance.

public:
 System::Text::Json::JsonElement GetOrCreateTransformedSchema(Microsoft::Extensions::AI::AIFunction ^ function);
public System.Text.Json.JsonElement GetOrCreateTransformedSchema(Microsoft.Extensions.AI.AIFunction function);
member this.GetOrCreateTransformedSchema : Microsoft.Extensions.AI.AIFunction -> System.Text.Json.JsonElement
Public Function GetOrCreateTransformedSchema (function As AIFunction) As JsonElement

Parameters

function
AIFunction

The function whose JSON schema is to be transformed.

Returns

The transformed JSON schema corresponding to TransformOptions.

Applies to

GetOrCreateTransformedSchema(AIFunctionDeclaration)

Source:
AIJsonSchemaTransformCache.cs

Gets or creates a transformed JSON schema for the specified AIFunctionDeclaration instance.

public:
 System::Text::Json::JsonElement GetOrCreateTransformedSchema(Microsoft::Extensions::AI::AIFunctionDeclaration ^ function);
public System.Text.Json.JsonElement GetOrCreateTransformedSchema(Microsoft.Extensions.AI.AIFunctionDeclaration function);
member this.GetOrCreateTransformedSchema : Microsoft.Extensions.AI.AIFunctionDeclaration -> System.Text.Json.JsonElement
Public Function GetOrCreateTransformedSchema (function As AIFunctionDeclaration) As JsonElement

Parameters

function
AIFunctionDeclaration

The function whose JSON schema is to be transformed.

Returns

The transformed JSON schema corresponding to TransformOptions.

Applies to

GetOrCreateTransformedSchema(ChatResponseFormatJson)

Source:
AIJsonSchemaTransformCache.cs

Gets or creates a transformed JSON schema for the specified ChatResponseFormatJson instance.

public:
 Nullable<System::Text::Json::JsonElement> GetOrCreateTransformedSchema(Microsoft::Extensions::AI::ChatResponseFormatJson ^ responseFormat);
public System.Text.Json.JsonElement? GetOrCreateTransformedSchema(Microsoft.Extensions.AI.ChatResponseFormatJson responseFormat);
member this.GetOrCreateTransformedSchema : Microsoft.Extensions.AI.ChatResponseFormatJson -> Nullable<System.Text.Json.JsonElement>
Public Function GetOrCreateTransformedSchema (responseFormat As ChatResponseFormatJson) As Nullable(Of JsonElement)

Parameters

responseFormat
ChatResponseFormatJson

The response format whose JSON schema is to be transformed.

Returns

The transformed JSON schema corresponding to TransformOptions.

Applies to