diff --git a/letta/llm_api/anthropic_client.py b/letta/llm_api/anthropic_client.py index cc9e4493..d83c25c5 100644 --- a/letta/llm_api/anthropic_client.py +++ b/letta/llm_api/anthropic_client.py @@ -680,7 +680,7 @@ def _clean_property_schema(prop_schema: dict) -> dict: if key not in ["type", "default"]: # Skip 'default' field if key == "properties" and isinstance(value, dict): # Recursively clean nested properties - cleaned["properties"] = {k: clean_property_schema(v) if isinstance(v, dict) else v for k, v in value.items()} + cleaned["properties"] = {k: _clean_property_schema(v) if isinstance(v, dict) else v for k, v in value.items()} else: cleaned[key] = value