![]() |
Ollama4j
A Java library (wrapper/binding) for Ollama server.
|
Public Member Functions | |
Class<?>[] | providers () |
Annotation to mark a class as an Ollama tool service.
When a class is annotated with @OllamaToolService
, the method Ollama#registerAnnotatedTools()
can be used to automatically register all tool provider classes specified in the providers()
array. All methods in those provider classes that are annotated with ToolSpec
will be registered as tools.
Definition at line 28 of file OllamaToolService.java.
Class<?>[] io.github.ollama4j.tools.annotations.OllamaToolService.providers | ( | ) |
Specifies the provider classes whose methods annotated with ToolSpec
should be registered as tools. Each provider class must have a public no-argument constructor.