FunctionCallContent.CreateFromParsedArguments<TEncoding> 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.
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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET