-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Expand file tree
/
Copy pathconf.yaml
More file actions
413 lines (357 loc) · 11.2 KB
/
Copy pathconf.yaml
File metadata and controls
413 lines (357 loc) · 11.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
# Letta Configuration File
# Place at ~/.letta/conf.yaml, ./conf.yaml, or set LETTA_CONFIG_PATH
# Environment variables take precedence over config file values
#
# Top-level keys and their env var mappings:
# letta: -> LETTA_*
# model: -> Provider-prefixed (OPENAI_*, ANTHROPIC_*, etc.)
# tool: -> Prefix-based (E2B_*, MCP_*, TOOL_*, etc.)
# datadog: -> DD_*
letta:
# =============================================================================
# Core Settings (LETTA_*)
# =============================================================================
debug: false
# environment: ""
# Default handles
# default_llm_handle: ""
# default_embedding_handle: ""
# SSE Streaming
enable_keepalive: true
keepalive_interval: 50.0
enable_cancellation_aware_streaming: true
# =============================================================================
# PostgreSQL (LETTA_PG_*)
# =============================================================================
pg:
# db: ""
# user: ""
# password: ""
# host: ""
# port: ""
# uri: ""
pool_size: 25
max_overflow: 10
pool_timeout: 30
pool_recycle: 1800
echo: false
# Connection pool settings (LETTA_POOL_*)
pool:
pre_ping: true
use_lifo: true
# Database settings (LETTA_DB_*)
# db:
# max_concurrent_sessions: ""
disable_sqlalchemy_pooling: true
enable_db_pool_monitoring: true
db_pool_monitoring_interval: 30
# =============================================================================
# Redis (LETTA_REDIS_*)
# =============================================================================
redis:
# host: ""
port: 6379
# =============================================================================
# Multi-Agent (LETTA_MULTI_AGENT_*)
# =============================================================================
multi_agent:
send_message_max_retries: 3
send_message_timeout: 1200
concurrent_sends: 50
# =============================================================================
# OTEL / Observability (LETTA_OTEL_*, LETTA_CLICKHOUSE_*)
# =============================================================================
otel:
# exporter_otlp_endpoint: ""
preferred_temporality: 1
clickhouse:
# endpoint: ""
database: otel
username: default
# password: ""
disable_tracing: false
llm_api_logging: true
track_last_agent_run: false
track_errored_messages: true
track_stop_reason: true
track_agent_run: true
track_provider_trace: true
# =============================================================================
# Uvicorn (LETTA_UVICORN_*)
# =============================================================================
uvicorn:
workers: 1
reload: false
timeout_keep_alive: 5
# Runtime settings
use_uvloop: false
use_granian: false
sqlalchemy_tracing: false
event_loop_threadpool_max_workers: 43
# =============================================================================
# Experimental
# =============================================================================
use_vertex_structured_outputs_experimental: false
use_asyncio_shield: true
# =============================================================================
# Lettuce (LETTA_USE_LETTUCE_*)
# =============================================================================
use_lettuce_for_file_uploads: false
# =============================================================================
# Batch Job Polling (LETTA_POLL_*, LETTA_BATCH_*)
# =============================================================================
enable_batch_job_polling: false
poll_running_llm_batches_interval_seconds: 300
poll_lock_retry_interval_seconds: 480
batch_job_polling_lookback_weeks: 2
# batch_job_polling_batch_size: ""
# =============================================================================
# LLM Timeouts (LETTA_LLM_*)
# =============================================================================
llm:
request_timeout_seconds: 60.0
stream_timeout_seconds: 600.0
# =============================================================================
# Pinecone (LETTA_PINECONE_*, LETTA_ENABLE_PINECONE, LETTA_UPSERT_PINECONE_INDICES)
# =============================================================================
enable_pinecone: false
upsert_pinecone_indices: false
pinecone:
# api_key: ""
source_index: sources
agent_index: recall
# =============================================================================
# Turbopuffer (LETTA_TPUF_*, LETTA_USE_TPUF, LETTA_EMBED_*)
# =============================================================================
use_tpuf: false
embed_all_messages: false
embed_tools: false
tpuf:
# api_key: ""
region: gcp-us-central1
# =============================================================================
# File Processing (LETTA_FILE_PROCESSING_*)
# =============================================================================
file_processing:
timeout_minutes: 30
timeout_error_message: "File processing timed out after {} minutes. Please try again."
# =============================================================================
# Letta Client (LETTA_DEFAULT_*)
# =============================================================================
default_base_url: http://localhost:8283
# default_token: ""
# =============================================================================
# Agent Architecture
# =============================================================================
use_letta_v1_agent: false
archival_memory_token_limit: 8192
# =============================================================================
# Security
# =============================================================================
no_default_actor: false
# encryption_key: ""
# =============================================================================
# OCR
# =============================================================================
# mistral_api_key: ""
# =============================================================================
# Summarizer (LETTA_SUMMARIZER_*)
# =============================================================================
summarizer:
mode: partial_evict_message_buffer_mode
message_buffer_limit: 60
message_buffer_min: 15
enable_summarization: true
max_summarization_retries: 3
partial_evict_summarizer_percentage: 0.30
evict_all_messages: false
max_summarizer_retries: 3
memory_warning_threshold: 0.75
send_memory_warning_message: false
desired_memory_token_pressure: 0.3
keep_last_n_messages: 0
# =============================================================================
# Logging (LETTA_LOGGING_*)
# =============================================================================
logging:
debug: false
json_logging: false
log_level: WARNING
verbose_telemetry_logging: false
# =============================================================================
# Telemetry (LETTA_TELEMETRY_*)
# =============================================================================
telemetry:
enable_datadog: false
provider_trace_backend: postgres
socket_path: /var/run/telemetry/telemetry.sock
provider_trace_pg_metadata_only: false
# source: ""
# Datadog settings (LETTA_TELEMETRY_DATADOG_*)
datadog:
agent_host: localhost
agent_port: 8126
service_name: letta-server
profiling_enabled: false
profiling_memory_enabled: false
profiling_heap_enabled: false
# git_repository_url: ""
# git_commit_sha: ""
main_package: letta
# =============================================================================
# Model Settings (-> OPENAI_*, ANTHROPIC_*, AWS_*, etc.)
# =============================================================================
model:
# Global settings
global_max_context_window_limit: 128000
inner_thoughts_kwarg: thinking
default_prompt_formatter: chatml
# OpenAI (-> OPENAI_*)
openai:
# api_key: ""
api_base: https://api.openai.com/v1
# Anthropic (-> ANTHROPIC_*)
anthropic:
# api_key: ""
max_retries: 3
sonnet_1m: false
# Azure OpenAI (-> AZURE_*)
azure:
# api_key: ""
# base_url: ""
api_version: "2024-09-01-preview"
# Google Gemini (-> GEMINI_*)
gemini:
# api_key: ""
base_url: https://generativelanguage.googleapis.com/
force_minimum_thinking_budget: false
max_retries: 5
timeout_seconds: 600.0
# Google Vertex (-> GOOGLE_CLOUD_*)
# google_cloud:
# project: ""
# location: ""
# AWS Bedrock (-> AWS_*, BEDROCK_*)
aws:
# access_key_id: ""
# secret_access_key: ""
default_region: us-east-1
bedrock:
anthropic_version: bedrock-2023-05-31
# OpenRouter (-> OPENROUTER_*)
# openrouter:
# api_key: ""
# referer: ""
# title: ""
# handle_base: ""
# Groq (-> GROQ_*)
# groq:
# api_key: ""
# Together (-> TOGETHER_*)
# together:
# api_key: ""
# DeepSeek (-> DEEPSEEK_*)
# deepseek:
# api_key: ""
# xAI/Grok (-> XAI_*)
# xai:
# api_key: ""
# Z.ai/ZhipuAI (-> ZAI_*)
zai:
# api_key: ""
base_url: https://api.z.ai/api/paas/v4/
# MiniMax (-> MINIMAX_*)
# minimax:
# api_key: ""
# Ollama (-> OLLAMA_*)
# ollama:
# base_url: ""
# vLLM (-> VLLM_*)
# vllm:
# api_base: ""
# handle_base: ""
# SGLang (-> SGLANG_*)
# sglang:
# api_base: ""
# handle_base: ""
# LM Studio (-> LMSTUDIO_*)
# lmstudio:
# base_url: ""
# OpenLLM (-> OPENLLM_*)
# openllm:
# auth_type: ""
# api_key: ""
# =============================================================================
# Tool Settings (-> E2B_*, MCP_*, MODAL_*, TOOL_*, etc.)
# =============================================================================
tool:
# E2B Sandbox (-> E2B_*)
# e2b:
# api_key: ""
# sandbox_template_id: ""
# Modal Sandbox (-> MODAL_*)
# modal:
# token_id: ""
# token_secret: ""
# Search Providers (-> TAVILY_*, EXA_*)
# tavily:
# api_key: ""
# exa:
# api_key: ""
# Local Sandbox (-> TOOL_*)
tool:
# exec_dir: ""
sandbox_timeout: 180
# exec_venv_name: ""
exec_autoreload_venv: true
# MCP (-> MCP_*)
mcp:
connect_to_server_timeout: 30.0
list_tools_timeout: 30.0
execute_tool_timeout: 60.0
read_from_config: false
disable_stdio: true
# =============================================================================
# Datadog Agent Settings (-> DD_*)
# =============================================================================
# datadog:
# site: ""
# service: ""
# version: ""
#
# trace:
# enabled: false
# agent_url: ""
# health_metrics_enabled: false
#
# dogstatsd:
# url: ""
#
# logs:
# injection: false
#
# runtime:
# metrics_enabled: false
#
# appsec:
# enabled: false
# sca_enabled: false
#
# iast:
# enabled: false
#
# exception:
# replay_enabled: false
#
# llmobs:
# enabled: false
# ml_app: ""
#
# instrumentation:
# install_type: ""
#
# git:
# repository_url: ""
# commit_sha: ""
#
# main_package: ""