Commit Graph

1742 Commits

Author SHA1 Message Date
jnjpng
a14bc841ce feat: add secret encryption keys [LET-3662]
* base

* add to apps/core

---------

Co-authored-by: Letta Bot <noreply@letta.com>
2025-09-08 14:52:20 -07:00
Matthew Zhou
acaf820009 feat: Add project_id to message filtering/inserting to Turbopuffer [LET-4252] (#4466)
* Add project_id

* Fern autogen
2025-09-08 14:35:15 -07:00
Matthew Zhou
74e08f038e feat: Fix race condition with creating archival memories in parallel [LET-4205] (#4464)
* Test archive manager and add race condition handling

* Fix client tests

* Remove bad test
2025-09-08 12:01:35 -07:00
cthomas
57e69a35bc feat: add step checkpointing for progress tracking (#4458)
* feat: add step checkpointing for progress tracking

* openapi sync
2025-09-08 10:30:44 -07:00
Kian Jones
8f3aabd89d feat(monitoring): Add Datadog Monitoring for all k8s metrics + logs, and add dd-agent to VMs (#4441)
* swap EXA_API_KEY in CI, add DD_API_KEY to CI, add dd-agent to CI runners, and codify datadog agent config from kubernetes (also enable k8s logging)

* actually set exa api key properly

* actually fix it

* fix 'site' bug and change tags better

* fix 'site' bug and change tags better

* fix lmstudio post uv migration

* sync lmstudio to oss

* install dd after secres available

* move dd installation to startup script
2025-09-08 10:17:36 -07:00
cthomas
a8caf59a73 feat: add agent_step span updates to new agent loop (#4457) 2025-09-06 14:04:01 -07:00
Charles Packer
0d195bd2b7 fix(core): patch the error throwing for HITL [LET-4218] (#4455)
fix: patch the error throwing for HITL
2025-09-06 11:45:46 -07:00
Charles Packer
388dd46ffc feat: various performance patches for gpt-5 [LET-4157] (#4381)
* feat: increase the verbosity of the heartbeat kwarg

* chore: strip docstrings out from the file in which they are not parsed (duplicates inside base.py

* feat: add examples to the docstrings for memory_replace and memory_insert

* feat: add more examples
2025-09-06 11:23:13 -07:00
Charles Packer
326f9a5049 fix: Add approval messages to runs.stream SSE schema (align with agents.create_stream) (#4451)
* fix: patch error on HITL tests

* Revert uv.lock to match main

* fix: IDK why uv lock keeps changing???
2025-09-05 21:44:26 -07:00
Matthew Zhou
af302e8ac8 feat: Write tests for search messages [LET-4212] (#4447)
* Adjust naming

* Add testing and improve message search

* Adjust comments

* Change query text to query

* Fern autogen
2025-09-05 17:52:13 -07:00
cthomas
cb7296c81d fix: approval request for streaming (#4445)
* fix: approval request for streaming

* fix: claude code attempt, unit test passing (add on to #4445) (#4448)

* fix: claude code attempt, unit test passing

* chore: update locks to 0.1.314 from 0.1.312

* chore: just stage-api && just publish-api

* chore: drop dead poetry lock

---------

Co-authored-by: Charles Packer <packercharles@gmail.com>
2025-09-05 17:43:21 -07:00
Kian Jones
a677095f05 fix: remove receently committed (#4449)
remove receently committed
2025-09-05 17:35:24 -07:00
Matthew Zhou
2ef47d8002 feat: Add search messages endpoint [LET-4144] (#4434)
* Add search messages endpoint

* Run fern autogen and fix tests
2025-09-05 14:28:27 -07:00
cthomas
f2485daef7 feat: add provider trace persistence in llm adapters (#4442)
* feat: add provider trace persistence in llm adapters

* hook up to new agent loop
2025-09-05 14:28:20 -07:00
cthomas
7c5c94d9cb feat: add step progression checkpointing to new agent loop (#4443) 2025-09-05 14:28:06 -07:00
cthomas
892667d633 feat: poll cancellation status in client.runs.stream endpoint [LET-4209] (#4439)
* feat: make include pings default to true

* feat: add cancellation checks in  path
2025-09-05 12:30:30 -07:00
cthomas
3c4a704440 feat: make include pings default to true (#4438) 2025-09-05 12:14:28 -07:00
cthomas
68f3a45421 feat: add project_id to message (#4436) 2025-09-05 11:18:09 -07:00
cthomas
9ea1eb17ba feat: introduce agent loop v3 (#4435) 2025-09-05 11:12:52 -07:00
Matthew Zhou
cbf2e09e13 feat: Add project id to message schema [LET-4166] (#4433)
* Add project id

* Propogate through update message by id async

* Add project id testing
2025-09-04 16:50:41 -07:00
Matthew Zhou
415ae5a928 chore: Add more prompting around archival datetime (#4432)
Add more prompting around archival datetime
2025-09-04 15:31:49 -07:00
Matthew Zhou
dda4459245 feat: Make end date inclusive on conversation search (#4431)
Make end date inclusive
2025-09-04 15:26:49 -07:00
Matthew Zhou
5337e5bcac feat: Move message embedding to background task [LET-4189] (#4430)
* Test background message embedding

* Change to content
2025-09-04 15:05:35 -07:00
Shubham Naik
d23318b802 chore: fix backend error fix (#4428)
Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-09-04 14:10:32 -07:00
Kian Jones
2eb7da9bc3 chore: Move core tests into apps/core (OSS Migration) [LET-4169] (#4376)
* add a bunch of test to oss

* symlink and auto-detect dir

* symlink the other direction

* add pull_request_target logic

* remove undertaker and add alembic validation

* symlink doesn't work with gh actions and add validation workflow to ensure actions in cloud and oss are lockstep

* sync these

* specify extras selectively
2025-09-04 13:46:11 -07:00
Matthew Zhou
def95050e2 feat: Add ranks to archival memory search [LET-4193] (#4426)
* Add ranks to archival memory search

* Fix test managers

* Fix archival memory test
2025-09-04 13:35:54 -07:00
Matthew Zhou
ef225d3e49 fix: Temp remove timezone test (#4427)
Temp remove test
2025-09-04 12:05:16 -07:00
Shubham Naik
f6ec6dc3a0 feat: add the ability to find/delete by deployment id [PRO-1150] (#4421)
* feat: add the ability to find/delete by deployment id

* fix: add ability to delete by deployment id

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-09-04 11:08:54 -07:00
Shubham Naik
eb21668f35 feat: add hidden property to group and blocks [PRO-1145] (#4415)
* feat: add hidden property to group and blocks

* feat: add hidden property to group and blocks

* chore: bup

* chore: add hidden property

* chore: next

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-09-04 10:53:16 -07:00
Shubham Naik
a65400af84 chore: surface the templates rest endpoint (#4412)
* chore: surface the templates rest endpoint

* chore: fix python server stuff

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-09-04 08:48:46 -07:00
Sarah Wooders
9e20a76d2a feat: use datetime ranges for archival memory query (#4398) 2025-09-03 20:08:10 -07:00
Matthew Zhou
d924cc005b fix: change to pure rank-based RRF for relevance ordering (#4411)
* Fix RRF

* Fix turbopuffer tests
2025-09-03 17:33:19 -07:00
Kian Jones
fc50a41680 chore: add back dependencies for desktop (#4409)
add back dependencies for desktop
2025-09-03 17:12:04 -07:00
Matthew Zhou
2af6049d6f feat: Change web search to exa [LET-4190] (#4401)
* Change web search to exa

* Fix tf/justfile

* add exa api key for integration test

* Mock exa

---------

Co-authored-by: Kian Jones <kian@letta.com>
2025-09-03 15:52:10 -07:00
jnjpng
12d8242d94 fix: retry on 500 and 503 for gemini [LET-4185]
* handle 500 and 503

* timeout

---------

Co-authored-by: Letta Bot <noreply@letta.com>
2025-09-03 14:02:58 -07:00
Charles Packer
dd1a9a0b7c fix: reduce the default tool return to something more sane [LET-4180] (#4383)
fix: reduce the default tool return to something more sane (prev limit was allowing like 200k tokens to come through and crash gpt-5
2025-09-03 13:51:33 -07:00
Cameron Pfiffer
6438bc5168 fix: correct messages API method from send to create (#4299)
Updated documentation examples to use the correct API method:
- Changed groups.messages.send() to groups.messages.create()
- Changed agents.messages.send() to agents.messages.create()
- Updated parameter format to use messages array with role/content

Fixes inconsistent API usage across documentation and examples.
2025-09-03 13:44:12 -07:00
Matthew Zhou
129dd97902 feat: Add fetch webpage tool [LET-4188] (#4395)
* Add fetch webpage tool

* Use trafilatura for web extraction
2025-09-03 13:34:35 -07:00
Matthew Zhou
051a5cde6a feat: Add archival search endpoint [LET-4184] (#4390)
* Add archival search endpoint

* Run fern autogen

* Add de-dupe logic
2025-09-03 10:55:20 -07:00
Matthew Zhou
6e633bd8f9 feat: Change namespace to be org scoped and filter on agent_id [LET-4163] (#4368)
* Change to org scoped and agent_id filtering

* Finish modifying conversation search tool

* Fix failing tests

* Get rid of bad imports
2025-09-03 10:00:19 -07:00
Charles Packer
507784f292 fix: try and patch the PATCH/update issue with MCP server URL [LET-3933]
* fix: patch update path

* autogenerate

* update

* update

---------

Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local>
Co-authored-by: Letta Bot <noreply@letta.com>
Co-authored-by: jnjpng <jin@letta.com>
2025-09-03 09:42:57 -07:00
cthomas
93ef177ab6 feat: always default to openai client in llm client factory [LET-4176] (#4377)
feat: always default to openai client in llm client factory
2025-09-03 09:40:59 -07:00
jnjpng
cfe47489d8 fix: clean property schema reference
fix

Co-authored-by: Letta Bot <noreply@letta.com>
2025-09-03 08:42:46 -07:00
Charles Packer
1ae0ab1790 fix: properly throw context window exceeded error on the new style of… [LET-4179] (#4380)
fix: properly throw context window exceeded error on the new style of context window overflow from gpt-5
2025-09-02 22:20:46 -07:00
Charles Packer
361c50bce4 fix: patch context window of gpt-5 to 272k not 400k [LET-4177] (#4379)
fix: patch context window of gpt-5 to 272k not 400k
2025-09-02 21:10:40 -07:00
jnjpng
a9e20097bd fix: mcp tool schema formatting for anthropic streaming [LET-4165]
* fix

* update commnet

---------

Co-authored-by: Letta Bot <noreply@letta.com>
2025-09-02 20:44:43 -07:00
cthomas
11d2507877 feat: refactor streaming route logic (#4369) 2025-09-02 19:27:13 -07:00
Charles Packer
bcfd88ae98 fix: patch cache bust in the system prompt via timestamp [LET-4155] (#4375)
fix: patch cache bust in the system prompt via timestamp
2025-09-02 18:07:13 -07:00
Charles Packer
264171f327 fix: patch streaming hidden reasoning event [LET-4167] (#4367)
* fix: patch streaming hidden reasoning event

* fix: patch reasoning_effort not getting passed to openai
2025-09-02 16:21:18 -07:00
Shubham Naik
98e8fcdee6 feat: allow list tools by tool type [PRO-870] (#4036)
* feat: allow list tools by tool type

* chore: update list

* chore: respond to comments

* chore: refactor tools hella

* Add tests to managers

* chore: branch

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
Co-authored-by: Matt Zhou <mattzh1314@gmail.com>
2025-09-02 15:53:36 -07:00