语言

FunctionCallContent.CreateFromParsedArguments<TEncoding> 方法

定义

使用指定的编码和分析程序创建分析参数的新实例 FunctionCallContent 。

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

类型参数

TEncoding

从中分析函数调用参数的编码格式。

参数

encodedArguments
TEncoding

编码为 的 TEncoding输入参数。

callId
String

函数调用 ID。

name
String

函数名称。

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

将编码转换为自变量字典的分析实现。

返回

包含分析结果的新实例 FunctionCallContent 。

例外

argumentParser 是 null。

适用于