Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: remove the missing arg `name` from create_tool in client.py (#2428)
Azin Asgarianf1822ccfe634
diff --git a/letta/client/client.py b/letta/client/client.pyindex 4405a167d..ac716499a 100644--- a/letta/client/client.py+++ b/letta/client/client.py@@ -2937,7 +2937,6 @@ class LocalClient(AbstractClient):Args:func (callable): The function to create a tool for.- name: (str): Name of the tool (must be unique per-user.)tags (Optional[List[str]], optional): Tags for the tool. Defaults to None.description (str, optional): The description.return_char_limit (int): The character limit for the tool's return value. Defaults to FUNCTION_RETURN_CHAR_LIMIT.@@ -2950,6 +2949,7 @@ class LocalClient(AbstractClient):# parse source code/schemasource_code = parse_source_code(func)source_type = "python"+ name = func.__name__ # Initialize name using function's __name__if not tags:tags = []