Get agent file
Gets one of an agent's files: its name, type and size, and what the agent's model reads of it.
Gets one of an agent's files: its name, type and size, and what the agent's model reads of it.
bearerAuthorizationBearer <token>An access token, or an API key.
project*stringThe project's ID.
^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$agent*stringThe agent's ID.
^ags_[0-7][0-9a-hjkmnp-tv-z]{25}$file*stringThe file's ID.
^fil_[0-7][0-9a-hjkmnp-tv-z]{25}$OK
application/json- response
createTime*stringWhen it was uploaded.
date-timecreator*stringWho uploaded it, such as user:usr_….
filename*stringIts file name.
height?integerAn image's height, in pixels.
int32mediaType*stringIts media type, such as image/png or application/pdf.
modelReads*stringWhat the agent's model reads of the file in a message: CONTENT, the file itself, as an image or a document, which models that read neither get a placeholder for; or DESCRIPTION, its name, media type, size and ID alone, by which the agent's tools open it.
"CONTENT""DESCRIPTION"name*stringResource name, projects/{project_id}/agents/{agent_id}/files/{file_id}, by which a message's file part attaches it.
sha256*stringThe SHA-256 of its content, in hexadecimal.
sizeBytes*integerIts size, in bytes.
int64width?integerAn image's width, in pixels.
int32curl -X GET 'https://api.kosem.ai/v1/projects/string/agents/string/files/string'{
"createTime": "2019-08-24T14:15:22Z",
"creator": "string",
"filename": "string",
"height": 0,
"mediaType": "string",
"modelReads": "CONTENT",
"name": "string",
"sha256": "string",
"sizeBytes": 0,
"width": 0
}