Table of Contents

Class FileSearchResources

Namespace
OpenAI
Assembly
OpenAI-DotNet.dll

FileSearch resources.

public sealed class FileSearchResources
Inheritance
FileSearchResources
Inherited Members

Constructors

FileSearchResources()

public FileSearchResources()

FileSearchResources(VectorStoreRequest)

A helper to create a vector store with file_ids and attach it to an assistant/thread. There can be a maximum of 1 vector store attached to the assistant/thread.

public FileSearchResources(VectorStoreRequest vectorStore = null)

Parameters

vectorStore VectorStoreRequest

VectorStoreRequest.

FileSearchResources(string)

The vector store attached to this assistant/thread. There can be a maximum of 1 vector store attached to the assistant/thread.

public FileSearchResources(string vectorStoreId = null)

Parameters

vectorStoreId string

Properties

VectorStoreIds

[JsonInclude]
[JsonPropertyName("vector_store_ids")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<string> VectorStoreIds { get; }

Property Value

IReadOnlyList<string>

VectorStores

[JsonInclude]
[JsonPropertyName("vector_stores")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<VectorStoreRequest> VectorStores { get; }

Property Value

IReadOnlyList<VectorStoreRequest>

Operators

implicit operator FileSearchResources(VectorStoreRequest)

public static implicit operator FileSearchResources(VectorStoreRequest request)

Parameters

request VectorStoreRequest

Returns

FileSearchResources