Files
test-small-llms/libs/tools.py
2024-08-05 14:09:06 +02:00

12 lines
244 B
Python

from langchain.tools import tool
@tool
def add(a: float, b: float) -> float:
"""Adds a+b and retuns the sum"""
return a+b
@tool
def multiply(a: float, b: float) -> float:
"""Multiplies a*b and retuns the product"""
return a*b