From c340e8cd3ba2859f32a5f1ffda8126f1193af29f Mon Sep 17 00:00:00 2001 From: ochafik Date: Fri, 29 Mar 2024 16:24:59 +0000 Subject: [PATCH] Update example_weather_tools.py --- examples/agent/tools/example_weather_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/agent/tools/example_weather_tools.py b/examples/agent/tools/example_weather_tools.py index 0436ac1ab..0154d966d 100644 --- a/examples/agent/tools/example_weather_tools.py +++ b/examples/agent/tools/example_weather_tools.py @@ -3,7 +3,7 @@ import random from typing import Literal -def _weather(w: str, temp, f): +def _weather(w: str, temp, format): return f'{w}, {temp}C' if format == 'celsius' \ else f'{w}, {(temp * 9/5) + 32}F'