From 129839ac73bde69070e9d6e28706e137842710da Mon Sep 17 00:00:00 2001 From: hananel <hananel.hadad@accenture.com> Date: Thu, 11 Jan 2024 18:06:21 +0200 Subject: [PATCH] fix example output to be reasonable --- semantic_router/utils/function_call.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/semantic_router/utils/function_call.py b/semantic_router/utils/function_call.py index cedd9b6e..80a65d04 100644 --- a/semantic_router/utils/function_call.py +++ b/semantic_router/utils/function_call.py @@ -60,15 +60,16 @@ def extract_function_inputs( {{ "name": "get_weather", "description": "Useful to get the weather in a specific location", - "signature": "(location: str, degree: str) -> str", - "output": "<class 'str'>", + "signature": "(location: str, degree: str) -> float", + "output": "<class 'float'>", }} - + + Result: {{ - "location": "London", - "degree": "Celsius", + "location": "Hawaii", + "degree": "Kelvin", }} - + Input: query: {query} schema: {function_schema} -- GitLab