letta-nightly 0.7.29.dev20250602104315__py3-none-any.whl → 0.7.30.dev20250603104343__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
letta/agent.py CHANGED
@@ -68,7 +68,7 @@ from letta.services.step_manager import StepManager
68
68
  from letta.services.telemetry_manager import NoopTelemetryManager, TelemetryManager
69
69
  from letta.services.tool_executor.tool_execution_sandbox import ToolExecutionSandbox
70
70
  from letta.services.tool_manager import ToolManager
71
- from letta.settings import settings, summarizer_settings
71
+ from letta.settings import settings, summarizer_settings, model_settings
72
72
  from letta.streaming_interface import StreamingRefreshCLIInterface
73
73
  from letta.system import get_heartbeat, get_token_limit_warning, package_function_response, package_summarize_message, package_user_message
74
74
  from letta.tracing import log_event, trace_method
@@ -1273,7 +1273,7 @@ class Agent(BaseAgent):
1273
1273
  )
1274
1274
 
1275
1275
  async def get_context_window_async(self) -> ContextWindowOverview:
1276
- if os.getenv("LETTA_ENVIRONMENT") == "PRODUCTION":
1276
+ if os.getenv("LETTA_ENVIRONMENT") == "PRODUCTION" and model_settings.anthropic_api_key is not None:
1277
1277
  return await self.get_context_window_from_anthropic_async()
1278
1278
  return await self.get_context_window_from_tiktoken_async()
1279
1279
 
@@ -238,4 +238,4 @@ async def poll_running_llm_batches(server: "SyncServer") -> List[LettaBatchRespo
238
238
  logger.exception("[Poll BatchJob] Unhandled error in poll_running_llm_batches", exc_info=e)
239
239
  finally:
240
240
  # 7. Log metrics summary
241
- metrics.log_summary()
241
+ metrics.log_summary()
letta/jobs/scheduler.py CHANGED
@@ -252,4 +252,4 @@ async def shutdown_scheduler_and_release_lock():
252
252
  try:
253
253
  scheduler.shutdown(wait=False)
254
254
  except:
255
- pass
255
+ pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-nightly
3
- Version: 0.7.29.dev20250602104315
3
+ Version: 0.7.30.dev20250603104343
4
4
  Summary: Create LLM agents with long-term memory and custom tools
5
5
  License: Apache License
6
6
  Author: Letta Team
@@ -1,5 +1,5 @@
1
1
  letta/__init__.py,sha256=UKatW_2XhjOKyRRGdXEXeM6M1DjImKw3757mkNUcEGo,888
2
- letta/agent.py,sha256=2r6xovRHeUnmWZ6WJoIP217ryse5Q3Bkco1JXiV599w,87459
2
+ letta/agent.py,sha256=5Mu3tpuK0zR1Dtzl0vuQxCXLP4YqI0lHLj4eJKxLEVA,87524
3
3
  letta/agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  letta/agents/base_agent.py,sha256=mdFEpYBVyFjmt6BzO9YrpJnH99RkBWZ9gnP3Q_bnbBI,5505
5
5
  letta/agents/ephemeral_agent.py,sha256=el-SUF_16vv_7OouIR-6z0pAE9Yc0PLibygvfCKwqfo,2736
@@ -65,8 +65,8 @@ letta/interfaces/openai_streaming_interface.py,sha256=vdEaD_yOZ1UqPY75on_d1_nc45
65
65
  letta/interfaces/utils.py,sha256=c6jvO0dBYHh8DQnlN-B0qeNC64d3CSunhfqlFA4pJTY,278
66
66
  letta/jobs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
67
67
  letta/jobs/helpers.py,sha256=kO4aj954xsQ1RAmkjY6LQQ7JEIGuhaxB1e9pzrYKHAY,914
68
- letta/jobs/llm_batch_job_polling.py,sha256=c8bTQo9gID7KllHY-gozLsOqSHrK80C9aWU3LKNULuY,10298
69
- letta/jobs/scheduler.py,sha256=ZGCmdJgXvUF8kyUjJQpvTaerG_xf44xgIOSndvdbBak,10239
68
+ letta/jobs/llm_batch_job_polling.py,sha256=r_6D5RcqEJQgrdh-rnN7vdLD0GAQl-GGmIfCnV0naHQ,10299
69
+ letta/jobs/scheduler.py,sha256=VpRyO2vuETNrarHOIWYctAkrD4WFtV57buUSHaLE89Y,10240
70
70
  letta/jobs/types.py,sha256=K8GKEnqEgAT6Kq4F2hUrBC4ZAFM9OkfOjVMStzxKuXQ,742
71
71
  letta/llm_api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
72
72
  letta/llm_api/anthropic.py,sha256=Lvk2_d3UD32Q-PjWpATOjMp2Qf1SUPmXJUCn28UgB-Y,47281
@@ -346,8 +346,8 @@ letta/system.py,sha256=mKxmvvekuP8mdgsebRINGBoFbUdJhxLJ260crPBNVyk,8386
346
346
  letta/tracing.py,sha256=YMb9KgoBVz7nwCPwnErk2EJEKMiQ_ohctW1nOwhHd1Y,8458
347
347
  letta/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
348
348
  letta/utils.py,sha256=W8J1FfhRADFqoyx3J8-Z1_aWyG433PBoEh_b5wdOZIg,32262
349
- letta_nightly-0.7.29.dev20250602104315.dist-info/LICENSE,sha256=mExtuZ_GYJgDEI38GWdiEYZizZS4KkVt2SF1g_GPNhI,10759
350
- letta_nightly-0.7.29.dev20250602104315.dist-info/METADATA,sha256=TWxh1DsU0Go1Gc9GeVGcNBJ4e8QwWJme8hG8TyWPThg,22374
351
- letta_nightly-0.7.29.dev20250602104315.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
352
- letta_nightly-0.7.29.dev20250602104315.dist-info/entry_points.txt,sha256=2zdiyGNEZGV5oYBuS-y2nAAgjDgcC9yM_mHJBFSRt5U,40
353
- letta_nightly-0.7.29.dev20250602104315.dist-info/RECORD,,
349
+ letta_nightly-0.7.30.dev20250603104343.dist-info/LICENSE,sha256=mExtuZ_GYJgDEI38GWdiEYZizZS4KkVt2SF1g_GPNhI,10759
350
+ letta_nightly-0.7.30.dev20250603104343.dist-info/METADATA,sha256=f_rskrsuI28qiKq_pZBREWVIDOEinD7ojKyD8trggV0,22374
351
+ letta_nightly-0.7.30.dev20250603104343.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
352
+ letta_nightly-0.7.30.dev20250603104343.dist-info/entry_points.txt,sha256=2zdiyGNEZGV5oYBuS-y2nAAgjDgcC9yM_mHJBFSRt5U,40
353
+ letta_nightly-0.7.30.dev20250603104343.dist-info/RECORD,,