1 write to _client
Microsoft.Extensions.AI.OpenAI (1)
OpenAIAssistantsChatClient.cs (1)
47
_client
= Throw.IfNull(assistantClient);
7 references to _client
Microsoft.Extensions.AI.OpenAI (7)
OpenAIAssistantsChatClient.cs (7)
66
serviceType == typeof(AssistantClient) ?
_client
:
93
await foreach (var run in
_client
.GetRunsAsync(
116
updates =
_client
.SubmitToolOutputsToRunStreamingAsync(threadRun.ThreadId, threadRun.Id, toolOutputs, cancellationToken);
135
var thread = await
_client
.CreateThreadAsync(threadCreationOptions, cancellationToken).ConfigureAwait(false);
141
_ = await
_client
.CancelRunAsync(threadId, threadRun.Id, cancellationToken).ConfigureAwait(false);
146
updates =
_client
.CreateRunStreamingAsync(
374
var assistant = await
_client
.GetAssistantAsync(_assistantId, cancellationToken).ConfigureAwait(false);