List and Delete agent files
Get Agent Files
The agent_files() function allows you to retrieve the files associated with a specific agent in Blipper. This function requires the following parameter:
- agent_id (type: str): The ID of the agent for which you want to retrieve the files, provided as a string.
1 2 3 4 5 | |
Response: The function returns a list of dictionaries representing the files associated with the agent. Each dictionary contains the following keys:
- id (type: str): The ID of the file.
- file (type: str): The path where the file is stored.
Example Response Format:
[
{"id": "file_id_1", "file": "/path/to/file_1.pdf"},
{"id": "file_id_2", "file": "/path/to/file_2.pdf"},
// More files if available...
]
If the agent does not have any files associated with it, an empty list is returned.
Delete Agent File
The delete_agent_file() function allows you to delete a file associated with a specific agent in Blipper. This function requires the following parameters:
- agent_id (type: str): The ID of the agent from which you want to delete the file, provided as a string.
- file_id (type: str): The ID of the file you want to delete, provided as a string.
1 2 3 4 5 | |