Commit Graph

1678 Commits

Author SHA1 Message Date
cthomas
2dcbb9d9a6 feat: add human in the loop tests to CI (#4335)
feat: add human in the loop tests-to-ci
2025-09-01 11:10:31 -07:00
Charles Packer
904bd2ba54 fix(core): init attempt at patching the extended thinking bug (#4331)
* fix(core): init attempt at patching the extended thinking bug

* fix: refactor, fix in a different way be merging instead of dropping, seems to be working

* chore: cleanup

* fix: patch the test - with the new native thinking behavior, anthropic native reasoning does not trigger properly post tool-call

* fix: another attempt

* fix: tests passing locally

* fix: another patch to tests

* fix: pathc more tests

* fix: try turning on the interleave-thinking beta header

* fix: patch test

* fix: add new tests to be more robust

* fix: patch the prompt, now it works more reliably

* fix: typo
2025-09-01 11:09:02 -07:00
cthomas
8d1389146a feat: support deny tool call request (#4334) 2025-09-01 10:33:18 -07:00
jnjpng
c9c9e727b8 fix: retry on MALFORMED_FUNCTION_CALL for gemini [LET-4089]
---------

Co-authored-by: Letta Bot <noreply@letta.com>
2025-09-01 07:26:13 -07:00
cthomas
86b073d726 feat: support approve tool call request (#4333) 2025-08-31 11:26:21 -07:00
Matthew Zhou
0854ba0d01 feat: Support timestamp filtering for archival memories [LET-3469] (#4330)
Finish temporal filtering
2025-08-30 19:31:07 -07:00
cthomas
6f9fa6ae44 feat: add input validation for messages field (#4328) 2025-08-29 22:06:12 -07:00
cthomas
9d03869287 feat: add error handling for approval response attempt (#4326)
* feat: add error handling for approval response attempt

* add one more error case

* improve error messages
2025-08-29 20:39:28 -07:00
cthomas
b93ae3d554 chore: bump client version (#4327) 2025-08-29 17:25:22 -07:00
cthomas
2240e0466c fix: modify approvals openapi overrides (#4324) 2025-08-29 16:55:45 -07:00
cthomas
fd8df455a4 feat: bump client versions with new human in the loop schemas [LET-4111] (#4322)
feat: bump client versions with new human in the loop schemas
2025-08-29 16:44:44 -07:00
Kian Jones
b28b59a49f 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
Charles Packer
5f9210b808 fix(core): update default value [LET-4117] (#4321)
* fix(core): update default value

* fix: just stage just publish

* fix(core): temporary hardcoding of the anthropic max tokens

* fix(core): patch the gemini
2025-08-29 16:42:19 -07:00
cthomas
b8c2f42d33 feat: add support for approval request creation (#4313) 2025-08-29 15:23:02 -07:00
cthomas
bfd6030f72 feat: make new message create type field optional [LET-4116] (#4319)
feat: make new message create type field optional
2025-08-29 15:22:34 -07:00
Matthew Zhou
35103b3a9f test: Add test for archival tag compilation into system prompt [LET-4114] (#4312)
Add tests and thread created_at
2025-08-29 13:35:19 -07:00
cthomas
d2f21df56f feat: add new approval message types to letta message union [LET-4113] (#4311)
feat: add new approval message types to letta message union
2025-08-29 13:32:31 -07:00
cthomas
bb87cc68c7 feat: add approval create input to messages endpoints [LET-4110] (#4309)
* feat: add approval create input to messages endpoints

* rename discriminator tag

* add base class with default

* add field validator

* exclude new type field from agent file schema
2025-08-29 13:16:03 -07:00
Matthew Zhou
598b62462c fix: Fix test managers (#4310)
* Fix test managers

* Mock
2025-08-29 13:03:06 -07:00
cthomas
430cc0bc4d refactor: port letta message conversion into helpers (#4302)
* refator: port letta message conversion into helpers

* fix naming

* use extend not append

* add otid handling
2025-08-29 13:02:46 -07:00
Sarah Wooders
5b5b659cef chore: bump version 0.11.7 (#4306)
* bump version

* run just api
2025-08-29 12:59:02 -07:00
Matthew Zhou
b1f2e8b2bc 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
cthomas
1815e20161 feat: remove stream_steps reference from api docs [LET-4109] (#4308)
feat: remove stream_steps reference from api docs
2025-08-29 11:20:32 -07:00
Kian Jones
fecf6decfb 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
e6c2c2121e feat: add requires approval logic to tool rules solver (#4294) 2025-08-28 17:06:46 -07:00
Matthew Zhou
c1f8c48818 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
2d19903252 feat: add new modify approvals api (#4288)
* feat: add new modify approvals api

* remove path params override
2025-08-28 16:45:07 -07:00
cthomas
19197afd1e feat: add new approval request message objects (#4291) 2025-08-28 16:44:48 -07:00
cthomas
e3d3bc09eb feat: add new default_requires_approval flag on tools (#4287) 2025-08-28 15:38:59 -07:00
cthomas
f99fbfa280 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
b0dadf84e5 feat: Add hybrid search on turbopuffer [LET-4096] (#4284)
Add hybrid search
2025-08-28 13:10:25 -07:00
Matthew Zhou
641eb0354f 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
Sarah Wooders
58be205098 chore: patch update tools (#4090)
* patch update tools

* update tool patch

* fallback to generation for legacy tools

* avoid re-parsing source if json schema exists

* fix more tests

* remove asssert

* fix

* update

* update

* update

* Fix tests

---------

Co-authored-by: Matt Zhou <mattzh1314@gmail.com>
2025-08-28 11:34:36 -07:00
cthomas
89932ff90c feat: clean up legacy deepseek api call logic [LET-4087] (#4275)
feat: clean up legacy deepseek api call logic

Co-authored-by: Shubham Naik <shub@letta.com>
2025-08-28 11:12:28 -07:00
Matthew Zhou
d797296032 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
Shubham Naik
a64f500a8d feat: fix agentfile in clooud [PRO-1013] (#4271)
* feat: fix agentfile in clooud

* chore; fix lint

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-08-28 09:16:46 -07:00
Shubham Naik
52bcd8e83a fix: model not displaying properly [PRO-1072] (#4267)
* chore: fix model display

* chore: new ts

* chore: fix model rendering

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-08-28 07:58:52 -07:00
cthomas
3e6a223d17 feat: add invalid_llm_response stop reason [LET-4083] (#4269)
* feat: add invalid_llm_response stop reason

* add sqllite support

* simply skip for sqllite

* fix imports

* fix isort
2025-08-27 17:07:47 -07:00
cthomas
3dd5747627 feat: move deepseek to new agent loop [LET-4081] (#4266)
* feat: move deepseek to new agent loop

* fixes
2025-08-27 16:50:34 -07:00
Kian Jones
f5931f3a2f feat: add trufflehog to precommit (#4252)
* add trufflehog

* add to readme

* use their docs
2025-08-27 15:33:33 -07:00
jnjpng
238dac2482 fix: test_mcp.py tests [LET-4075]
* fix tests

* update venv cleanup
2025-08-27 15:04:47 -07:00
Sarah Wooders
6e628a93f7 feat: support overriding embedding handle [LET-4021] (#4224) 2025-08-27 14:54:17 -07:00
Matthew Zhou
13d8eae9ef chore: Move environment to settings [LET-4080] (#4265)
Move environment to settings
2025-08-27 14:52:35 -07:00
cthomas
49bfd4fba0 fix: add timeout to test_sdk_client.py test (#4262) 2025-08-27 14:37:06 -07:00
cthomas
a3e194e913 fix: sonnet send message tests [LET-4074] (#4260)
* fix: sonnet send message tests

* one more check
2025-08-27 13:51:21 -07:00
cthomas
27f7e831ec feat: update timeout for sdk tests [LET-4070] (#4256)
feat: update timeout for sdk tests

Co-authored-by: jnjpng <jin@letta.com>
2025-08-27 13:45:29 -07:00
cthomas
a1e341fd5d fix: sdk tests [LET-4071] (#4258)
fix: sdk tests
2025-08-27 13:02:53 -07:00
Matthew Zhou
1ca8c310b8 fix: Fix a bunch of failing tests [LET-4065] (#4249)
* Finish fixing async loop for test_agent_serialization_v2

* Fix tests

* Remove rounding for sqlite

---------

Co-authored-by: Shubham Naik <shub@letta.com>
2025-08-27 12:48:03 -07:00
cthomas
6d4eaab96c fix: letta hosted embedding dim (#4257) 2025-08-27 12:41:14 -07:00
cthomas
3cd746456a feat: asyncify groups operations [LET-4068] (#4254)
feat: asyncify groups operations
2025-08-27 12:00:53 -07:00