getFileContent method

  1. @override
Future<List<int>> getFileContent(
  1. String fileId
)
override

Get file metadata

API Reference: https://docs.anthropic.com/en/api/files-content

Downloads the raw content of a file as bytes.

Implementation

@override
Future<List<int>> getFileContent(String fileId) async {
  return await client.getRaw('files/$fileId/content');
}