file#
- class besser.agent.core.file.File(file_name=None, file_type=None, file_base64=None, file_path=None, file_data=None)[source]#
Bases:
object
A representation of files sent and received by an agent.
Files are used to encapsulate information about the files exchanged in an agent conversation. They include attributes such as the file’s name, type, and base64 representation. Note that at least one of path, data or base64 need to be set.
- Parameters:
- property base64#
Getter for the base64 representation of the file.
- get_json_string()[source]#
Returns a stringified dictionary containing the attributes of the File object.
- property name#
Getter for the name of the file.
- property type#
Getter for the type of the file.