Table of Contents

Class CodeInterpreterResources

Namespace
OpenAI
Assembly
OpenAI-DotNet.dll

CodeInterpreter resources.

public sealed class CodeInterpreterResources
Inheritance
CodeInterpreterResources
Inherited Members

Constructors

CodeInterpreterResources()

public CodeInterpreterResources()

CodeInterpreterResources(IReadOnlyList<string>)

Constructor.

public CodeInterpreterResources(IReadOnlyList<string> fileIds)

Parameters

fileIds IReadOnlyList<string>

A list of file IDs made available to the CodeInterpreter tool. There can be a maximum of 20 files associated with the tool.

CodeInterpreterResources(string)

public CodeInterpreterResources(string fileId)

Parameters

fileId string

Properties

FileIds

A list of file IDs made available to the CodeInterpreter tool. There can be a maximum of 20 files associated with the tool.

[JsonInclude]
[JsonPropertyName("file_ids")]
public IReadOnlyList<string> FileIds { get; }

Property Value

IReadOnlyList<string>

Operators

implicit operator CodeInterpreterResources(List<string>)

public static implicit operator CodeInterpreterResources(List<string> fileIds)

Parameters

fileIds List<string>

Returns

CodeInterpreterResources

implicit operator CodeInterpreterResources(string)

public static implicit operator CodeInterpreterResources(string fileId)

Parameters

fileId string

Returns

CodeInterpreterResources