feat: increase return limit for base tools (#838)

This commit is contained in:
Sarah Wooders
2025-01-29 15:31:39 -08:00
committed by GitHub
parent 986397e7d0
commit 05ba2e4b39
2 changed files with 3 additions and 1 deletions

View File

@@ -150,6 +150,7 @@ CORE_MEMORY_BLOCK_CHAR_LIMIT: int = 5000
# 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

View File

@@ -2,7 +2,7 @@ import importlib
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
@@ -200,6 +200,7 @@ class ToolManager:
tags=tags,
source_type="python",
tool_type=tool_type,
return_char_limit=BASE_FUNCTION_RETURN_CHAR_LIMIT,
),
actor=actor,
)