Skip to content

Conversation

seeseemelk
Copy link
Contributor

This change allows one to call registerAnnotatedTools() and pass a particular object instance instead of only searching for the caller's class' @OllamaToolService.

This is particular useful when the actual tool service object's lifetime is managed by a dependency injection framework like Spring or Guice.

@amithkoujalgi amithkoujalgi merged commit a06a402 into ollama4j:main Jan 26, 2025
1 check passed
@amithkoujalgi
Copy link
Collaborator

Thanks @seeseemelk!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants