Table of Contents

Class CodeInterpreterFiles

Namespace
AntRunnerLib
Assembly
AntRunnerLib.dll

Provides methods to create code interpreter files for an assistant.

public class CodeInterpreterFiles
Inheritance
System.Object
CodeInterpreterFiles
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()

Methods

CreateCodeInterpreterFiles(AssistantCreateRequest, AzureOpenAIConfig)

Creates code interpreter files for a given assistant by uploading them to an OpenAI storage.

public static async Task<List<string>> CreateCodeInterpreterFiles(AssistantCreateRequest assistant, AzureOpenAIConfig azureOpenAIConfig)

Parameters

assistant AssistantCreateRequest

The AssistantCreateRequest object containing assistant details.

azureOpenAIConfig AzureOpenAIConfig

The configuration for Azure OpenAI. Can be null.

Returns

Task<List<System.String>>

A task that represents the asynchronous operation. The task result contains a list of uploaded file IDs.

RetrieveFileContent(String, AzureOpenAIConfig)

public static async Task<FileContentResponse<byte[]>> RetrieveFileContent(string fileId, AzureOpenAIConfig azureOpenAIConfig)

Parameters

fileId System.String
azureOpenAIConfig AzureOpenAIConfig

Returns

Task<FileContentResponse<System.Byte[]>>