Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ollama: Calculator tool use example #1647

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

akashjss
Copy link

@akashjss akashjss commented Dec 27, 2024

Description

Please include:

  • Summary of changes: A cookbook example of calculator tool use with Ollama.

Fixes # (issue)

Type of change

Please check the options that are relevant:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Model update
  • Infrastructure change

Checklist

  • My code follows Phidata's style guidelines and best practices
  • I have performed a self-review of my code
  • I have added docstrings and comments for complex logic
  • My changes generate no new warnings or errors
  • I have added cookbook examples for my new addition (if needed)
  • I have updated requirements.txt/pyproject.toml (if needed)
  • I have verified my changes in a clean environment

Additional Notes

Include any deployment notes, performance implications, or other relevant information:

@akashjss akashjss changed the title Ollama: Calculator tool use exanple Ollama: Calculator tool use example Dec 27, 2024
@ysolanky
Copy link
Contributor

@akashjss thank you for the PR! But adding the calculator example to Ollama cookbooks would be inconsistent with the other providers. We try and keep all example agents for the providers the same.

Example usage of calculator tool can be found over here: https://github.com/phidatahq/phidata/blob/main/cookbook/tools/calculator_tools.py

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.

3 participants