Commit Graph

32 Commits

Author SHA1 Message Date
cthomas
b08e55c0ee fix: sleeptime db timeout [LET-6692] (#8126)
fix: sleeptime db timeout
2026-01-12 10:57:47 -08:00
cthomas
9a95a8f976 fix: duplicate session commit in step logging (#7512)
* fix: duplicate session commit in step logging

* update all callsites
2026-01-12 10:57:19 -08:00
jnjpng
591420876a fix: correct decorator order for trace_method and raise_on_invalid_id (#7226)
Swap the order of @trace_method and @raise_on_invalid_id decorators
across all service managers so that @trace_method is always the first
wrapper applied to the function (positioned directly above the method).

This ensures the ID validation happens before tracing begins, which is
the intended execution order.

Files modified:
- agent_manager.py (23 occurrences)
- archive_manager.py (11 occurrences)
- block_manager.py (7 occurrences)
- file_manager.py (6 occurrences)
- group_manager.py (9 occurrences)
- identity_manager.py (10 occurrences)
- job_manager.py (7 occurrences)
- message_manager.py (2 occurrences)
- provider_manager.py (3 occurrences)
- sandbox_config_manager.py (7 occurrences)
- source_manager.py (5 occurrences)
- step_manager.py (13 occurrences)
2025-12-17 17:31:02 -08:00
Ari Webb
787740e3cb feat: deprecate shared_block_ids, and add groups, blocks [LET-4430] (#5746)
* deprecate field

* add detach/attach, verify user can do them

* just stage publish api

---------

Co-authored-by: Ari Webb <ari@letta.com>
2025-11-13 15:35:34 -08:00
Kian Jones
45065297a0 feat: runtime validation for ids for internal managers calls (#5544)
* claude coded first pass

* fix test cases to expect errors instead

* fix this

* let's see how letta-code did

* claude

* fix tests, remove dangling comments, retrofit all managers functions with decorator

* revert to main for these since we are not erroring on invalid tool and block ids

* reorder decorators

* finish refactoring test cases

* reorder agent_manager decorators and fix test tool manager

* add decorator on missing managers

* fix id sources

* remove redundant check

* uses enum now

* move to enum
2025-10-24 15:13:47 -07:00
Sarah Wooders
4df0a27eb0 chore: remove sync db (#4873) 2025-10-07 17:50:45 -07:00
Kian Jones
b8e9a80d93 merge this (#4759)
* wait I forgot to comit locally

* cp the entire core directory and then rm the .git subdir
2025-09-17 15:47:40 -07:00
Kian Jones
22f70ca07c chore: officially migrate to submodule (#4502)
* remove apps/core and apps/fern

* fix precommit

* add submodule updates in workflows

* submodule

* remove core tests

* update core revision

* Add submodules: true to all GitHub workflows

- Ensure all workflows can access git submodules
- Add submodules support to deployment, test, and CI workflows
- Fix YAML syntax issues in workflow files

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

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

* remove core-lint

* upgrade core with latest main of oss

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-09-09 12:45:53 -07:00
Shubham Naik
eb21668f35 feat: add hidden property to group and blocks [PRO-1145] (#4415)
* feat: add hidden property to group and blocks

* feat: add hidden property to group and blocks

* chore: bup

* chore: add hidden property

* chore: next

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-09-04 10:53:16 -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
3cd746456a feat: asyncify groups operations [LET-4068] (#4254)
feat: asyncify groups operations
2025-08-27 12:00:53 -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
58081e3cea feat: support for providers 2025-07-22 16:09:50 -07:00
Andy Li
04e9f43220 chore: strings lint cleanup (#3374) 2025-07-18 09:20:45 -07:00
Matthew Zhou
9dc39ae651 feat: Make performance improvements to list agent tools (#3295) 2025-07-11 14:50:30 -07:00
cthomas
9a20aa3aae feat: migrate modify group to async (#2670) 2025-06-06 11:05:09 -07:00
Andy Li
d2252f2953 feat: otel metrics and expanded collecting (#2647)
(passed tests in last run)
2025-06-05 17:20:14 -07:00
cthomas
682b997c65 feat(asyncify): migrate retrieve group (#2494) 2025-05-28 14:13:02 -07:00
cthomas
4f1e783fa1 feat(asyncify): migrate sleeptime agent creation (#2361) 2025-05-23 14:38:37 -07:00
cthomas
db520f9a22 feat: add sleeptime to new agent loop (#2263) 2025-05-22 23:22:51 -07:00
cthomas
6c1b189080 feat: add db tracing to otel (#2337) 2025-05-22 13:47:49 -07:00
Andy Li
600ccb35e7 feat: async db client (#2076) 2025-05-12 17:15:14 -07:00
Andy Li
b0a9aa5f42 feat: endpoint to count blocks and groups (#1975) 2025-05-05 17:09:13 -07:00
Matthew Zhou
03248bee82 feat: Add safety checks to buffer length update and tests to updating voice sleeptime (#1959) 2025-04-30 18:08:47 -07:00
Matthew Zhou
57218d2b8f feat: Finish adding min/max buffer to voice sleeptime manager group config (#1954) 2025-04-30 17:20:53 -07:00
Matthew Zhou
5e5153e928 feat: Adjust prompts and integrate voice sleeptime group into agent manager (#1927) 2025-04-29 13:43:59 -07:00
cthomas
c05be75342 feat: always trigger sleeptime agent on first step (#1767) 2025-04-17 16:01:11 -07:00
cthomas
b1a3f4afc7 chore: rename background to sleeptime (#1558) 2025-04-04 09:16:59 -07:00
cthomas
860f8707cf feat: enable sleeptime agent creation (#1523) 2025-04-02 14:12:11 -07:00
cthomas
bc232ca56b feat: background multi-agent group for sleeptime agent (#1508) 2025-04-01 15:00:45 -07:00
cthomas
1a5c08c62b test: add more robust multi-agent testing (#1444) 2025-03-28 14:21:54 -07:00
cthomas
5304831a8e feat: multi-agent (#1243) 2025-03-12 22:51:55 -07:00