Implement tool calling for Ollama and include examples
Description
This PR implements tool calling functionality from LLMInterface for Ollama. Also provides an example for it.
Type of Change
- [x] New feature
- [ ] Bug fix
- [ ] Breaking change
- [ ] Documentation update
- [ ] Project configuration change
Complexity
Complexity: Medium
How Has This Been Tested?
- [x] Unit tests
- [ ] E2E tests
- [x] Manual tests
Checklist
The following requirements should have been met (depending on the changes in the branch):
- [ ] Documentation has been updated
- [x] Unit tests have been updated
- [ ] E2E tests have been updated
- [x] Examples have been updated
- [ ] New files have copyright header
- [x] CLA (https://neo4j.com/developer/cla/) has been signed
- [x] CHANGELOG.md updated if appropriate
@CodiumAI-Agent /update_changelog
Changelog updates: 🔄
2025-10-25 *
Added
- Tool calling support for Ollama in LLMInterface, including sync/async APIs
- Example demonstrating Ollama tool calls and updated examples index
Tested
- Unit tests and manual testing for new Ollama tool calling functionality
to commit the new content to the CHANGELOG.md file, please type: '/update_changelog --pr_update_changelog.push_changelog_changes=true'
Hi @kalrasamridhi7 , Thanks for this work! I saw you signed the CLA (thanks for this too), we're going to add you to the whitelist and process with the review shortly.
Changelog updates: 🔄
Added
- Tool calling support for Ollama in the LLM interface, with synchronous and asynchronous examples.
- Unit tests covering Ollama tool calling behavior.
to commit the new content to the CHANGELOG.md file, please type: '/update_changelog --pr_update_changelog.push_changelog_changes=true'
Hi @stellasia, thanks for getting back. Awaiting review!