AIJsonSchemaTransformCache.GetOrCreateTransformedSchema Method

Definition

Overloads

GetOrCreateTransformedSchema(AIFunction)

Gets or creates a transformed JSON schema for the specified AIFunction 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 we want to transform.

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 we want to transform.

Returns

The transformed JSON schema corresponding to TransformOptions.

Applies to