Partilhar via


CodeInterpreterToolResource Class

Definition

A set of resources that are used by the code_interpreter tool.

public class CodeInterpreterToolResource : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.CodeInterpreterToolResource>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.CodeInterpreterToolResource>
type CodeInterpreterToolResource = class
    interface IJsonModel<CodeInterpreterToolResource>
    interface IPersistableModel<CodeInterpreterToolResource>
Public Class CodeInterpreterToolResource
Implements IJsonModel(Of CodeInterpreterToolResource), IPersistableModel(Of CodeInterpreterToolResource)
Inheritance
CodeInterpreterToolResource
Implements

Constructors

CodeInterpreterToolResource()

Initializes a new instance of CodeInterpreterToolResource.

Properties

DataSources

The data sources to be used. This option is mutually exclusive with fileIds.

FileIds

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

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<CodeInterpreterToolResource>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<CodeInterpreterToolResource>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CodeInterpreterToolResource>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<CodeInterpreterToolResource>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<CodeInterpreterToolResource>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to