Class FileService
Inherited Members
CRUDService<Anthropic, AnthropicFile, RESTUploadRequest, CursorQuery>._endpoint
CRUDService<Anthropic, AnthropicFile, RESTUploadRequest, CursorQuery>._endpointWithId
CRUDService<Anthropic, AnthropicFile, RESTUploadRequest, CursorQuery>.CreateAsync(RESTRequestOptions)
CRUDService<Anthropic, AnthropicFile, RESTUploadRequest, CursorQuery>.CreateAsync(RESTUploadRequest, RESTRequestOptions)
CRUDService<Anthropic, AnthropicFile, RESTUploadRequest, CursorQuery>.RetrieveAsync(string, RESTRequestOptions)
CRUDService<Anthropic, AnthropicFile, RESTUploadRequest, CursorQuery>.UpdateAsync(string, RESTUploadRequest, RESTRequestOptions)
CRUDService<Anthropic, AnthropicFile, RESTUploadRequest, CursorQuery>.UpdateAsync(string, IEnumerable<UpdateMask>, RESTRequestOptions)
CRUDService<Anthropic, AnthropicFile, RESTUploadRequest, CursorQuery>.DeleteAsync(string, RESTRequestOptions)
CRUDService<Anthropic, AnthropicFile, RESTUploadRequest, CursorQuery>.ListAsync(CursorQuery, RESTRequestOptions)
CRUDService<Anthropic, AnthropicFile, RESTUploadRequest, CursorQuery>.ThrowIfTRequestIsObject(CRUDOperation)
CRUDService<Anthropic, AnthropicFile, RESTUploadRequest, CursorQuery>.ThrowIfTQueryIsObject()
CRUDServiceBase<Anthropic>.client
CRUDServiceBase<Anthropic>.IsBetaService
CRUDServiceBase<Anthropic>.CustomApiKey
CRUDServiceBase<Anthropic>.CustomBetaHeaders
Namespace: Glitch9.AIDevKit.Anthropic.Services
Assembly: .dll
Syntax
public class FileService : CRUDService<Anthropic, AnthropicFile, RESTUploadRequest, CursorQuery>
Constructors
FileService(Anthropic)
Declaration
public FileService(Anthropic client)
Parameters
Type | Name | Description |
---|---|---|
Anthropic | client |
Methods
DownloadAsync(string, RESTRequestOptions)
Declaration
public UniTask<AnthropicFile> DownloadAsync(string fileId, RESTRequestOptions options = null)
Parameters
Type | Name | Description |
---|---|---|
string | fileId | |
RESTRequestOptions | options |
Returns
Type | Description |
---|---|
UniTask<AnthropicFile> |
UploadAsync(IFile, RESTRequestOptions)
Declaration
public UniTask<AnthropicFile> UploadAsync(IFile file, RESTRequestOptions options = null)
Parameters
Type | Name | Description |
---|---|---|
IFile | file | |
RESTRequestOptions | options |
Returns
Type | Description |
---|---|
UniTask<AnthropicFile> |