Commit Graph

100 Commits

Author SHA1 Message Date
Matthew Zhou
531eb6afeb 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
fb0e2d91a2 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
6029c80446 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
Matthew Zhou
2e3cabc080 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
Matthew Zhou
fcfc40eaf2 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
ba3843031e feat: Make end date inclusive on conversation search (#4431)
Make end date inclusive
2025-09-04 15:26:49 -07:00
Matthew Zhou
b8d403c962 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
25d37e2ac9 fix: change to pure rank-based RRF for relevance ordering (#4411)
* Fix RRF

* Fix turbopuffer tests
2025-09-03 17:33:19 -07:00
Matthew Zhou
88831c7256 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
46672de2d6 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
Matthew Zhou
75d444c335 feat: Extend crud lifecycle of messages [LET-4158] (#4364)
Extend crud lifecycle of messages
2025-09-02 14:38:30 -07:00
Matthew Zhou
00fd8617a6 feat: Add association for the vector namespace [LET-4148] (#4354)
Add association for the namespace
2025-09-02 13:21:42 -07:00
Matthew Zhou
20ac2923ff feat: Embed all messages in turbopuffer [LET-4143] (#4352)
* wip

* Finish embedding

* Fix ruff and tests
2025-09-02 12:43:48 -07:00
Matthew Zhou
335e0c2be1 feat: Support timestamp filtering for archival memories [LET-3469] (#4330)
Finish temporal filtering
2025-08-30 19:31:07 -07:00
cthomas
6c160e1d1d feat: add input validation for messages field (#4328) 2025-08-29 22:06:12 -07:00
Kian Jones
2b80b4aad8 chore: add tbpuf secrets and testing (#4292)
* add tbpuf secret

* deploy tbpuf key to prod deploy for core

* add secrets in staging and ci

* rn turbopuff test and add to integration test suite

* add tbpuf

* rename all occurences to tpuf

* remove debug prints

* buffer-puf

* add letta prefix

* add debug

* fix tests
2025-08-29 16:44:15 -07:00
Matthew Zhou
23b2769dc4 feat: Allow agent archival tools to insert/search with tags [LET-4072] (#4300)
* Finish modifying archival memory tools

* Add tags

* Add disabled test
2025-08-29 11:55:06 -07:00
Kian Jones
ca6cfa5914 chore: migrate to ruff (#4305)
* base requirements

* autofix

* Configure ruff for Python linting and formatting

- Set up minimal ruff configuration with basic checks (E, W, F, I)
- Add temporary ignores for common issues during migration
- Configure pre-commit hooks to use ruff with pass_filenames
- This enables gradual migration from black to ruff

* Delete sdj

* autofixed only

* migrate lint action

* more autofixed

* more fixes

* change precommit

* try changing the hook

* try this stuff
2025-08-29 11:11:19 -07:00
cthomas
f64255f5c9 feat: add requires approval logic to tool rules solver (#4294) 2025-08-28 17:06:46 -07:00
Matthew Zhou
016feda83a feat: Support arbitrary string tagging filtering [LET-3467] (#4285)
* Finish tagging

* Add comprehensive tags functionality

* Add fern autogen

* Create passage tags table

* Add indices

* Add comments explaining dual storage

* Fix alembic heads

* Fix alembic

---------

Co-authored-by: Kian Jones <11655409+kianjones9@users.noreply.github.com>
2025-08-28 16:57:36 -07:00
cthomas
9e43b8e015 feat: add new require approvals tool rule (#4280)
* feat: add new require approvals tool rule

* add fe changes

* openapi sync 2
2025-08-28 13:34:00 -07:00
Matthew Zhou
2791be982a feat: Add hybrid search on turbopuffer [LET-4096] (#4284)
Add hybrid search
2025-08-28 13:10:25 -07:00
Matthew Zhou
cf3423a21a feat: De-dupe tool rules [LET-4091] (#4282)
* Add hash/eqs for de-dupe

* Add sdk test
2025-08-28 12:43:32 -07:00
Matthew Zhou
651671cb83 feat: Support basic upload/querying on tpuf [LET-3465] (#4255)
* wip implementing turbopuffer

* Move imports up

* Add type of archive

* Integrate turbopuffer functionality

* Debug turbopuffer tests failing

* Fix turbopuffer

* Run fern

* Fix multiple heads
2025-08-28 10:39:16 -07:00
jnjpng
feb232f04a fix: mcp schema generation and non-strict schema validation
Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local>
2025-08-22 15:45:33 -07:00
Charles Packer
7bdc0a8de8 fix: handle faulty schemas from bad mcp servers better
Co-authored-by: jnjpng <jin@letta.com>
Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local>
2025-08-15 16:08:52 -07:00
jnjpng
5d176b51bb feat: record step metrics to table
Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local>
2025-08-13 11:29:18 -07:00
Andy Li
63be7417cc chore: clean up tool rule solver code 2025-08-08 16:39:17 -07:00
jnjpng
b62955f0bf fix: gemini 2.5 thinking models fail to call functions if thinking is fully disabled
Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local>
2025-08-08 16:34:32 -07:00
Andy Li
277c26a58e feat: modal sandbox 2025-07-30 11:25:40 -07:00
Matthew Zhou
2ef90aafc0 feat: Scrub inner thoughts from history on toggle (#3607) 2025-07-28 21:43:36 -07:00
Andy Li
94d10589c8 fix: structured outputs for send_message, LettaMessage 2025-07-24 14:50:52 -07:00
jnjpng
17ea813c32 fix: add b64 encoding fallback for json_dumps (#3503)
Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local>
2025-07-23 19:32:28 -07:00
Kian Jones
aace507b8f feat: Add support for vectors in SQLite (#3505) 2025-07-23 16:09:06 -07:00
Andy Li
b7b678db4e feat: stop reasons and error messages and sentry fixes 2025-07-18 11:56:20 -07:00
Andy Li
904d9ba5a2 chore: strings lint cleanup (#3374) 2025-07-18 09:20:45 -07:00
Matthew Zhou
3c765108f8 feat: Throttle pinecone uploads (#3373) 2025-07-16 20:29:08 -07:00
Matthew Zhou
331e1e1d56 feat: Add caching for files operations (#3321) 2025-07-14 14:08:27 -07:00
Matthew Zhou
37f21bfe23 feat: Add throttling and retries for pinecone (#3302) 2025-07-14 10:30:49 -07:00
Andy Li
71dce4a297 fix: pinecone imports (#3240) 2025-07-09 10:44:15 -07:00
Sarah Wooders
9a3413e5f6 chore: handle bytes in json_helpers.py (#3229) 2025-07-08 22:48:35 -07:00
Matthew Zhou
3dafbd2dc6 fix: Roll back parallelism, getting 429s (#3197) 2025-07-07 12:40:08 -07:00
Matthew Zhou
8f1640b2ef feat: Add batching to record upsert (#3196) 2025-07-07 12:18:39 -07:00
Matthew Zhou
9605d1f79c feat: Add pinecone for cloud embedding (#3160) 2025-07-03 22:37:55 -07:00
Matthew Zhou
fdab5758b9 fix: Fix infinite loop required tools test (#3084) 2025-06-27 16:23:55 -07:00
Andy Li
1036b7e360 feat: redis caching for passages (#3003) 2025-06-25 17:26:45 -07:00
Sarah Wooders
2e06feafbf fix: add more timezone fixes (#3025) 2025-06-25 14:51:37 -07:00
Matthew Zhou
53308e6211 feat: Fix required tools being terminal (#3010) 2025-06-24 17:46:37 -07:00
Charles Packer
25fd99ff79 fix: added proper newlines to the rules (#2940) 2025-06-24 17:45:57 -07:00
Sarah Wooders
10cdbf2ea4 feat: add ability to configure agent timezone (#2978)
Co-authored-by: Kian Jones <kian@letta.com>
2025-06-24 12:57:37 -07:00