Matthew Zhou
2dae4d33c3
feat: Implement streaming chat completions endpoint [LET-5485] ( #5446 )
...
* wip
* Add chat completions router and fix streaming service
* Finish chat completions
* Finish chat completions
* Remove extra print statement
* Run just api
* Don't explicitly throw http exceptions but surface Letta errors
* Remap errors
* Trigger CI
* Add missing Optional import
2025-10-24 15:12:11 -07:00
Ari Webb
714978f5ee
handle none value for properties [LET-5537] ( #5449 )
...
handle none value for properties
Co-authored-by: Ari Webb <ari@letta.com >
2025-10-24 15:12:11 -07:00
Ari Webb
967cc3decf
move exceptions out of folders and sources [LET-4631] ( #5444 )
2025-10-24 15:12:11 -07:00
jnjpng
dad7254b1b
fix: record run duration to runs table and sync with run_metrics [LET-5525] ( #5441 )
...
* base
* helper
* comment
---------
Co-authored-by: Letta Bot <noreply@letta.com >
2025-10-24 15:12:11 -07:00
Cameron Pfiffer
4a86bf6e4c
docs: Improve examples page ( #5442 )
...
* Fix VoiceAgent to use run_manager instead of job_manager
VoiceAgent.__init__() was incorrectly using job_manager parameter
when ToolExecutionManager expects run_manager. This was causing
the error: "VoiceAgent.__init__() got an unexpected keyword
argument 'run_manager'".
Changes:
- Update VoiceAgent to accept and use run_manager instead of job_manager
- Update VoiceSleeptimeAgent to accept run_manager parameter
- Update imports to use RunManager instead of JobManager
- Pass run_manager to ToolExecutionManager in VoiceAgent._execute_tool
* docs: Add new examples to documentation
- Introduced "Your First Agent" example to guide users in creating a Letta agent and understanding its memory capabilities.
- Added "Attaching and Detaching Memory Blocks" example to demonstrate dynamic memory management for agents.
- Updated navigation in docs.yml to include links to the new examples.
These additions enhance the learning resources available for users working with Letta agents.
2025-10-24 15:12:11 -07:00
jnjpng
bcfc94846d
fix: include run_id and step_id in temporal agent workflow [LET-5387] ( #5429 )
...
* base
* update
* fix: temporal agent workflow usage statistics [LET-5516] (#5436 )
* base
* clean up comment
* remove import
---------
Co-authored-by: Letta Bot <noreply@letta.com >
---------
Co-authored-by: Letta Bot <noreply@letta.com >
2025-10-24 15:12:11 -07:00
Matthew Zhou
a36bd1118d
fix: Fix send message v2 tests [LET-5505] ( #5435 )
...
* wip
* Restore comments
* Remove extra prints
2025-10-24 15:12:11 -07:00
Ari Webb
4431b06881
runs and jobs [LET-4634] ( #5427 )
...
runs and jobs
Co-authored-by: Ari Webb <ari@letta.com >
2025-10-24 15:12:11 -07:00
Ari Webb
9e94c344b8
using uuid and datetime [LET-5508] ( #5430 )
...
* using uuid and datetime
* add run_id
---------
Co-authored-by: Ari Webb <ari@letta.com >
2025-10-24 15:12:11 -07:00
Matthew Zhou
09ba075cfa
feat: Modify embedding strategy to first halve the batch size v.s. the batc… [LET-5510] ( #5434 )
...
Modify embedding strategy to first halve the batch size v.s. the batch size
2025-10-24 15:12:11 -07:00
Matthew Zhou
0543a60538
chore: Restore chunk size for openai embeddings ( #5431 )
...
Restore chunk size
2025-10-24 15:12:11 -07:00
Cameron Pfiffer
936be41e8d
Rename POSTHOG_API_KEY to POSTHOG_KEY ( #5428 )
...
Update environment variable name from POSTHOG_API_KEY to POSTHOG_KEY in GitHub workflow and Fern docs configuration.
2025-10-24 15:12:11 -07:00
Ari Webb
624c591820
Ari/let 5486 badrequesterror error code 400 error message requested [LET-5486] ( #5422 )
...
* letta agent v2 throw exception not error
* warning instead of error or exception
* decrease min_chunk_size
---------
Co-authored-by: Ari Webb <ari@letta.com >
2025-10-24 15:12:11 -07:00
Ari Webb
6904199cae
rely on user_manager and organization_manager for error throwing [LET-4637] ( #5420 )
...
rely on user_manager and organization_manager for error throwing
Co-authored-by: Ari Webb <ari@letta.com >
2025-10-24 15:12:11 -07:00
Ari Webb
e7ef73c0b6
Ari/let 5503 error during step processing error code 429 type error error [LET-5503] ( #5421 )
...
* letta agent v2 throw exception not error
* warning instead of error or exception
---------
Co-authored-by: Ari Webb <ari@letta.com >
2025-10-24 15:12:11 -07:00
Matthew Zhou
11a36aaa6a
feat: Create streaming service class [LET-5504] ( #5418 )
...
Create streaming service
2025-10-24 15:12:11 -07:00
Ari Webb
cf227bc400
letta agent v2 throw exception not error [LET-5503] ( #5417 )
...
letta agent v2 throw exception not error
Co-authored-by: Ari Webb <ari@letta.com >
2025-10-24 15:12:11 -07:00
Shubham Naik
a95a449b02
feat: ignore bad tools when creating agents for template [LET-4850] ( #5390 )
...
* feat: ignore bad tools when creating agents for template
* chore: use paramater
* chore: next
* chore: next
---------
Co-authored-by: Shubham Naik <shub@memgpt.ai >
2025-10-24 15:12:11 -07:00
cthomas
8dc4db0e07
feat: update hitl docs with new snippets ( #5416 )
2025-10-24 15:12:09 -07:00
Cameron Pfiffer
ec8d5ccec1
Add PostHog analytics to Fern docs ( #5394 )
2025-10-24 15:11:31 -07:00
Kian Jones
9837b14ecd
fix: agent create with tags and actually delete the agent in probe ( #5392 )
...
* fix: agent create with tags and actually delete the agent
* add reponse schema to docs?
* bug fix: await async client call
* override delete routes to show response object
2025-10-24 15:11:31 -07:00
Kian Jones
158546414d
fix: better error message for llm on agent failure ( #5402 )
...
* better error message for llm on agent failure
* raise NoResultFoundError instead of value error and do it outside async db registry
2025-10-24 15:11:31 -07:00
Matthew Zhou
b6f2dc63e5
chore: Deprecate voice-beta endpoint [LET-5483] ( #5410 )
...
Deprecate voice-beta endpoint
2025-10-24 15:11:31 -07:00
Ari Webb
03e7639e2b
handle llm error on request_async [LET-5403] ( #5408 )
...
handle llm error on request_async
Co-authored-by: Ari Webb <ari@letta.com >
2025-10-24 15:11:31 -07:00
Matthew Zhou
8cba4a416d
chore: Add opus 4-1 and sonnet 4-5 to message v2 testing [LET-5481] ( #5406 )
...
Add opus 4-1 and sonnet 4-5 to message v2 testing
2025-10-24 15:11:31 -07:00
cthomas
cd4553f3e6
feat: enable sleeptime on new agent loop ( #5405 )
2025-10-24 15:11:31 -07:00
cthomas
6e4caae15c
feat: move existing sleeptime agents to new agent loop ( #5398 )
2025-10-24 15:11:31 -07:00
Matthew Zhou
6cfdcc584c
fix: Add backfill for message listing without tool call id [LET-5479] ( #5400 )
...
* Add warning comment
* Remove extra commit
* Remove extra helper unused
2025-10-24 15:11:31 -07:00
Ari Webb
8ab2cf258c
band aid, error instead of send to anthropic [LET-5478] ( #5396 )
...
band aid, error instead of send to anthropic
Co-authored-by: Ari Webb <ariwebb@Aris-MacBook-Pro.local >
2025-10-24 15:11:31 -07:00
cthomas
731e314b5d
fix: anthropic payload tool parse error LET-5469 ( #5388 )
...
fix: anthropic payload tool parse error
2025-10-24 15:11:31 -07:00
cthomas
5c35be42fb
fix: increase delay for responses api to fix flake ( #5391 )
2025-10-24 15:11:31 -07:00
Ari Webb
1d3e2d14d6
use LLMError instead of ValueError ( #5389 )
...
Co-authored-by: Ari Webb <ariwebb@Aris-MacBook-Pro.local >
2025-10-24 15:11:31 -07:00
jnjpng
7cac9a1a3e
chore: update encryption key log line [LET-5474] ( #5393 )
...
update log
Co-authored-by: Letta Bot <noreply@letta.com >
2025-10-24 15:11:31 -07:00
cthomas
15a4fe3228
test: revert comments ( #5384 )
2025-10-24 15:11:31 -07:00
Kevin Lin
08da1a64bb
feat: parse reasoning_content from OAI proxies (eg. vLLM / OpenRouter) ( #5372 )
...
* reasonig_content support
* fix
* comment
* fix
* rm comment
---------
Co-authored-by: Charles Packer <packercharles@gmail.com >
2025-10-24 15:11:31 -07:00
jnjpng
fea13051e6
feat: backfill providers, sandbox_environment_variables, mcp_oauth *_enc columns [LET-5458] ( #5382 )
...
* base
* remove print
---------
Co-authored-by: Letta Bot <noreply@letta.com >
2025-10-24 15:11:31 -07:00
Matthew Zhou
25f140bd13
fix: Fix anthropic step parallel tool calling and add tests [LET-5438] ( #5379 )
...
* Fix anthropic step parallel tool calling and add tests
* Remove print statements
2025-10-24 15:11:31 -07:00
Shubham Naik
248c7c0b44
Chore remove deprecated routes ( #5371 )
...
* chore: remove deprecated routes
* chore: remove deprecated routes
---------
Co-authored-by: Shubham Naik <shub@memgpt.ai >
2025-10-24 15:11:31 -07:00
Matthew Zhou
b466cfdb1f
fix: Fix parallel tool calling test for streaming ( #5376 )
...
Fix parallel tool calling test
2025-10-24 15:11:31 -07:00
Matthew Zhou
b205acf1f1
fix: Fix send message tests v2 ( #5374 )
...
Fix send message tests
2025-10-24 15:11:31 -07:00
Matthew Zhou
10a3d86507
test: Add basic parallel tool calling test to send_message v2 for anthropic [LET-5362] ( #5355 )
...
Add basic parallel tool calling test to send_message v2 for anthropic
2025-10-24 15:11:31 -07:00
Charles Packer
681f4903fd
fix: patch regression from #5359 ( #5363 )
2025-10-24 15:11:31 -07:00
Charles Packer
07b9fc26a0
fix(core): patch the issue with the GET failing (tested) ( #5362 )
...
* fix: patch the issue with the GET failing (tested)
* fix(web): patch for the FE UI
* parse func_response
---------
Co-authored-by: Caren Thomas <carenthomas@gmail.com >
2025-10-24 15:11:31 -07:00
Sarah Wooders
3d887c7a13
chore: remove sentry for non-500 errors ( #5359 )
...
* chore: remove sentry for non-500 errors
* remove more filtering logic
---------
Co-authored-by: Kian Jones <kian@letta.com >
2025-10-24 15:11:31 -07:00
Shubham Naik
5af0c1535f
feat: fix display name stuff ( #5329 )
...
* feat: fix display name stuff
* chore: fix types
---------
Co-authored-by: Shubham Naik <shub@memgpt.ai >
2025-10-24 15:11:31 -07:00
cthomas
128afeb587
feat: fix cancellation bugs and add testing ( #5353 )
2025-10-24 15:11:31 -07:00
Sarah Wooders
7ab44e61fa
feat: patch anthropic token counting + build-in tokenizers [LET-5377] ( #5354 )
2025-10-24 15:11:31 -07:00
Shubham Naik
6a28f3852a
Shub/let 4974 rename current to dev [LET-4974] ( #5297 )
...
* fix: rename current to dev
* chore: rename current to dev
* chore: next
* chore: rename fix
---------
Co-authored-by: Shubham Naik <shub@memgpt.ai >
2025-10-24 15:11:31 -07:00
jnjpng
31ba71de15
chore: skip invalid schema tool attach test ( #5350 )
...
skip
Co-authored-by: Letta Bot <noreply@letta.com >
2025-10-24 15:11:31 -07:00
jnjpng
5d153214c0
feat: allow invalid schema tools to be attached with warning ( #5341 )
...
* base
* allow attach
* display badge
* clean up
---------
Co-authored-by: Letta Bot <noreply@letta.com >
2025-10-24 15:11:31 -07:00