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