4 writes to ReturnParameter
Microsoft.Extensions.AI (1)
Functions\AIFunctionFactory.cs (1)
272ReturnParameter = options.ReturnParameter ?? new()
Microsoft.Extensions.AI.Abstractions (1)
Functions\AIFunctionMetadata.cs (1)
56ReturnParameter = metadata.ReturnParameter;
Microsoft.Extensions.AI.Abstractions.Tests (2)
Functions\AIFunctionMetadataTests.cs (2)
45ReturnParameter = new AIFunctionReturnParameterMetadata(), 62Assert.Throws<ArgumentNullException>("value", () => new AIFunctionMetadata("name") { ReturnParameter = null! });
11 references to ReturnParameter
Microsoft.Extensions.AI (1)
Functions\AIFunctionFactory.cs (1)
317Debug.Assert(Metadata.ReturnParameter.ParameterType == typeof(void), "The return parameter is not void.");
Microsoft.Extensions.AI.Abstractions (2)
Functions\AIFunctionMetadata.cs (2)
49/// <see cref="ReturnParameter"/> properties will return the same objects as in the original instance. 56ReturnParameter = metadata.ReturnParameter;
Microsoft.Extensions.AI.Abstractions.Tests (6)
Functions\AIFunctionMetadataTests.cs (6)
28Assert.NotNull(f.ReturnParameter); 29Assert.Null(f.ReturnParameter.Schema); 30Assert.Null(f.ReturnParameter.ParameterType); 31Assert.Null(f.ReturnParameter.Description); 53Assert.Same(f1.ReturnParameter, f2.ReturnParameter);
Microsoft.Extensions.AI.Tests (2)
Functions\AIFunctionFactoryTest.cs (2)
139Assert.Equal(typeof(string), func.Metadata.ReturnParameter.ParameterType); 182Assert.Equal(returnParameterMetadata, func.Metadata.ReturnParameter);