Michele De Stefano
Adapted the code so that it can run locally
1b8aef5
raw
history blame contribute delete
322 Bytes
from langchain_core.tools import tool
@tool(parse_docstring=True, return_direct=True)
def sum_list(numbers: list[float]) -> float:
"""
Sums the provided input numbers.
Args:
numbers: The sequence of numbers to sum.
Returns:
The sum of the input numbers.
"""
return sum(numbers)