File size: 322 Bytes
1b8aef5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
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)
|