Table of Contents

Class FileService

public class FileService : CrudService<AnthropicClient, RESTUploadRequest, AnthropicFile, DeletionStatus, CursorQuery>
Inheritance
object
FileService

Constructors

FileService(AnthropicClient)

public FileService(AnthropicClient client)

Parameters

client AnthropicClient

Methods

DownloadAsync(string, RESTOptions)

public UniTask<AnthropicFile> DownloadAsync(string fileId, RESTOptions options = null)

Parameters

fileId string
options RESTOptions

Returns

UniTask<AnthropicFile>

GetRequestParams()

protected override IRequestParam[] GetRequestParams()

Returns

IRequestParam[]

UploadAsync(IFile, RESTOptions)

public UniTask<AnthropicFile> UploadAsync(IFile file, RESTOptions options = null)

Parameters

file IFile
options RESTOptions

Returns

UniTask<AnthropicFile>