6
6
7
7
namespace OpenAI . Assistants ;
8
8
9
+ [ CodeGenSuppress ( "ListAssistantsAsync" , typeof ( int ? ) , typeof ( string ) , typeof ( string ) , typeof ( string ) , typeof ( RequestOptions ) ) ]
10
+ [ CodeGenSuppress ( "ListAssistants" , typeof ( int ? ) , typeof ( string ) , typeof ( string ) , typeof ( string ) , typeof ( RequestOptions ) ) ]
9
11
public partial class AssistantClient
10
12
{
11
13
/// <summary>
@@ -22,7 +24,7 @@ public virtual async Task<ClientResult> CreateAssistantAsync(BinaryContent conte
22
24
Argument . AssertNotNull ( content , nameof ( content ) ) ;
23
25
24
26
using PipelineMessage message = CreateCreateAssistantRequest ( content , options ) ;
25
- return ClientResult . FromResponse ( await _pipeline . ProcessMessageAsync ( message , options ) . ConfigureAwait ( false ) ) ;
27
+ return ClientResult . FromResponse ( await Pipeline . ProcessMessageAsync ( message , options ) . ConfigureAwait ( false ) ) ;
26
28
}
27
29
28
30
/// <summary>
@@ -39,7 +41,7 @@ public virtual ClientResult CreateAssistant(BinaryContent content, RequestOption
39
41
Argument . AssertNotNull ( content , nameof ( content ) ) ;
40
42
41
43
using PipelineMessage message = CreateCreateAssistantRequest ( content , options ) ;
42
- return ClientResult . FromResponse ( _pipeline . ProcessMessage ( message , options ) ) ;
44
+ return ClientResult . FromResponse ( Pipeline . ProcessMessage ( message , options ) ) ;
43
45
}
44
46
45
47
/// <summary>
@@ -69,7 +71,7 @@ public virtual ClientResult CreateAssistant(BinaryContent content, RequestOption
69
71
[ EditorBrowsable ( EditorBrowsableState . Never ) ]
70
72
public virtual AsyncCollectionResult GetAssistantsAsync ( int ? limit , string order , string after , string before , RequestOptions options )
71
73
{
72
- return new AsyncAssistantCollectionResult ( this , _pipeline , options , limit , order , after , before ) ;
74
+ return new AsyncAssistantCollectionResult ( this , Pipeline , options , limit , order , after , before ) ;
73
75
}
74
76
75
77
/// <summary>
@@ -99,7 +101,7 @@ public virtual AsyncCollectionResult GetAssistantsAsync(int? limit, string order
99
101
[ EditorBrowsable ( EditorBrowsableState . Never ) ]
100
102
public virtual CollectionResult GetAssistants ( int ? limit , string order , string after , string before , RequestOptions options )
101
103
{
102
- return new AssistantCollectionResult ( this , _pipeline , options , limit , order , after , before ) ;
104
+ return new AssistantCollectionResult ( this , Pipeline , options , limit , order , after , before ) ;
103
105
}
104
106
105
107
/// <summary>
@@ -117,7 +119,7 @@ public virtual async Task<ClientResult> GetAssistantAsync(string assistantId, Re
117
119
Argument . AssertNotNullOrEmpty ( assistantId , nameof ( assistantId ) ) ;
118
120
119
121
using PipelineMessage message = CreateGetAssistantRequest ( assistantId , options ) ;
120
- return ClientResult . FromResponse ( await _pipeline . ProcessMessageAsync ( message , options ) . ConfigureAwait ( false ) ) ;
122
+ return ClientResult . FromResponse ( await Pipeline . ProcessMessageAsync ( message , options ) . ConfigureAwait ( false ) ) ;
121
123
}
122
124
123
125
/// <summary>
@@ -135,7 +137,7 @@ public virtual ClientResult GetAssistant(string assistantId, RequestOptions opti
135
137
Argument . AssertNotNullOrEmpty ( assistantId , nameof ( assistantId ) ) ;
136
138
137
139
using PipelineMessage message = CreateGetAssistantRequest ( assistantId , options ) ;
138
- return ClientResult . FromResponse ( _pipeline . ProcessMessage ( message , options ) ) ;
140
+ return ClientResult . FromResponse ( Pipeline . ProcessMessage ( message , options ) ) ;
139
141
}
140
142
141
143
/// <summary>
@@ -155,7 +157,7 @@ public virtual async Task<ClientResult> ModifyAssistantAsync(string assistantId,
155
157
Argument . AssertNotNull ( content , nameof ( content ) ) ;
156
158
157
159
using PipelineMessage message = CreateModifyAssistantRequest ( assistantId , content , options ) ;
158
- return ClientResult . FromResponse ( await _pipeline . ProcessMessageAsync ( message , options ) . ConfigureAwait ( false ) ) ;
160
+ return ClientResult . FromResponse ( await Pipeline . ProcessMessageAsync ( message , options ) . ConfigureAwait ( false ) ) ;
159
161
}
160
162
161
163
/// <summary>
@@ -175,7 +177,7 @@ public virtual ClientResult ModifyAssistant(string assistantId, BinaryContent co
175
177
Argument . AssertNotNull ( content , nameof ( content ) ) ;
176
178
177
179
using PipelineMessage message = CreateModifyAssistantRequest ( assistantId , content , options ) ;
178
- return ClientResult . FromResponse ( _pipeline . ProcessMessage ( message , options ) ) ;
180
+ return ClientResult . FromResponse ( Pipeline . ProcessMessage ( message , options ) ) ;
179
181
}
180
182
181
183
/// <summary>
@@ -193,7 +195,7 @@ public virtual async Task<ClientResult> DeleteAssistantAsync(string assistantId,
193
195
Argument . AssertNotNullOrEmpty ( assistantId , nameof ( assistantId ) ) ;
194
196
195
197
using PipelineMessage message = CreateDeleteAssistantRequest ( assistantId , options ) ;
196
- return ClientResult . FromResponse ( await _pipeline . ProcessMessageAsync ( message , options ) . ConfigureAwait ( false ) ) ;
198
+ return ClientResult . FromResponse ( await Pipeline . ProcessMessageAsync ( message , options ) . ConfigureAwait ( false ) ) ;
197
199
}
198
200
199
201
/// <summary>
@@ -211,7 +213,7 @@ public virtual ClientResult DeleteAssistant(string assistantId, RequestOptions o
211
213
Argument . AssertNotNullOrEmpty ( assistantId , nameof ( assistantId ) ) ;
212
214
213
215
using PipelineMessage message = CreateDeleteAssistantRequest ( assistantId , options ) ;
214
- return ClientResult . FromResponse ( _pipeline . ProcessMessage ( message , options ) ) ;
216
+ return ClientResult . FromResponse ( Pipeline . ProcessMessage ( message , options ) ) ;
215
217
}
216
218
217
219
/// <inheritdoc cref="InternalAssistantMessageClient.CreateMessageAsync"/>
0 commit comments