Annotation Interface PdfUrl


@Retention(RUNTIME) @Target(PARAMETER) public @interface PdfUrl
This annotation is useful when an AiService is meant to describe an image as the value of the method parameter annotated with @PdfUrl will be used as an PdfFileContent.

The following code contains an example of how this can be used:

 invalid input: '{@code
 @RegisterAiService(chatMemoryProviderSupplier = RegisterAiService.NoChatMemoryProviderSupplier.class)
 public interface PdfDescriber {

     @UserMessage("Analyze the following content")
     String describe(@PdfUrl String url);
 }
 </pre>

 There can be at most one instance of {@code ImageUrl} per method and the supported types are the following:
 <ul>
 <li>String</li>
 <li>URL</li>
 <li>URI</li>
 <li>dev.langchain4j.data.pdf.PdfFile</li>
 </ul>'