10 references to CreateFromParsedArguments
Microsoft.Extensions.AI.Abstractions.Tests (6)
Contents\FunctionCallContentTests..cs (6)
275
var content = FunctionCallContent.
CreateFromParsedArguments
(
320
var content = FunctionCallContent.
CreateFromParsedArguments
(exc, "callId", "functionName", ThrowingParser);
334
Assert.Throws<ArgumentNullException>("encodedArguments", () => FunctionCallContent.
CreateFromParsedArguments
((string)null!, "callId", "functionName", _ => null));
335
Assert.Throws<ArgumentNullException>("callId", () => FunctionCallContent.
CreateFromParsedArguments
("{}", null!, "functionName", _ => null));
336
Assert.Throws<ArgumentNullException>("name", () => FunctionCallContent.
CreateFromParsedArguments
("{}", "callId", null!, _ => null));
337
Assert.Throws<ArgumentNullException>("argumentParser", () => FunctionCallContent.
CreateFromParsedArguments
("{}", "callId", "functionName", null!));
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
500
FunctionCallContent.
CreateFromParsedArguments
(json, callId, name,
Microsoft.Extensions.AI.OpenAI (3)
OpenAIChatClient.cs (2)
676
FunctionCallContent.
CreateFromParsedArguments
(json, callId, name,
681
FunctionCallContent.
CreateFromParsedArguments
(ut8Json, callId, name,
OpenAIRealtimeExtensions.cs (1)
119
var functionCallContent = FunctionCallContent.
CreateFromParsedArguments
(