Skip to content

Commit

Permalink
feat: increase return limit for base tools (#838)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahwooders authored Jan 29, 2025
1 parent d72622b commit 52d2409
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions letta/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@

# Function return limits
FUNCTION_RETURN_CHAR_LIMIT = 6000 # ~300 words
BASE_FUNCTION_RETURN_CHAR_LIMIT = 1000000 # very high (we rely on implementation)

MAX_PAUSE_HEARTBEATS = 360 # in min

Expand Down
3 changes: 2 additions & 1 deletion letta/services/tool_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import warnings
from typing import List, Optional

from letta.constants import BASE_MEMORY_TOOLS, BASE_TOOLS, MULTI_AGENT_TOOLS
from letta.constants import BASE_FUNCTION_RETURN_CHAR_LIMIT, BASE_MEMORY_TOOLS, BASE_TOOLS, MULTI_AGENT_TOOLS
from letta.functions.functions import derive_openai_json_schema, load_function_set
from letta.log import get_logger
from letta.orm.enums import ToolType
Expand Down Expand Up @@ -200,6 +200,7 @@ def upsert_base_tools(self, actor: PydanticUser) -> List[PydanticTool]:
tags=tags,
source_type="python",
tool_type=tool_type,
return_char_limit=BASE_FUNCTION_RETURN_CHAR_LIMIT,
),
actor=actor,
)
Expand Down

0 comments on commit 52d2409

Please sign in to comment.