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
CodeInterpreterResourcesfileSearch
FileSearchResources
ToolResources(FileSearchResources, CodeInterpreterResources)
Constructor.
public ToolResources(FileSearchResources fileSearch = null, CodeInterpreterResources codeInterpreter = null)
Parameters
fileSearch
FileSearchResourcescodeInterpreter
CodeInterpreterResources
Properties
CodeInterpreter
[JsonInclude]
[JsonPropertyName("code_interpreter")]
public CodeInterpreterResources CodeInterpreter { get; }
Property Value
FileSearch
[JsonInclude]
[JsonPropertyName("file_search")]
public FileSearchResources FileSearch { get; }
Property Value
Operators
implicit operator ToolResources(CodeInterpreterResources)
public static implicit operator ToolResources(CodeInterpreterResources codeInterpreter)
Parameters
codeInterpreter
CodeInterpreterResources
Returns
implicit operator ToolResources(FileSearchResources)
public static implicit operator ToolResources(FileSearchResources fileSearch)
Parameters
fileSearch
FileSearchResources
Returns
implicit operator ToolResources(VectorStoreRequest)
public static implicit operator ToolResources(VectorStoreRequest vectorStoreRequest)
Parameters
vectorStoreRequest
VectorStoreRequest