Get Multimodal Message • AI Agent SDK
get_multimodal_message: Build multimodal message content for LLM with text and images.
get_multimodal_message
Function
</div>
This function is defined in the agents module.
Build multimodal message content for LLM with text and images.
DRY helper – replaces duplicate _get_multimodal_message in aexecute_task/execute_task.
Signature
def get_multimodal_message(text_prompt: str, images: list) -> listParameters
ParamField
strThe text content of the message
ParamField
listList of image paths (local or URL)
Returns
ResponseField
listList of content items for multimodal LLM message
Uses
existssplitextprocess_videoencode_file_to_base64ext.lstrip
Source
View on GitHubpraisonaiagents/agents/agents.py at line 86