AIJsonUtilities.CreateFunctionJsonSchema Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Bepaalt een JSON-schema voor de opgegeven methode.
public static System.Text.Json.JsonElement CreateFunctionJsonSchema(System.Reflection.MethodBase method, string? title = default, string? description = default, System.Text.Json.JsonSerializerOptions? serializerOptions = default, Microsoft.Extensions.AI.AIJsonSchemaCreateOptions? inferenceOptions = default);
static member CreateFunctionJsonSchema : System.Reflection.MethodBase * string * string * System.Text.Json.JsonSerializerOptions * Microsoft.Extensions.AI.AIJsonSchemaCreateOptions -> System.Text.Json.JsonElement
Public Function CreateFunctionJsonSchema (method As MethodBase, Optional title As String = Nothing, Optional description As String = Nothing, Optional serializerOptions As JsonSerializerOptions = Nothing, Optional inferenceOptions As AIJsonSchemaCreateOptions = Nothing) As JsonElement
Parameters
- method
- MethodBase
De methode waaruit schemagegevens moeten worden geëxtraheerd.
- title
- String
Het titelwoord dat wordt gebruikt door het methodeschema.
- description
- String
Het trefwoord beschrijving dat wordt gebruikt door het methodeschema.
- serializerOptions
- JsonSerializerOptions
De opties die worden gebruikt om het schema uit het opgegeven type te extraheren.
- inferenceOptions
- AIJsonSchemaCreateOptions
De opties voor het maken van schema's.
Retouren
Een JSON-schemadocument dat is gecodeerd als een JsonElement.
Uitzonderingen
method is null.