diff --git a/kwaiagents/utils/function_utils.py b/kwaiagents/utils/function_utils.py index 27120e7..f9e83ec 100644 --- a/kwaiagents/utils/function_utils.py +++ b/kwaiagents/utils/function_utils.py @@ -15,7 +15,7 @@ def transform_to_openai_function(func): } returns = { - "description": parsed.returns.description if hasattr(parsed.returns, "returns") else "", + "description": parsed.returns.description if hasattr(parsed.returns, "description") else "", "type": parsed.returns.type_name if hasattr(parsed.returns, "type_name") else "" }