Commit Graph

1635 Commits

Author SHA1 Message Date
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
cthomas
0d1282a09b feat: dont swallow application errors in streaming response [LET-4069] (#4253)
* feat: dont swallow application errors in streaming response

* change error back to exception
2025-08-27 11:59:43 -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
e190574a24 fix: hugging face embedding test [LET-4064] (#4246)
* fix: hugging face embedding test

* openapi sync
2025-08-27 11:58:03 -07:00
Matthew Zhou
ea1532d1c9 chore: Default to agent file v2 [LET-4063] (#4245)
Default to v2
2025-08-27 10:32:29 -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
Kian Jones
bcc8b0ecd5 chore: pull in necessary changes to finish uv migration for oss (#4237)
pull in necessary changes to finish uv migration for oss
2025-08-27 00:05:43 -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
Sarah Wooders
697fb09744 chore: bump version to 0.11.6 (#4235)
bump version
2025-08-26 21:16:14 -07:00
Sarah Wooders
0420f10bab fix: remove trace methods [LET-4059] (#4232)
remove trace methods
2025-08-26 20:47:09 -07:00
Kian Jones
e43ff8382f feat: finish uv migration (oss + desktop) (#4228)
* migrate desktop and add sqlite as a hard dependency in desktop

* migrate oss dockerfile as well
2025-08-26 20:32:27 -07:00
Kian Jones
46cba7aa74 remove double dev (#4227) 2025-08-26 18:35:45 -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
cthomas
11b447a02b feat: add gating to provider trace persistence in db (#4223)
* feat: make provider trace fetch result nullable

* feat: add flag for persisting provider trace to db
2025-08-26 15:58:26 -07:00
cthomas
07c155a1c2 feat: make provider trace fetch result nullable [PRO-1063] (#4222)
feat: make provider trace fetch result nullable
2025-08-26 15:57:02 -07:00
cthomas
e939407494 feat: add new llm client for deepseek [LET-4056] (#4219)
feat: add new llm client for deepseek
2025-08-26 15:14:09 -07:00
Kian Jones
3b96257693 chore: upgrade runner poetry and change npm nx commands to point to uv (#4218)
upgrade runner poetry and change npm nx commands to point to uv
2025-08-26 14:59:55 -07:00
cthomas
2173119a29 feat: pipe env vars through agent file v2 [LET-4054] (#4217)
feat: pipe env vars through agent file v2
2025-08-26 14:54:06 -07:00
cthomas
5f2e686310 feat: change env vars to json string [PRO-1061] (#4216)
feat: change env vars to json string
2025-08-26 14:53:27 -07:00
cthomas
b6b2bba7a7 feat: add error handling for background mode fetch [LET-4052] (#4210)
* feat: add error handling for background mode fetch

* improve redis error message

* fix typeerror

---------

Co-authored-by: Shubham Naik <shub@letta.com>
2025-08-26 14:33:29 -07:00
jnjpng
5cf80df22c LET-4053: chore: clean up old mcp client code
fix(LET-4053): clean up old mcp client code

Remove commented-out and unused files in functions/mcp_client:
- Deleted base_client.py (fully commented out)
- Deleted sse_client.py (fully commented out)
- Deleted stdio_client.py (fully commented out)
- Deleted empty __init__.py

Kept types.py and exceptions.py as they contain active code still being used.
2025-08-26 14:14:09 -07:00
cthomas
4a53a466e6 feat: add pagination to list runs endpoint (#4204) 2025-08-26 13:26:12 -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
cthomas
ea34fdeeb7 feat: add background filter to list runs endpoint (#4196) 2025-08-26 10:52:36 -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
Charles Packer
bb57f9cca4 fix: allow for send_message to be unterminated if the user requests it (#4169) 2025-08-25 21:11:14 -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
cthomas
8909fd257b feat: add new client.runs.stream endpoint (#4165) 2025-08-25 13:42:22 -07:00
cthomas
dc83ff9f52 feat: set 3hr ttl for streaming background jobs (#4167) 2025-08-25 13:39:06 -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
Kevin Lin
23eb087759 fix: pass thinking to anthropic client (#4150) 2025-08-25 13:36:55 -07:00
Sarah Wooders
f10f27a9ce fix: avoid using summarization agent when not using voice (#4097) 2025-08-25 13:23:24 -07:00
cthomas
755731ca12 feat: populate run id in streaming response (#4161) 2025-08-25 11:55:41 -07:00
cthomas
dc9b7f28f3 feat: populate seq_id in chunks for background mode (#4160) 2025-08-25 11:51:41 -07:00
cthomas
7605229216 feat: add redis client to CI for background mode tests (#4155) 2025-08-25 11:37:46 -07:00
cthomas
d8c98ec23a feat: add error chunk handling for background mode (#4158) 2025-08-25 11:12:16 -07:00
cthomas
ff83a5a24f feat: support background mode for step streaming (#4156) 2025-08-25 10:56:04 -07:00
cthomas
6a444e28f0 chore: bump sdk client package version (#4154) 2025-08-25 09:58:11 -07:00
cthomas
a3d4051f7e feat: add run id to stream response (#4152) 2025-08-25 09:43:45 -07:00