Ollama4j
A Java library (wrapper/binding) for Ollama server.
Loading...
Searching...
No Matches
io.github.ollama4j.tools.annotations.OllamaToolService Interface Reference

Public Member Functions

Class<?>[] providers ()
 

Detailed Description

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.

Member Function Documentation

◆ providers()

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.

Returns
an array of provider classes to be used for tool registration

The documentation for this interface was generated from the following file: