Usage Example:
Maintain the conversation history in a local variable (List of Message Structure).
When the user sends a new message (text or uploads an image):
Append the user's message (with appropriate Role, MessageType, and Content) to the local history variable.
Call the Completions action, passing the API key, the updated history variable, and the desired model(s).
On successful return:
Display the Response text to the user.
Update your local history variable with the returned MessageHistory output to include the AI's response for the next turn.