From 2bd8965518cb11d0dd285123c3a3791761c7d7c9 Mon Sep 17 00:00:00 2001 From: Jason Tsay Date: Fri, 6 Feb 2026 12:03:36 -0500 Subject: [PATCH] fix: bug in sparc type assignment Signed-off-by: Jason Tsay --- altk/pre_tool/sparc/function_calling/pipeline/adapters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/altk/pre_tool/sparc/function_calling/pipeline/adapters.py b/altk/pre_tool/sparc/function_calling/pipeline/adapters.py index 4826813..d8b55ee 100644 --- a/altk/pre_tool/sparc/function_calling/pipeline/adapters.py +++ b/altk/pre_tool/sparc/function_calling/pipeline/adapters.py @@ -56,7 +56,7 @@ def get_tools_inventory_summary(self) -> List[Dict[str, Any]]: "tool_name": spec.function.name, "tool_description": spec.function.description, "tool_parameters": { - prop_name: prop_d["type"] + prop_name: prop_d.get("type", "object") for prop_name, prop_d in spec.function.parameters.get( "properties", {} ).items()