Table of Contents

Class ToolResources

Namespace
OpenAI
Assembly
OpenAI-DotNet.dll

A set of resources to be used by Assistants and Threads. The resources are specific to the type of tool. For example, the CodeInterpreter requres a list of file ids, While the FileSearch requires a list vector store ids.

public sealed class ToolResources
Inheritance
ToolResources
Inherited Members

Constructors

ToolResources()

public ToolResources()

ToolResources(CodeInterpreterResources, FileSearchResources)

Constructor.

public ToolResources(CodeInterpreterResources codeInterpreter = null, FileSearchResources fileSearch = null)

Parameters

codeInterpreter CodeInterpreterResources

CodeInterpreterResources.

fileSearch FileSearchResources

FileSearchResources.

ToolResources(FileSearchResources, CodeInterpreterResources)

Constructor.

public ToolResources(FileSearchResources fileSearch = null, CodeInterpreterResources codeInterpreter = null)

Parameters

fileSearch FileSearchResources

FileSearchResources.

codeInterpreter CodeInterpreterResources

CodeInterpreterResources.

Properties

CodeInterpreter

[JsonInclude]
[JsonPropertyName("code_interpreter")]
public CodeInterpreterResources CodeInterpreter { get; }

Property Value

CodeInterpreterResources

FileSearch

[JsonInclude]
[JsonPropertyName("file_search")]
public FileSearchResources FileSearch { get; }

Property Value

FileSearchResources

Operators

implicit operator ToolResources(CodeInterpreterResources)

public static implicit operator ToolResources(CodeInterpreterResources codeInterpreter)

Parameters

codeInterpreter CodeInterpreterResources

Returns

ToolResources

implicit operator ToolResources(FileSearchResources)

public static implicit operator ToolResources(FileSearchResources fileSearch)

Parameters

fileSearch FileSearchResources

Returns

ToolResources

implicit operator ToolResources(VectorStoreRequest)

public static implicit operator ToolResources(VectorStoreRequest vectorStoreRequest)

Parameters

vectorStoreRequest VectorStoreRequest

Returns

ToolResources