Python
from datagrid_ai import Datagrid client = Datagrid( api_key="My API Key", ) file_object = client.files.create( file=b"raw file contents", ) print(file_object.id)
{ "object": "file", "id": "<string>", "filename": "<string>", "created_at": "2023-11-07T05:31:56Z", "media_type": "<string>" }
Create files which can be passed as input to agents.
file