Commit Graph

631 Commits

Author SHA1 Message Date
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
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
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
5ade6bb236 fix: gemini flash integration test [LET-4060] (#4242)
* fix: gemini flash integration test

* also update google flash

* catch error in test

* revert test changes

* do try catch again

* remove try catch from streaming tests

* add try catch for summarize test also
2025-08-27 11:59:15 -07:00
cthomas
74ee4dd4fe fix: test embeddings missing fixture [LET-4062] (#4244)
fix: test embeddings missing fixture
2025-08-27 10:11:56 -07:00
cthomas
436706c410 fix: test managers failure on main [LET-4061] (#4243)
fix: test managers failure on main
2025-08-27 10:11:33 -07:00
Matthew Zhou
699a826c64 fix: Fix agent serialization tests (#4193)
Finish
2025-08-27 09:49:17 -07:00
cthomas
8887de4585 feat: add unit test for backgrounds filter [LET-4051] (#4230)
feat: add unit test for backgrounds filter
2025-08-27 09:40:57 -07:00
Sarah Wooders
250d8b8006 feat: add cloud template fields to blocks/groups/agents [LET-3979]
* commit

* fix tests

* add routes

* remove old fields

* remove entity from group

* generate, migrate

* update

* keep from_template, etc.

* keep block fields

* final

* generate

* pass tests

* generate

* keep defaults

---------

Co-authored-by: jin <jin@letta.com>
2025-08-26 23:17:06 -07:00
Andy Li
ff718d8c40 feat: uv migration (#3493)
* uv migration

smaller runners, freeze test runs, remove dev, ruff,hatchling, previw,
poetry, generates wheel, installs wheel, docker

* fix tests and dependency groups

* test fixes

* test fixing and main

* resolve merge conflict

* dev + test dependency group

* Test

* trigger CI

* trigger CI

* add debugging info

* trigger CI

* uv for reusable and sdk preview

* resolve mc and reformat black

* staged-api

* mypy

* fix fern

* prod Dockerfile

* model sweep, and project.toml and uvlock

* --group test -> --extra dev

* remove redundant --extra dev and rename tests to dev

* sdk backwards compat install sqlite

* install sqlite group for sdk-backwards-compat

* install uv on gh runner for cloud-api-integration-tests

* stage+publish

* pytest asyncio

* bug causing pytest package to get removed

* try to fix async event loop issues

* migrate to --with google-cloud-secret-manager

---------

Co-authored-by: Kian Jones <kian@letta.com>
2025-08-26 18:11:09 -07:00
Kian Jones
82495b68a3 chore(ci): Add uv support and use for unit tests (#4127)
* cherrypick just relevant commits?

* make work with poetry

* update poetry?

* regen?

* change tests and dev to dependency groups instead of optional extras

* Fix Poetry/UV compatibility issues

- Fix sqlite-vec dependency: Remove optional flag from Poetry section to match main deps
- Regenerate poetry.lock to sync with pyproject.toml changes
- Test both package managers successfully:
  - Poetry: `poetry install --with dev --with test -E postgres -E external-tools -E cloud-tool-sandbox`
  - UV: `uv sync --group dev --group test --extra postgres --extra external-tools --extra cloud-tool-sandbox`

Resolves Poetry lock sync errors and ensures sqlite-vec is available for tests.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* more robust pip install

* Fix fern SDK wheel installation in CI workflow

Replace unreliable command substitution with proper error handling:
- Check if directory exists before attempting to find wheels
- Store wheel file path in variable to avoid empty arguments
- Provide clear error messages when directory/wheels are missing
- Prevents "required arguments were not provided" error in uv pip install

Fixes: error: the following required arguments were not provided: <PACKAGE>

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* debugging

* trigger CI

* ls

* revert whl installation to -e

* programmatic HIT version insertion

* version templating properly

* set var properly

* labelling

* remove version insertion

* ?

* try using sed '2r /dev/stdin'

* version

* try again smh

* not trigger on poetry version

* only add once

* filter only for project not poetry

* hand re-construct the file

* save tail?

* fix docker command

* please please please

* rename test -> tests

* update poetry and rename group to -E

* move async into tests extra and regen lock files and add sqlite extra

* remove loading cached venv from cloud api integration

* add uv dependency to CI runners

* test removing the custom event loop

* regen poetry.lock and try to fix async tests

* wrap async pg exception and event loop tweak in plugins

* remove event loop from plugins test and remove caching from cloud-api-integration-test

* migrate all tests away from event loop for pytest-asyncio

* pin firecrawl

* pin e2b

* take claude's suggestion

* deeper down the claude rabbit hole

* increase timeout for httpbin.org

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-08-26 11:51:31 -07:00
jnjpng
a5e84cc80b feat: generate strict-compatible schema for MCP tools with optional fields
Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local>
2025-08-25 22:08:59 -07:00
Kevin Lin
f71bbfb41e fix: patch anthropic send message tests (#4173)
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
2025-08-25 21:17:08 -07:00
Matthew Zhou
9871bffdf2 fix: Add check status update flag to list (#4177) 2025-08-25 16:21:33 -07:00
cthomas
6c59bc8dea feat: add retrieve stream testing (#4168) 2025-08-25 16:13:59 -07:00
Sarah Wooders
f6c59b949c feat: add unit tests for embeddings (#4108)
Co-authored-by: Kian Jones <kian@letta.com>
Co-authored-by: Kian Jones <11655409+kianjones9@users.noreply.github.com>
2025-08-25 13:37:41 -07:00
cthomas
7605229216 feat: add redis client to CI for background mode tests (#4155) 2025-08-25 11:37:46 -07:00
Matthew Zhou
2ceb144afb feat: Add better error catching for files upload (#4145) 2025-08-24 16:46:57 -07:00
jnjpng
74029acb0d 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
Matthew Zhou
1be8b89031 feat: Support override tool functionality to agent file v2 (#4092) 2025-08-21 16:58:19 -07:00
Matthew Zhou
6010331064 feat: Make embedding async (#4091) 2025-08-21 16:52:23 -07:00
Matthew Zhou
a07c47b5b3 fix: Fix bugs with exporting/importing agents with files (#4089) 2025-08-21 16:23:37 -07:00
Matthew Zhou
c3eefbc3d6 fix: Fix 0 indexing for offset (#4086) 2025-08-21 14:29:51 -07:00
Matthew Zhou
a4860eb72d feat: Add endpoint to list files attached to an agent (#4082) 2025-08-21 13:57:39 -07:00
jnjpng
a2967ac497 fix: update mcp tool schema validation test
Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local>
2025-08-21 13:43:04 -07:00
cthomas
269c536530 feat: add new groq llm client LET-3943 (#3937)
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
2025-08-21 13:13:25 -07:00
Matthew Zhou
dcb689cbfa feat: Add basic test serialization tests (#4076) 2025-08-21 11:08:06 -07:00
Matthew Zhou
890dc5ad9a feat: Add tests for renaming files (#4066) 2025-08-20 16:23:03 -07:00
Kian Jones
5b70d554bb fix(ci): redo agentfile upload util and tweak secret (#4033) 2025-08-20 15:37:06 -07:00
Matthew Zhou
4fb0fe28b7 fix: Fix letta-free embeddings (#4055) 2025-08-20 13:33:31 -07:00
Matthew Zhou
647cc64814 feat: Add refresh functionality for files (#4053) 2025-08-20 13:17:59 -07:00
Kian Jones
1cb4d679ca fix(ci): test_managers missing uuid import (#4049) 2025-08-20 11:52:43 -07:00
Matthew Zhou
8abbdd3622 feat: Fix test managers (#4024) 2025-08-19 15:26:42 -07:00
Sarah Wooders
112f22297e fix: move to static parsing for python docstrings (#3973) 2025-08-17 15:16:13 -07:00
Andy Li
81993f23eb feat: tool function arguments passed in at runtime 2025-08-15 16:24:56 -07:00
Charles Packer
773a6452d1 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
Andy Li
bb9a298d11 fix: imports for mcp tests 2025-08-15 15:01:46 -07:00
Sarah Wooders
891da984a6 fix: fix various ease of use problems (#3934)
Co-authored-by: Matt Zhou <mattzh1314@gmail.com>
2025-08-15 00:07:12 -07:00
Charles Packer
b0f335bb69 feat: fix anthropic stream buffering issue (was a missing beta header) (#3933) 2025-08-14 22:26:56 -07:00
Kian Jones
6731f769ca test(include_pings): Add long-running tests (#3899) 2025-08-14 18:13:47 -07:00