Mul test, valdidation works, but printing it doesnt
This commit is contained in:
11
libs/tools.py
Normal file
11
libs/tools.py
Normal file
@@ -0,0 +1,11 @@
|
||||
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
|
||||
Reference in New Issue
Block a user