Κοινή χρήση μέσω


FunctionCallContent.CreateFromParsedArguments<TEncoding> Method

Definition

Creates a new instance of FunctionCallContent parsing arguments using a specified encoding and 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

The encoding format from which to parse function call arguments.

Parameters

encodedArguments
TEncoding

The input arguments encoded in TEncoding.

callId
String

The function call ID.

name
String

The function name.

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

The parsing implementation converting the encoding to a dictionary of arguments.

Returns

A new instance of FunctionCallContent containing the parse result.

Applies to