diff --git a/semantic_router/utils/function_call.py b/semantic_router/utils/function_call.py index cedd9b6ecd86131b630cf6d4921848604dc88fa0..80a65d040ef677566659593226f6702ba7bcb398 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}