Class CodeInterpreterFiles
- Namespace
- Ant
Runner Lib
- Assembly
- AntRunnerLib.dll
Provides methods to create code interpreter files for an assistant.
- Inheritance
-
System.
Object CodeInterpreter Files
- Inherited Members
-
System.
Object. Equals(System. Object) System.Object. Equals(System. Object, System. Object) System.Object. Get Hash Code() System.Object. Get Type() System.Object. Memberwise Clone() System.Object. Reference Equals(System. Object, System. Object) System.Object. To String()
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
AssistantCreate Request The AssistantCreateRequest object containing assistant details.
azureOpenAIConfig
AzureOpen AIConfig 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
AzureOpen AIConfig
Returns
- Task<File
Content <System.Response Byte []>>