Create a dictionary that can be part of a message content list.
Parses an image string from a dictionary with the correct format.
Parses an string from a dictionary or string with the correct format.
Encodes image bytes into a b64 encoded string.
Returns a custom user agent header.