Skip to content

A production-ready calculator tool integration for LangChain applications, featuring robust error handling, comprehensive operations, and seamless LLM integration.

License

Notifications You must be signed in to change notification settings

muhdasif1/LangChain-Function-Tool-Calling-Calculator-Project-3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

LangChain-Function-Tool-Calling-Calculator-Project-3

A production-ready calculator tool integration for LangChain applications, featuring robust error handling, comprehensive operations, and seamless LLM integration.

Features

Four Basic Operations: Add, Subtract, Multiply, Divide

Advanced Error Handling: Zero division protection, type validation

Model Agnostic: Works with any LangChain-compatible LLM

Usage Analytics: Token tracking and performance metrics

Safety Filters: Built-in content moderation

Installation

pip install langchain-google-genai langchain python-dotenv

Advanced Features

Batch Processing: Handle multiple operations in a single request

Unit Conversion: Automatic metric/imperial conversions

Historical Tracking: Maintain calculation history

Format Options: Decimal, fraction, or scientific notation outputs

About

A production-ready calculator tool integration for LangChain applications, featuring robust error handling, comprehensive operations, and seamless LLM integration.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published