Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix(ci): autosummarize test fails (pydantic version dependant?) (#2792)
Kian Jonesaeadd1aebe4f
diff --git a/tests/integration_test_send_message.py b/tests/integration_test_send_message.pyindex 139287a02..90f57e7ad 100644--- a/tests/integration_test_send_message.py+++ b/tests/integration_test_send_message.py@@ -851,13 +851,16 @@ def test_async_greeting_with_assistant_message()def test_auto_summarize(disable_e2b_api_key: Any, client: Letta, llm_config: LLMConfig):"""Test that summarization is automatically triggered."""- llm_config.context_window = 3000+ # pydantic prevents us for overriding the context window paramter in the passed LLMConfig+ new_llm_config = llm_config.model_dump()+ new_llm_config["context_window"] = 3000+ pinned_context_window_llm_config = LLMConfig(**new_llm_config)send_message_tool = client.tools.list(name="send_message")[0]temp_agent_state = client.agents.create(include_base_tools=False,tool_ids=[send_message_tool.id],- llm_config=llm_config,+ llm_config=pinned_context_window_llm_config,embedding="letta/letta-free",tags=["supervisor"],)diff --git a/tests/test_managers.py b/tests/test_managers.pyindex ed40aa7a9..500dcd331 100644--- a/tests/test_managers.py+++ b/tests/test_managers.py@@ -85,7 +85,7 @@ from letta.schemas.user import UserUpdatefrom letta.server.db import db_registryfrom letta.server.server import SyncServerfrom letta.services.block_manager import BlockManager-from letta.settings import settings, tool_settings+from letta.settings import tool_settingsfrom tests.helpers.utils import comprehensive_agent_checks, validate_context_window_overviewfrom tests.utils import random_string