Taal

FunctionCallContent.CreateFromParsedArguments<TEncoding> Methode

Definitie

Hiermee maakt u een nieuw exemplaar van parseringsargumenten met behulp van FunctionCallContent een opgegeven codering en parser.

public:
generic <typename TEncoding>
 static Microsoft::Extensions::AI::FunctionCallContent ^ CreateFromParsedArguments(TEncoding encodedArguments, System::String ^ callId, System::String ^ name, Func<TEncoding, System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^> ^ argumentParser);
public static Microsoft.Extensions.AI.FunctionCallContent CreateFromParsedArguments<TEncoding>(TEncoding encodedArguments, string callId, string name, Func<TEncoding,System.Collections.Generic.IDictionary<string,object?>?> argumentParser);
static member CreateFromParsedArguments : 'Encoding * string * string * Func<'Encoding, System.Collections.Generic.IDictionary<string, obj>> -> Microsoft.Extensions.AI.FunctionCallContent
Public Shared Function CreateFromParsedArguments(Of TEncoding) (encodedArguments As TEncoding, callId As String, name As String, argumentParser As Func(Of TEncoding, IDictionary(Of String, Object))) As FunctionCallContent

Type parameters

TEncoding

De coderingsindeling waaruit argumenten voor functie-aanroep moeten worden geparseerd.

Parameters

encodedArguments
TEncoding

De invoerargumenten die zijn gecodeerd in TEncoding.

callId
String

De aanroep-id van de functie.

name
String

De naam van de functie.

argumentParser
Func<TEncoding,IDictionary<String,Object>>

De parseringsimplementatie converteert de codering naar een woordenlijst met argumenten.

Retouren

Een nieuw exemplaar van FunctionCallContent het parseringsresultaat.

Uitzonderingen

argumentParser is null.

Van toepassing op