Skip to main content

get_multimodal_message

Function
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) -> list

Parameters

text_prompt
str
required
The text content of the message
images
list
required
List of image paths (local or URL)

Returns

Returns
list
List of content items for multimodal LLM message