30 writes to Name
Microsoft.Extensions.AI.Abstractions (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.HostedFileContent.g.cs (1)
103Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.HostedFileContent)obj).Name = value!,
Microsoft.Extensions.AI.Abstractions.Tests (6)
Contents\HostedFileContentTests.cs (4)
119c.Name = "document.pdf"; 122c.Name = "image.png"; 125c.Name = null; 190Name = "test.txt",
Files\DelegatingHostedFileClientTests.cs (1)
88var expectedFile = new HostedFileContent("file-789") { Name = "info.txt" };
Generated\361d1da7f942c932\TestJsonSerializerContext.HostedFileContent.g.cs (1)
101Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.HostedFileContent)obj).Name = value!,
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.HostedFileContent.g.cs (1)
103Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.HostedFileContent)obj).Name = value!,
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.HostedFileContent.g.cs (1)
103Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.HostedFileContent)obj).Name = value!,
Microsoft.Extensions.AI.OpenAI (4)
OpenAIChatClient.cs (1)
808contentPart.FileId is not null ? new HostedFileContent(contentPart.FileId) { Name = contentPart.Filename } :
OpenAIHostedFileClient.cs (2)
330Name = openAIFile.Filename, 349Name = name,
OpenAIResponsesChatClient.cs (1)
1702content = new HostedFileContent(part.InputFileId) { Name = part.InputFilename };
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIResponseClientTests.cs (2)
5056new FunctionResultContent("call_file", new HostedFileContent("file-abc123") { MediaType = "image/png", Name = "result.png" }) 5402new FunctionResultContent("call_hosted_file", new HostedFileContent("file-xyz789") { MediaType = "text/plain", Name = "document.txt" })
Microsoft.Extensions.AI.Stabilization.Tests (5)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.HostedFileContent.g.cs (1)
101Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.HostedFileContent)obj).Name = value!,
parent\Microsoft.Extensions.AI.Abstractions.Tests\Contents\HostedFileContentTests.cs (4)
119c.Name = "document.pdf"; 122c.Name = "image.png"; 125c.Name = null; 190Name = "test.txt",
Microsoft.Extensions.AI.Tests (10)
Files\LoggingHostedFileClientTests.cs (4)
61Task.FromResult(new HostedFileContent("file-123") { Name = "test.txt" }), 170Task.FromResult<HostedFileContent?>(new HostedFileContent("file-456") { Name = "report.pdf" }), 233yield return new HostedFileContent("file-1") { Name = "a.txt" }; 234yield return new HostedFileContent("file-2") { Name = "b.txt" };
Files\OpenTelemetryHostedFileClientTests.cs (5)
41Task.FromResult(new HostedFileContent("file-abc") { Name = "test.txt", SizeInBytes = 1024 }), 134Task.FromResult<HostedFileContent?>(new HostedFileContent("file-info") { Name = "report.pdf", SizeInBytes = 2048 }), 188yield return new HostedFileContent("file-1") { Name = "a.txt" }; 189yield return new HostedFileContent("file-2") { Name = "b.txt" }; 190yield return new HostedFileContent("file-3") { Name = "c.txt" };
Generated\361d1da7f942c932\TestJsonSerializerContext.HostedFileContent.g.cs (1)
101Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.HostedFileContent)obj).Name = value!,
31 references to Name
Microsoft.Extensions.AI (1)
Files\OpenTelemetryHostedFileClient.cs (1)
270if (EnableSensitiveData && result.Name is string name)
Microsoft.Extensions.AI.Abstractions (2)
Contents\HostedFileContent.cs (1)
128if (Name is string name)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.HostedFileContent.g.cs (1)
102Getter = static obj => ((global::Microsoft.Extensions.AI.HostedFileContent)obj).Name,
Microsoft.Extensions.AI.Abstractions.Tests (6)
Contents\HostedFileContentTests.cs (5)
117Assert.Null(c.Name); 120Assert.Equal("document.pdf", c.Name); 123Assert.Equal("image.png", c.Name); 126Assert.Null(c.Name); 263Assert.Equal("document.pdf", hostedFile.Name);
Generated\361d1da7f942c932\TestJsonSerializerContext.HostedFileContent.g.cs (1)
100Getter = static obj => ((global::Microsoft.Extensions.AI.HostedFileContent)obj).Name,
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.HostedFileContent.g.cs (1)
102Getter = static obj => ((global::Microsoft.Extensions.AI.HostedFileContent)obj).Name,
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.HostedFileContent.g.cs (1)
102Getter = static obj => ((global::Microsoft.Extensions.AI.HostedFileContent)obj).Name,
Microsoft.Extensions.AI.OpenAI (1)
OpenAIResponsesChatClient.cs (1)
1469FileName = fc.Name,
Microsoft.Extensions.AI.OpenAI.Tests (12)
OpenAIHostedFileClientIntegrationTests.cs (3)
45Assert.Equal(fileName, uploadedFile.Name); 103Assert.Contains(files, f => f.FileId == uploadedFileId && f.MediaType == "text/plain" && f.Name == fileName); 133Assert.Equal(fileName, fileInfo.Name);
OpenAIHostedFileClientTests.cs (9)
116Assert.Equal("mydata.jsonl", result.Name); 205Assert.Equal("mydata.jsonl", result.Name); 265Assert.Equal("a.jsonl", files[0].Name); 272Assert.Equal("b.jsonl", files[1].Name); 665Assert.Equal("data.csv", result.Name); 747Assert.Equal("report.pdf", result.Name); 790Assert.Equal("file1.txt", files[0].Name); 794Assert.Equal("file2.csv", files[1].Name); 850Assert.Equal("test.txt", result.Name);
Microsoft.Extensions.AI.Stabilization.Tests (6)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.HostedFileContent.g.cs (1)
100Getter = static obj => ((global::Microsoft.Extensions.AI.HostedFileContent)obj).Name,
parent\Microsoft.Extensions.AI.Abstractions.Tests\Contents\HostedFileContentTests.cs (5)
117Assert.Null(c.Name); 120Assert.Equal("document.pdf", c.Name); 123Assert.Equal("image.png", c.Name); 126Assert.Null(c.Name); 263Assert.Equal("document.pdf", hostedFile.Name);
Microsoft.Extensions.AI.Tests (1)
Generated\361d1da7f942c932\TestJsonSerializerContext.HostedFileContent.g.cs (1)
100Getter = static obj => ((global::Microsoft.Extensions.AI.HostedFileContent)obj).Name,