Skip to content

Commit

Permalink
Updated type hint in calculate function
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiopaniego committed Jan 13, 2025
1 parent 730f312 commit 155c059
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 8_agents/notebooks/agents.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@
"outputs": [],
"source": [
"from smolagents import CodeAgent, tool\n",
"from typing import Union, List\n",
"from typing import Union\n",
"\n",
"@tool\n",
"def calculate(operation: str, numbers: List[float]) -> float:\n",
"def calculate(operation: str, numbers: object) -> float:\n",
" \"\"\"Performs basic mathematical operations on a list of numbers.\n",
" \n",
" Args:\n",
Expand Down

0 comments on commit 155c059

Please sign in to comment.