Annotation Interface ImageUrl


@Documented @Retention(RUNTIME) @Target(PARAMETER) public @interface ImageUrl
Sends the image at the URL of a parameter of an AiService method to the model, as a ImageContent, together with the user message.

The parameter is a String, a URI or a URL, or a collection of them to send several.

Like any content argument of a LangChain4j AI service, the parameter must also be annotated with UserMessage: the content is added to the user message, after its text.

Since:
2.4.0