ImagePromptValue#

class langchain_core.prompt_values.ImagePromptValue[source]#

Bases: PromptValue

Image prompt value.

param image_url: ImageURL [Required]#

Image URL.

param type: Literal['ImagePromptValue'] = 'ImagePromptValue'#
to_messages() list[BaseMessage][source]#

Return prompt (image URL) as messages.

Return type:

list[BaseMessage]

to_string() str[source]#

Return prompt (image URL) as string.

Return type:

str