Commit Graph

53 Commits

Author SHA1 Message Date
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
cthomas
875908cb44 feat: add include param to all backend list agents helpers (#5699) 2025-10-24 15:14:20 -07: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
7aff9aa659 feat: error handling for rest api for agents + blocks [LET-4625] (#5142) 2025-10-07 17:50:49 -07:00
Sarah Wooders
53786ee102 feat: asyncify test_manager.py [LET-4494] (#4890)
* add test_agent_manager.py

* created shared conftest

* add test_tool_manager.py

* add tag tests

* add message manager tests

* add blocks

* add org

* add passage tests

* add archive manager

* add user manager

* add identity

* add job manager tests

* add sandbox manager

* add file manager

* add group managers

* add mcp manager

* fix batch tests

* update workflows

* fix test_managers.py

* more tests

* comment out old test and add file

---------

Co-authored-by: Matthew Zhou <mattzh1314@gmail.com>
2025-10-07 17:50:46 -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
Shubham Naik
8c73495bef feat: memory blocks viewer (#3610)
Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-07-29 16:00:43 -07:00
Andy Li
1959109821 feat: support for project_id and backfills 2025-07-25 13:06:12 -07:00
cthomas
ebc12ee5c3 feat: add pagination to list agents for blocks endpoint (#3476) 2025-07-22 13:33:00 -07:00
cthomas
8fe4d8e98d feat: add pagination to list blocks endpoint (#3474) 2025-07-22 13:32:42 -07:00
cthomas
62c7d49d6c feat: use no refresh in blocks creation (#3436) 2025-07-20 20:38:07 -07:00
cthomas
4f37a39741 feat: remove agents SELECTIN from blocks model (#3427) 2025-07-19 23:04:33 -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
3d897a446e fix: skip agent joins in blocks endpoint (#3226) 2025-07-08 12:38:08 -07:00
cthomas
064f87e722 chore: consolidate enum definitions (#2919) 2025-06-19 16:04:12 -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
74f4207886 feat: default skip is deleted check in queries (#2531) 2025-05-29 16:10:41 -07:00
Sarah Wooders
13098613d3 fix: minor patches for sources (#2410) 2025-05-23 21:43:36 -07:00
Sarah Wooders
06ecf8ede9 feat (asyncify): async batch block creation for agent creation (#2397) 2025-05-23 18:07:04 -07:00
cthomas
edbddd746d feat(asyncify): migrate count blocks (#2374) 2025-05-23 09:53:43 -07:00
cthomas
9ac0fa2aef feat(asyncify): migrate create block (#2368) 2025-05-23 09:07:13 -07:00
cthomas
6c1b189080 feat: add db tracing to otel (#2337) 2025-05-22 13:47:49 -07:00
cthomas
18e30dbfba feat(asyncify): remove non async memory methods (#2245) 2025-05-20 17:56:54 -07:00
cthomas
5ed96bab8d fix: missing asyncio import (#2239) 2025-05-17 23:11:00 -07:00
cthomas
e7d4b5e49e fix: get agent blocks async (#2237) 2025-05-17 22:36:07 -07:00
cthomas
4a578f5391 feat(asyncify): migrate get block agents (#2226) 2025-05-16 15:18:34 -07:00
cthomas
2cd4ebd348 feat: convert more methods to async (#2200) 2025-05-15 13:44:58 -07:00
cthomas
42aa8e2b69 feat: make get blocks async (#2162) 2025-05-13 15:09:25 -07:00
cthomas
513f09979a feat: skip adding default blocks on server start (#2131) 2025-05-12 17:54:55 -07:00
cthomas
d8a51764cc feat: skip relationship joins for blocks fetch (#2130) 2025-05-12 17:54:10 -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
ff6a7ab569 feat: Add bulk rethink memory for letta agent batches (#2002)
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
Co-authored-by: cthomas <caren@letta.com>
2025-05-05 15:24:59 -07:00
Matthew Zhou
d977a8852c feat: Improve agent creation time (#1792) 2025-04-18 16:02:48 -07:00
cthomas
15c7ad0f87 fix: memory block refresh bug (#1668) 2025-04-10 15:59:41 -07:00
Matthew Zhou
0446cecc0d feat: Rework to make robust to gaps (#1498) 2025-04-01 10:05:40 -07:00
Matthew Zhou
557359a4c6 feat: Add ability to redo to more recent checkpoint (#1496) 2025-03-31 17:35:51 -07:00
Matthew Zhou
8863320c4f feat: Implement forward deletes during undo + checkpoint (#1493) 2025-03-31 17:04:48 -07:00
Matthew Zhou
78ec7a54f7 feat: Write functionality for undoing block checkpoints (#1490) 2025-03-31 16:56:22 -07:00
Matthew Zhou
24fbdc6032 feat: Add block history tables (#1489) 2025-03-31 16:39:23 -07:00
Matthew Zhou
c343abb75e chore: Various bug fixes (#1350)
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
Co-authored-by: cthomas <caren@letta.com>
Co-authored-by: tarunkumark <tkksctwo@gmail.com>
Co-authored-by: Kevin Lin <klin5061@gmail.com>
Co-authored-by: Charles Packer <packercharles@gmail.com>
Co-authored-by: Miao <one.lemorage@gmail.com>
Co-authored-by: Krishnakumar R (KK) <65895020+kk-src@users.noreply.github.com>
Co-authored-by: Shubham Naik <shub@memgpt.ai>
Co-authored-by: Shubham Naik <shub@letta.com>
Co-authored-by: Will Sargent <will.sargent@gmail.com>
Co-authored-by: Shubham Naik <shubham.naik10@gmail.com>
Co-authored-by: mlong93 <35275280+mlong93@users.noreply.github.com>
Co-authored-by: Mindy Long <mindy@letta.com>
Co-authored-by: Stephan Fitzpatrick <stephan@knowsuchagency.com>
Co-authored-by: dboyliao <qmalliao@gmail.com>
Co-authored-by: Jyotirmaya Mahanta <jyotirmaya.mahanta@gmail.com>
Co-authored-by: Nicholas <102550462+ndisalvio3@users.noreply.github.com>
Co-authored-by: Tristan Morris <tristanbmorris@gmail.com>
Co-authored-by: Daniel Shin <88547237+kyuds@users.noreply.github.com>
Co-authored-by: Jindřich Šíma <67415662+JindrichSima@users.noreply.github.com>
Co-authored-by: Azin Asgarian <31479845+azinasg@users.noreply.github.com>
Co-authored-by: Connor Shorten <connorshorten300@gmail.com>
Co-authored-by: Lucas Mohallem Ferraz <ferraz.m.lucas@gmail.com>
Co-authored-by: kyuds <kyuds@everspin.co.kr>
2025-03-20 11:06:45 -07:00
cthomas
6b4533e7cb feat: add identities to blocks (#1219) 2025-03-12 12:09:31 -07:00
Matthew Zhou
71805b2a22 feat: Add tool calling to fast chat completions (#1109) 2025-02-25 15:13:35 -08:00
Matthew Zhou
b5e09536ae feat: Serialize agent state simple fields and messages (#1012) 2025-02-18 11:01:10 -08:00
Matthew Zhou
377d8f8051 feat: Add list_agents_for_block endpoint (#759) 2025-01-23 17:28:08 -08:00