Commit Graph

229 Commits

Author SHA1 Message Date
Matthew Zhou
2fa546e15d chore: Move environment to settings [LET-4080] (#4265)
Move environment to settings
2025-08-27 14:52:35 -07:00
cthomas
4ed307f98f fix: test managers failure on main [LET-4061] (#4243)
fix: test managers failure on main
2025-08-27 10:11:33 -07:00
Sarah Wooders
38c251b01b 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
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
b3704e47be feat: Support override tool functionality to agent file v2 (#4092) 2025-08-21 16:58:19 -07:00
Matthew Zhou
223c883205 feat: Make embedding async (#4091) 2025-08-21 16:52:23 -07:00
Matthew Zhou
a2f4ca5f89 fix: Fix bugs with exporting/importing agents with files (#4089) 2025-08-21 16:23:37 -07:00
Matthew Zhou
7ed6d1dbaa feat: Add endpoint to list files attached to an agent (#4082) 2025-08-21 13:57:39 -07:00
Kian Jones
74ffa2d60e fix(ci): test_managers missing uuid import (#4049) 2025-08-20 11:52:43 -07:00
Matthew Zhou
0fc13eecb8 feat: Fix test managers (#4024) 2025-08-19 15:26:42 -07:00
Sarah Wooders
ad1987639c fix: fix various ease of use problems (#3934)
Co-authored-by: Matt Zhou <mattzh1314@gmail.com>
2025-08-15 00:07:12 -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
jnjpng
e22dd892d9 fix: delete associated mcp oauth sessions on delete and link existing mcp oauth sessions on create
Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local>
2025-08-12 15:32:33 -07:00
Matthew Zhou
609bcf84f2 feat: Add comprehensive error tracking to steps table (#3765) 2025-08-06 20:19:29 -07:00
Kevin Lin
e20f4eca92 fix: update default include_base_tool_rules to None (#3762)
Co-authored-by: Matthew Zhou <mattzh1314@gmail.com>
2025-08-06 15:58:29 -07:00
Andy Li
76679e3ecc feat: track metrics for runs in db 2025-08-06 15:46:50 -07:00
Kevin Lin
669b54a745 feat: exclude stronger models from default base tool rules (#3703)
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
2025-08-05 20:33:05 +00:00
cthomas
28da313442 chore: deprecate orm enum file (#3724) 2025-08-04 11:59:55 -07:00
Matthew Zhou
25086518cd feat: Implement archival sharing (#3689) 2025-08-01 23:34:49 -07:00
Sarah Wooders
f3f7660fb1 feat: change default agent type to memgpt_v2_agent (#3624) 2025-07-31 16:14:13 -07:00
Andy Li
277c26a58e feat: modal sandbox 2025-07-30 11:25:40 -07:00
Matthew Zhou
b16f5ffc99 feat: Polishing open files tools (#3575)
Co-authored-by: Charles Packer <packercharles@gmail.com>
Co-authored-by: Shubham Naik <shub@letta.com>
Co-authored-by: Shubham Naik <shub@memgpt.ai>
Co-authored-by: cthomas <caren@letta.com>
Co-authored-by: jnjpng <jin@letta.com>
Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local>
Co-authored-by: Cameron Pfiffer <cameron@pfiffer.org>
Co-authored-by: Kian Jones <11655409+kianjones9@users.noreply.github.com>
Co-authored-by: Kian Jones <kian@Kians-MacBook-Pro.local>
2025-07-29 15:46:51 -07:00
Kian Jones
59e8a27a8c fix(ci): Flaky test fix (#3629) 2025-07-29 14:58:52 -07:00
jnjpng
cf8c59aab9 feat: allow mcp authentication overrides per agent (#3318)
Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local>
2025-07-28 18:20:58 -07:00
Matthew Zhou
84ea52172a feat: Add ability to disable reasoning (#3594) 2025-07-28 15:30:10 -07:00
jnjpng
82fef362be fix: test_agent_serialization_v2.py and use bulk fetch when fetching mcp servers
Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local>
2025-07-25 18:13:05 +00:00
jnjpng
bc471c6055 feat: support mcp server export/import with agent files
Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local>
2025-07-24 18:17:08 -07:00
Matthew Zhou
66047d54f7 fix: Fix test managers state transition tests (#3551) 2025-07-24 15:14:00 -07:00
Matthew Zhou
be7f4be4d8 fix: Fix state transitions for file processing (#3541) 2025-07-24 13:48:08 -07:00
Kian Jones
694a6d2371 fix(ci): test_managers test was flaky on SQLite (#3520) 2025-07-24 10:52:51 -07:00
Kian Jones
aace507b8f feat: Add support for vectors in SQLite (#3505) 2025-07-23 16:09:06 -07:00
Matthew Zhou
1a4aeb5f9f feat: Add transition state validation (#3509) 2025-07-23 14:08:41 -07:00
Matthew Zhou
2744a93375 feat: Bulk remove from context window on source detach (#3495) 2025-07-22 17:22:51 -07:00
Matthew Zhou
fa58214a99 feat: Improve attach/detach missing file tools performance (#3486) 2025-07-22 15:35:42 -07:00
Matthew Zhou
29573e4d3f feat: Add per-agent file management controls with context-aware defaults (#3467) 2025-07-22 10:43:37 -07:00
Matthew Zhou
e68f563b03 feat: Add bulk source upsert mechanism (#3456) 2025-07-21 14:52:20 -07:00
Matthew Zhou
16860316a1 feat: Reduce database calls in import/export agent file (#3455) 2025-07-21 11:27:21 -07:00
cthomas
e8643af740 fix: remove fk constraint test (#3444) 2025-07-20 22:36:03 -07:00
cthomas
51611a85c0 feat: skip job load in step logging (#3433) 2025-07-20 14:41:40 -07:00
cthomas
13994d779b feat: remove organization from tool pydantic schema (#3430) 2025-07-20 00:00:31 -07:00
cthomas
b0e8fa6d4d feat: remove organization from blocks pydantic schema (#3428) 2025-07-19 23:42:19 -07:00
cthomas
cadc040f42 feat: remove organization from pydantic message model (#3411) 2025-07-19 09:28:54 -07:00
Kian Jones
f4659c9e01 feat(sqlite): CI Tests for Alembic and SQLite (#3358)
Co-authored-by: Matt Zhou <mattzh1314@gmail.com>
2025-07-17 18:04:13 -07:00
Matthew Zhou
8a8aafb3fe feat: add include_detailed_per_source_metadata flag to sources metadata endpoint (#3371) 2025-07-16 17:10:41 -07:00
Matthew Zhou
8958f266ad feat: Establish agent file schema v2 and achieve feature parity with v1 (#3235) 2025-07-16 14:49:20 -07:00
Matthew Zhou
c6ff04b4da feat: Integrate performant validate_agent_exists_async (#3350) 2025-07-15 17:15:33 -07:00
Matthew Zhou
c94b227a32 feat: Improve performance on files related data models (#3285) 2025-07-10 18:00:35 -07:00
cthomas
64058c407d fix: sync import in dispatch callback (#3275) 2025-07-10 15:03:01 -07:00
Matthew Zhou
31a9617965 feat: Add duplication handling behavior (#3273) 2025-07-10 13:16:01 -07:00