ContainerFilesResource class

Resource for container file operations.

Container files are files that have been added to a container for use in isolated execution environments.

Inheritance

Constructors

ContainerFilesResource({required OpenAIConfig config, required Client httpClient, required InterceptorChain interceptorChain, required RequestBuilder requestBuilder, void ensureNotClosed()?})
Creates a ContainerFilesResource.

Properties

config OpenAIConfig
Client configuration.
finalinherited
ensureNotClosed → void Function()?
Callback to check if the client has been closed.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
httpClient → Client
HTTP client for making requests.
finalinherited
interceptorChain InterceptorChain
Interceptor chain for request/response processing.
finalinherited
requestBuilder → RequestBuilder
Request builder for constructing HTTP requests.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
streamClientFactory → Client Function()?
Factory for creating dedicated HTTP clients for streaming requests.
finalinherited

Methods

create(String containerId, {List<int>? bytes, String? filename, String? fileId}) Future<ContainerFile>
Creates a file in a container.
delete(String containerId, String fileId) Future<DeleteContainerFileResponse>
Deletes a file from a container.
list(String containerId, {int? limit, String? order, String? after, String? before}) Future<ContainerFileList>
Lists files in a container.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
retrieve(String containerId, String fileId) Future<ContainerFile>
Retrieves a file from a container.
retrieveContent(String containerId, String fileId) Future<Uint8List>
Retrieves the content of a file from a container.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited