@@ -5710,57 +5710,6 @@ public class WebSearchToolLocation : IJsonModel<WebSearchToolLocation>, IPersist
57105710 }
57115711}
57125712namespace OpenAI . VectorStores {
5713- [ Experimental ( "OPENAI001" ) ]
5714- public class AddFileToVectorStoreOperation : OperationResult {
5715- public string FileId { get ; }
5716- public override ContinuationToken ? RehydrationToken { get ; protected set ; }
5717- public VectorStoreFileAssociationStatus ? Status { get ; }
5718- public VectorStoreFileAssociation ? Value { get ; }
5719- public string VectorStoreId { get ; }
5720- public virtual ClientResult GetFileAssociation ( RequestOptions ? options ) ;
5721- public virtual ClientResult < VectorStoreFileAssociation > GetFileAssociation ( CancellationToken cancellationToken = default ) ;
5722- public virtual Task < ClientResult > GetFileAssociationAsync ( RequestOptions ? options ) ;
5723- public virtual Task < ClientResult < VectorStoreFileAssociation > > GetFileAssociationAsync ( CancellationToken cancellationToken = default ) ;
5724- public static AddFileToVectorStoreOperation Rehydrate ( VectorStoreClient client , ContinuationToken rehydrationToken , CancellationToken cancellationToken = default ) ;
5725- public static Task < AddFileToVectorStoreOperation > RehydrateAsync ( VectorStoreClient client , ContinuationToken rehydrationToken , CancellationToken cancellationToken = default ) ;
5726- public override ClientResult UpdateStatus ( RequestOptions ? options = null ) ;
5727- public override ValueTask < ClientResult > UpdateStatusAsync ( RequestOptions ? options = null ) ;
5728- }
5729- [ Experimental ( "OPENAI001" ) ]
5730- public class CreateBatchFileJobOperation : OperationResult {
5731- public string BatchId { get ; }
5732- public override ContinuationToken ? RehydrationToken { get ; protected set ; }
5733- public VectorStoreBatchFileJobStatus ? Status { get ; }
5734- public VectorStoreBatchFileJob ? Value { get ; }
5735- public string VectorStoreId { get ; }
5736- public virtual ClientResult Cancel ( RequestOptions ? options ) ;
5737- public virtual ClientResult < VectorStoreBatchFileJob > Cancel ( CancellationToken cancellationToken = default ) ;
5738- public virtual Task < ClientResult > CancelAsync ( RequestOptions ? options ) ;
5739- public virtual Task < ClientResult < VectorStoreBatchFileJob > > CancelAsync ( CancellationToken cancellationToken = default ) ;
5740- public virtual ClientResult GetFileBatch ( RequestOptions ? options ) ;
5741- public virtual ClientResult < VectorStoreBatchFileJob > GetFileBatch ( CancellationToken cancellationToken = default ) ;
5742- public virtual Task < ClientResult > GetFileBatchAsync ( RequestOptions ? options ) ;
5743- public virtual Task < ClientResult < VectorStoreBatchFileJob > > GetFileBatchAsync ( CancellationToken cancellationToken = default ) ;
5744- public static CreateBatchFileJobOperation Rehydrate ( VectorStoreClient client , ContinuationToken rehydrationToken , CancellationToken cancellationToken = default ) ;
5745- public static Task < CreateBatchFileJobOperation > RehydrateAsync ( VectorStoreClient client , ContinuationToken rehydrationToken , CancellationToken cancellationToken = default ) ;
5746- public override ClientResult UpdateStatus ( RequestOptions ? options = null ) ;
5747- public override ValueTask < ClientResult > UpdateStatusAsync ( RequestOptions ? options = null ) ;
5748- }
5749- [ Experimental ( "OPENAI001" ) ]
5750- public class CreateVectorStoreOperation : OperationResult {
5751- public override ContinuationToken ? RehydrationToken { get ; protected set ; }
5752- public VectorStoreStatus ? Status { get ; }
5753- public VectorStore ? Value { get ; }
5754- public string VectorStoreId { get ; }
5755- public virtual ClientResult GetVectorStore ( RequestOptions ? options ) ;
5756- public virtual ClientResult < VectorStore > GetVectorStore ( CancellationToken cancellationToken = default ) ;
5757- public virtual Task < ClientResult > GetVectorStoreAsync ( RequestOptions ? options ) ;
5758- public virtual Task < ClientResult < VectorStore > > GetVectorStoreAsync ( CancellationToken cancellationToken = default ) ;
5759- public static CreateVectorStoreOperation Rehydrate ( VectorStoreClient client , ContinuationToken rehydrationToken , CancellationToken cancellationToken = default ) ;
5760- public static Task < CreateVectorStoreOperation > RehydrateAsync ( VectorStoreClient client , ContinuationToken rehydrationToken , CancellationToken cancellationToken = default ) ;
5761- public override ClientResult UpdateStatus ( RequestOptions ? options = null ) ;
5762- public override ValueTask < ClientResult > UpdateStatusAsync ( RequestOptions ? options = null ) ;
5763- }
57645713 [ Experimental ( "OPENAI001" ) ]
57655714 public abstract class FileChunkingStrategy : IJsonModel < FileChunkingStrategy > , IPersistableModel < FileChunkingStrategy > {
57665715 public static FileChunkingStrategy Auto { get ; }
@@ -5852,23 +5801,21 @@ public class VectorStoreClient {
58525801 [ Experimental ( "OPENAI001" ) ]
58535802 public Uri Endpoint { get ; }
58545803 public ClientPipeline Pipeline { get ; }
5855- public virtual AddFileToVectorStoreOperation AddFileToVectorStore ( string vectorStoreId , BinaryContent content , bool waitUntilCompleted , RequestOptions options = null ) ;
5856- public virtual AddFileToVectorStoreOperation AddFileToVectorStore ( string vectorStoreId , string fileId , bool waitUntilCompleted , CancellationToken cancellationToken = default ) ;
5857- public virtual Task < AddFileToVectorStoreOperation > AddFileToVectorStoreAsync ( string vectorStoreId , BinaryContent content , bool waitUntilCompleted , RequestOptions options = null ) ;
5858- public virtual Task < AddFileToVectorStoreOperation > AddFileToVectorStoreAsync ( string vectorStoreId , string fileId , bool waitUntilCompleted , CancellationToken cancellationToken = default ) ;
5804+ public virtual ClientResult AddFileBatchToVectorStore ( string vectorStoreId , BinaryContent content , RequestOptions options = null ) ;
5805+ public virtual ClientResult < VectorStoreBatchFileJob > AddFileBatchToVectorStore ( string vectorStoreId , IEnumerable < string > fileIds , CancellationToken cancellationToken = default ) ;
5806+ public virtual Task < ClientResult > AddFileBatchToVectorStoreAsync ( string vectorStoreId , BinaryContent content , RequestOptions options = null ) ;
5807+ public virtual Task < ClientResult < VectorStoreBatchFileJob > > AddFileBatchToVectorStoreAsync ( string vectorStoreId , IEnumerable < string > fileIds , CancellationToken cancellationToken = default ) ;
5808+ public virtual ClientResult AddFileToVectorStore ( string vectorStoreId , BinaryContent content , RequestOptions options = null ) ;
5809+ public virtual ClientResult < VectorStoreFileAssociation > AddFileToVectorStore ( string vectorStoreId , string fileId , CancellationToken cancellationToken = default ) ;
5810+ public virtual Task < ClientResult > AddFileToVectorStoreAsync ( string vectorStoreId , BinaryContent content , RequestOptions options = null ) ;
5811+ public virtual Task < ClientResult < VectorStoreFileAssociation > > AddFileToVectorStoreAsync ( string vectorStoreId , string fileId , CancellationToken cancellationToken = default ) ;
58595812 public virtual ClientResult CancelBatchFileJob ( string vectorStoreId , string batchId , RequestOptions options ) ;
58605813 public virtual ClientResult < VectorStoreBatchFileJob > CancelBatchFileJob ( string vectorStoreId , string batchJobId , CancellationToken cancellationToken = default ) ;
58615814 public virtual Task < ClientResult > CancelBatchFileJobAsync ( string vectorStoreId , string batchId , RequestOptions options ) ;
58625815 public virtual Task < ClientResult < VectorStoreBatchFileJob > > CancelBatchFileJobAsync ( string vectorStoreId , string batchJobId , CancellationToken cancellationToken = default ) ;
5863- public virtual CreateBatchFileJobOperation CreateBatchFileJob ( string vectorStoreId , BinaryContent content , bool waitUntilCompleted , RequestOptions options = null ) ;
5864- public virtual CreateBatchFileJobOperation CreateBatchFileJob ( string vectorStoreId , IEnumerable < string > fileIds , bool waitUntilCompleted , CancellationToken cancellationToken = default ) ;
5865- public virtual Task < CreateBatchFileJobOperation > CreateBatchFileJobAsync ( string vectorStoreId , BinaryContent content , bool waitUntilCompleted , RequestOptions options = null ) ;
5866- public virtual Task < CreateBatchFileJobOperation > CreateBatchFileJobAsync ( string vectorStoreId , IEnumerable < string > fileIds , bool waitUntilCompleted , CancellationToken cancellationToken = default ) ;
5867- public virtual CreateVectorStoreOperation CreateVectorStore ( bool waitUntilCompleted , VectorStoreCreationOptions options = null , CancellationToken cancellationToken = default ) ;
5868- public virtual CreateVectorStoreOperation CreateVectorStore ( BinaryContent content , bool waitUntilCompleted , RequestOptions options = null ) ;
5816+ public virtual ClientResult < VectorStore > CreateVectorStore ( VectorStoreCreationOptions options = null , CancellationToken cancellationToken = default ) ;
58695817 public virtual ClientResult CreateVectorStore ( BinaryContent content , RequestOptions options = null ) ;
5870- public virtual Task < CreateVectorStoreOperation > CreateVectorStoreAsync ( bool waitUntilCompleted , VectorStoreCreationOptions options = null , CancellationToken cancellationToken = default ) ;
5871- public virtual Task < CreateVectorStoreOperation > CreateVectorStoreAsync ( BinaryContent content , bool waitUntilCompleted , RequestOptions options = null ) ;
5818+ public virtual Task < ClientResult < VectorStore > > CreateVectorStoreAsync ( VectorStoreCreationOptions options = null , CancellationToken cancellationToken = default ) ;
58725819 public virtual Task < ClientResult > CreateVectorStoreAsync ( BinaryContent content , RequestOptions options = null ) ;
58735820 public virtual ClientResult DeleteVectorStore ( string vectorStoreId , RequestOptions options ) ;
58745821 public virtual ClientResult < VectorStoreDeletionResult > DeleteVectorStore ( string vectorStoreId , CancellationToken cancellationToken = default ) ;
0 commit comments