8 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)
501
FunctionCallContent.
CreateFromParsedArguments
(json, callId, name,
Microsoft.Extensions.AI.OpenAI (1)
OpenAIRealtimeExtensions.cs (1)
119
var functionCallContent = FunctionCallContent.
CreateFromParsedArguments
(