Mul test, valdidation works, but printing it doesnt

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2024-08-05 14:09:06 +02:00
parent 52a180b936
commit abd6320ce9
6 changed files with 99 additions and 31 deletions

11
libs/tools.py Normal file
View 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