34 writes to Scope
Microsoft.Extensions.AI.Abstractions (3)
Files\HostedFileClientExtensions.cs (1)
161
options.
Scope
= scope;
Files\HostedFileClientOptions.cs (1)
34
Scope
= other.Scope;
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.HostedFileClientOptions.g.cs (1)
61
Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.HostedFileClientOptions)obj).
Scope
= value!,
Microsoft.Extensions.AI.Abstractions.Tests (4)
Files\HostedFileClientExtensionsTests.cs (1)
342
var explicitOptions = new HostedFileClientOptions {
Scope
= "container-from-options" };
Files\HostedFileClientOptionsTests.cs (2)
41
Scope
= "container-1",
133
Scope
= "container-1",
Generated\361d1da7f942c932\TestJsonSerializerContext.HostedFileClientOptions.g.cs (1)
59
Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.HostedFileClientOptions)obj).
Scope
= value!,
Microsoft.Extensions.AI.OpenAI.Tests (22)
OpenAIHostedFileClientIntegrationTests.cs (8)
302
new HostedFileClientOptions {
Scope
= containerId });
310
await foreach (var file in containerClient.ListFilesAsync(new HostedFileClientOptions {
Scope
= containerId }))
318
var fileInfo = await containerClient.GetFileInfoAsync(uploadedFile.FileId, new HostedFileClientOptions {
Scope
= containerId });
323
using var downloadStream = await containerClient.DownloadAsync(uploadedFile.FileId, new HostedFileClientOptions {
Scope
= containerId });
330
bool deleted = await containerClient.DeleteAsync(uploadedFile.FileId, new HostedFileClientOptions {
Scope
= containerId });
368
await foreach (var file in fileClient.ListFilesAsync(new HostedFileClientOptions {
Scope
= containerId }))
377
using var downloadStream = await fileClient.DownloadAsync(firstFile, new HostedFileClientOptions {
Scope
= containerId });
419
new HostedFileClientOptions {
Scope
= containerId });
OpenAIHostedFileClientTests.cs (14)
383
() => client.UploadAsync(stream, options: new HostedFileClientOptions {
Scope
= "container-123" }));
393
() => client.DownloadAsync("file-abc123", new HostedFileClientOptions {
Scope
= "container-123" }));
403
() => client.GetFileInfoAsync("file-abc123", new HostedFileClientOptions {
Scope
= "container-123" }));
413
async () => await CollectAsync(client.ListFilesAsync(new HostedFileClientOptions {
Scope
= "container-123" })));
423
() => client.DeleteAsync("file-abc123", new HostedFileClientOptions {
Scope
= "container-123" }));
662
var result = await client.UploadAsync(contentStream, "text/csv", "data.csv", new HostedFileClientOptions {
Scope
= "ctr-123" });
687
await client.UploadAsync(contentStream, "text/csv", "data.csv", new HostedFileClientOptions {
Scope
= "ctr-123" });
716
using var stream = await client.DownloadAsync("cfile-1", new HostedFileClientOptions {
Scope
= "ctr-123" });
743
var result = await client.GetFileInfoAsync("cfile-1", new HostedFileClientOptions {
Scope
= "ctr-123" });
758
var result = await client.GetFileInfoAsync("cfile-nonexistent", new HostedFileClientOptions {
Scope
= "ctr-123" });
785
var files = await CollectAsync(client.ListFilesAsync(new HostedFileClientOptions {
Scope
= "ctr-123" }));
809
var result = await client.DeleteAsync("cfile-1", new HostedFileClientOptions {
Scope
= "ctr-123" });
821
var result = await client.DeleteAsync("cfile-nonexistent", new HostedFileClientOptions {
Scope
= "ctr-123" });
874
Scope
= "ctr-123",
Microsoft.Extensions.AI.Tests (5)
Files\OpenTelemetryHostedFileClientTests.cs (5)
51
await client.UploadAsync(stream, "text/plain", "test.txt", new HostedFileClientOptions { Purpose = "assistants",
Scope
= "container-1" });
103
using var stream = await client.DownloadAsync("file-xyz", new HostedFileClientOptions {
Scope
= "container-2" });
143
await client.GetFileInfoAsync("file-info", new HostedFileClientOptions {
Scope
= "container-3" });
198
await foreach (var file in client.ListFilesAsync(new HostedFileClientOptions { Purpose = "assistants",
Scope
= "container-4" }))
239
await client.DeleteAsync("file-del", new HostedFileClientOptions {
Scope
= "container-5" });
22 references to Scope
Microsoft.Extensions.AI (5)
Files\OpenTelemetryHostedFileClient.cs (5)
156
if (options?.
Scope
is string scope)
209
if (options?.
Scope
is string scope)
246
if (options?.
Scope
is string scope)
295
if (options?.
Scope
is string scope)
373
if (options?.
Scope
is string scope)
Microsoft.Extensions.AI.Abstractions (4)
Files\HostedFileClientExtensions.cs (1)
158
if (hostedFile.Scope is string scope && options?.
Scope
is null)
Files\HostedFileClientOptions.cs (1)
34
Scope = other.
Scope
;
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.HostedFileClientOptions.g.cs (2)
60
Getter = static obj => ((global::Microsoft.Extensions.AI.HostedFileClientOptions)obj).
Scope
,
168
string __value_Scope = ((global::Microsoft.Extensions.AI.HostedFileClientOptions)value).
Scope
;
Microsoft.Extensions.AI.Abstractions.Tests (9)
Files\HostedFileClientExtensionsTests.cs (2)
335
Assert.Equal("container-42", capturedOptions.
Scope
);
355
Assert.Equal("container-from-options", capturedOptions.
Scope
);
Files\HostedFileClientOptionsTests.cs (5)
20
Assert.Null(options.
Scope
);
27
Assert.Null(clone.
Scope
);
48
Assert.Equal("container-1", options.
Scope
);
55
Assert.Equal("container-1", clone.
Scope
);
144
Assert.Equal("container-1", deserialized.
Scope
);
Generated\361d1da7f942c932\TestJsonSerializerContext.HostedFileClientOptions.g.cs (2)
58
Getter = static obj => ((global::Microsoft.Extensions.AI.HostedFileClientOptions)obj).
Scope
,
166
string __value_Scope = ((global::Microsoft.Extensions.AI.HostedFileClientOptions)value).
Scope
;
Microsoft.Extensions.AI.OpenAI (4)
OpenAIClientExtensions.cs (1)
202
/// in the <see cref="HostedFileClientOptions.
Scope
"/> property.
OpenAIHostedFileClient.cs (3)
34
/// When a <see cref="HostedFileClientOptions.
Scope
"/> (container ID) is specified on a per-call options object
86
/// provided via the <see cref="HostedFileClientOptions.
Scope
"/> property on per-call options.
375
options?.
Scope
?? _defaultScope;