8 references to CreateFromParsedArguments
Microsoft.Extensions.AI.Abstractions.Tests (6)
Contents\FunctionCallContentTests.cs (6)
344
var content = FunctionCallContent.
CreateFromParsedArguments
(
389
var content = FunctionCallContent.
CreateFromParsedArguments
(exc, "callId", "functionName", ThrowingParser);
403
Assert.Throws<ArgumentNullException>("encodedArguments", () => FunctionCallContent.
CreateFromParsedArguments
((string)null!, "callId", "functionName", _ => null));
404
Assert.Throws<ArgumentNullException>("callId", () => FunctionCallContent.
CreateFromParsedArguments
("{}", null!, "functionName", _ => null));
405
Assert.Throws<ArgumentNullException>("name", () => FunctionCallContent.
CreateFromParsedArguments
("{}", "callId", null!, _ => null));
406
Assert.Throws<ArgumentNullException>("argumentParser", () => FunctionCallContent.
CreateFromParsedArguments
("{}", "callId", "functionName", null!));
Microsoft.Extensions.AI.OpenAI (2)
OpenAIClientExtensions.cs (2)
266
FunctionCallContent.
CreateFromParsedArguments
(json, callId, name,
279
FunctionCallContent.
CreateFromParsedArguments
(utf8json, callId, name,