66
77namespace OpenAI . Assistants ;
88
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 ) ) ]
911public partial class AssistantClient
1012{
1113 /// <summary>
@@ -22,7 +24,7 @@ public virtual async Task<ClientResult> CreateAssistantAsync(BinaryContent conte
2224 Argument . AssertNotNull ( content , nameof ( content ) ) ;
2325
2426 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 ) ) ;
2628 }
2729
2830 /// <summary>
@@ -39,7 +41,7 @@ public virtual ClientResult CreateAssistant(BinaryContent content, RequestOption
3941 Argument . AssertNotNull ( content , nameof ( content ) ) ;
4042
4143 using PipelineMessage message = CreateCreateAssistantRequest ( content , options ) ;
42- return ClientResult . FromResponse ( _pipeline . ProcessMessage ( message , options ) ) ;
44+ return ClientResult . FromResponse ( Pipeline . ProcessMessage ( message , options ) ) ;
4345 }
4446
4547 /// <summary>
@@ -69,7 +71,7 @@ public virtual ClientResult CreateAssistant(BinaryContent content, RequestOption
6971 [ EditorBrowsable ( EditorBrowsableState . Never ) ]
7072 public virtual AsyncCollectionResult GetAssistantsAsync ( int ? limit , string order , string after , string before , RequestOptions options )
7173 {
72- return new AsyncAssistantCollectionResult ( this , _pipeline , options , limit , order , after , before ) ;
74+ return new AsyncAssistantCollectionResult ( this , Pipeline , options , limit , order , after , before ) ;
7375 }
7476
7577 /// <summary>
@@ -99,7 +101,7 @@ public virtual AsyncCollectionResult GetAssistantsAsync(int? limit, string order
99101 [ EditorBrowsable ( EditorBrowsableState . Never ) ]
100102 public virtual CollectionResult GetAssistants ( int ? limit , string order , string after , string before , RequestOptions options )
101103 {
102- return new AssistantCollectionResult ( this , _pipeline , options , limit , order , after , before ) ;
104+ return new AssistantCollectionResult ( this , Pipeline , options , limit , order , after , before ) ;
103105 }
104106
105107 /// <summary>
@@ -117,7 +119,7 @@ public virtual async Task<ClientResult> GetAssistantAsync(string assistantId, Re
117119 Argument . AssertNotNullOrEmpty ( assistantId , nameof ( assistantId ) ) ;
118120
119121 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 ) ) ;
121123 }
122124
123125 /// <summary>
@@ -135,7 +137,7 @@ public virtual ClientResult GetAssistant(string assistantId, RequestOptions opti
135137 Argument . AssertNotNullOrEmpty ( assistantId , nameof ( assistantId ) ) ;
136138
137139 using PipelineMessage message = CreateGetAssistantRequest ( assistantId , options ) ;
138- return ClientResult . FromResponse ( _pipeline . ProcessMessage ( message , options ) ) ;
140+ return ClientResult . FromResponse ( Pipeline . ProcessMessage ( message , options ) ) ;
139141 }
140142
141143 /// <summary>
@@ -155,7 +157,7 @@ public virtual async Task<ClientResult> ModifyAssistantAsync(string assistantId,
155157 Argument . AssertNotNull ( content , nameof ( content ) ) ;
156158
157159 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 ) ) ;
159161 }
160162
161163 /// <summary>
@@ -175,7 +177,7 @@ public virtual ClientResult ModifyAssistant(string assistantId, BinaryContent co
175177 Argument . AssertNotNull ( content , nameof ( content ) ) ;
176178
177179 using PipelineMessage message = CreateModifyAssistantRequest ( assistantId , content , options ) ;
178- return ClientResult . FromResponse ( _pipeline . ProcessMessage ( message , options ) ) ;
180+ return ClientResult . FromResponse ( Pipeline . ProcessMessage ( message , options ) ) ;
179181 }
180182
181183 /// <summary>
@@ -193,7 +195,7 @@ public virtual async Task<ClientResult> DeleteAssistantAsync(string assistantId,
193195 Argument . AssertNotNullOrEmpty ( assistantId , nameof ( assistantId ) ) ;
194196
195197 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 ) ) ;
197199 }
198200
199201 /// <summary>
@@ -211,7 +213,7 @@ public virtual ClientResult DeleteAssistant(string assistantId, RequestOptions o
211213 Argument . AssertNotNullOrEmpty ( assistantId , nameof ( assistantId ) ) ;
212214
213215 using PipelineMessage message = CreateDeleteAssistantRequest ( assistantId , options ) ;
214- return ClientResult . FromResponse ( _pipeline . ProcessMessage ( message , options ) ) ;
216+ return ClientResult . FromResponse ( Pipeline . ProcessMessage ( message , options ) ) ;
215217 }
216218
217219 /// <inheritdoc cref="InternalAssistantMessageClient.CreateMessageAsync"/>
0 commit comments