Commit Graph

21 Commits

Author SHA1 Message Date
Andy Li
acfdab2ced 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
45c4dbd5e8 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
Matthew Zhou
41fff523dc fix: Fix letta agent batch tests (#3524) 2025-07-23 18:15:45 -07:00
Andy Li
904d9ba5a2 chore: strings lint cleanup (#3374) 2025-07-18 09:20:45 -07:00
cthomas
2a39cf35d4 chore: move agent step state def (#2923) 2025-06-19 16:04:52 -07:00
Sarah Wooders
34df96bf2c feat: add MCP servers into a table and MCP tool execution to new agent loop (#2323)
Co-authored-by: Matt Zhou <mattzh1314@gmail.com>
Co-authored-by: Kian Jones <11655409+kianjones9@users.noreply.github.com>
2025-05-23 16:22:16 -07:00
cthomas
4151c05876 feat(asyncify): more batch db calls (#2350) 2025-05-22 23:12:11 -07:00
cthomas
6f72ac0c3a feat(asyncify): agent batch sync db calls (#2348) 2025-05-22 15:33:27 -07:00
Matthew Zhou
b0367cf814 fix: Fix voice agent and tests (#2305) 2025-05-21 11:05:54 -07:00
Matthew Zhou
8e6602b1f6 fix: Fix test letta agent batch (#2295) 2025-05-21 07:25:49 -07:00
cthomas
65e32082f7 feat: convert many methods to async (#2193) 2025-05-15 12:09:40 -07:00
Andy Li
a099e876f8 feat: async list/prepare messages (#2181)
Co-authored-by: Caren Thomas <carenthomas@gmail.com>
2025-05-15 00:34:04 -07:00
Matthew Zhou
f23602d919 feat: Add message listing for a letta batch (#1982) 2025-05-02 11:14:03 -07:00
Matthew Zhou
55c51f2d28 test: Add wait for server startup for letta batch tests (#1916) 2025-04-28 15:23:53 -07:00
Matthew Zhou
213cad7b47 feat: Fix anthropic batch results call (#1853) 2025-04-23 13:14:56 -07:00
Matthew Zhou
2ef2bde2e1 test: Add stateful tool test for letta batch agent (#1824) 2025-04-21 15:47:20 -07:00
Matthew Zhou
715c5d5cdb feat: Add more tests for batch agent loop (#1819) 2025-04-21 13:32:06 -07:00
Matthew Zhou
15fefe0e1a feat: Add callback for jobs (#1776)
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
2025-04-18 10:48:04 -07:00
Sarah Wooders
41d85c4114 feat: add batch job tracking and generate batch APIs (#1727)
Co-authored-by: Matt Zhou <mattzh1314@gmail.com>
2025-04-17 17:02:07 -07:00
Matthew Zhou
cead849f19 feat: Implement resume step after request in new batch agent loop (#1676) 2025-04-15 13:56:22 -07:00
Matthew Zhou
36a23b49ef feat: Debug and add comprehensive testing for step_until_request (#1669) 2025-04-10 14:42:33 -07:00