Skip to main content

encode_file_to_base64

Function
This function is defined in the agents module.
Base64-encode a file.

Signature

def encode_file_to_base64(file_path: str) -> str

Parameters

file_path
str
required
No description available.

Returns

Returns
str
The result of the operation.

Uses

  • decode
  • base64.b64encode
  • f.read

Used By

Source

View on GitHub

praisonaiagents/agents/agents.py at line 38