From 155c059153be729ed51b6e7382197d2c2dfa3a57 Mon Sep 17 00:00:00 2001 From: sergiopaniego Date: Mon, 13 Jan 2025 19:08:33 +0100 Subject: [PATCH] Updated type hint in calculate function --- 8_agents/notebooks/agents.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/8_agents/notebooks/agents.ipynb b/8_agents/notebooks/agents.ipynb index 7a09dec6..63dfc0cd 100644 --- a/8_agents/notebooks/agents.ipynb +++ b/8_agents/notebooks/agents.ipynb @@ -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",