AIJsonSchemaTransformCache.GetOrCreateTransformedSchema 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
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)
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)
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.