Commit Graph

32 Commits

Author SHA1 Message Date
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
jnjpng
6e2c002af3 feat: add stainless pagination for top level arrays with order by [LET-5800] (#5687)
* base

* revert openapi

* union

* simplify

* stainless

* stainless

* fix

* fix test

* generate

---------

Co-authored-by: Letta Bot <noreply@letta.com>
2025-10-24 15:14:31 -07:00
Ari Webb
272f055b4a feat: attach/detach identities route on blocks and agents, move archives attach/detach routes to agents [LET-4428] (#5708)
* deprecate ids for identity endpoints in favor of attach

* move archive attach/detach to agent

* new identities routes

* overrides for path

---------

Co-authored-by: Ari Webb <ari@letta.com>
2025-10-24 15:14:20 -07: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
cthomas
f439457f72 feat: add new identity agent and blocks routes (#2934) 2025-09-15 20:49:35 -07:00
cthomas
4473bf8aee feat: add pagination to identities endpoint (#2898) 2025-09-15 10:46:02 -07:00
Kian Jones
ca6cfa5914 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
Andy Li
905a9dd4bb chore: cleanup database detection 2025-07-18 17:12:56 -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
Andy Li
80f6e97ca9 feat: otel metrics and expanded collecting (#2647)
(passed tests in last run)
2025-06-05 17:20:14 -07:00
cthomas
df8d285db3 fix: identities session management (#2555) 2025-05-30 13:58:04 -07:00
cthomas
f5aa97f02b feat: disable session reuse after close (#2547) 2025-05-30 12:51:19 -07:00
cthomas
279aab28e9 feat: add db tracing to otel (#2337) 2025-05-22 13:47:49 -07:00
cthomas
dd90067fab feat(asyncify): fully convert identities module (#2244) 2025-05-18 21:21:35 -07:00
cthomas
cec4b89c27 feat(asyncify): migrate identities routes (#2234) 2025-05-18 20:45:57 -07:00
Andy Li
8e2417aa2f feat: async db client (#2076) 2025-05-12 17:15:14 -07:00
Andy Li
223e2b4ca2 feat: add endpoints for counts of agents, identities, sources, & tools (#1865) 2025-04-24 17:42:11 -07:00
cthomas
1c6616b52c fix: fern identity create node sdk nesting (#1679) 2025-04-11 11:18:32 -07:00
cthomas
03458a3b29 feat: add upsert identities properties route (#1672) 2025-04-10 17:08:20 -07:00
cthomas
287a836d20 test: add sdk tests (#1569) 2025-04-10 12:04:40 -07:00
cthomas
69ab911682 feat: add identities to blocks (#1219) 2025-03-12 12:09:31 -07:00
cthomas
e1ea5c3cdc chore: add identities tests (#1204) 2025-03-05 16:22:20 -08:00
Shubham Naik
572f320143 chore: identities follow up (#1118)
Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-02-26 09:07:39 -08:00
cthomas
6a20838d85 fix: persist properties on identities update (#1110) 2025-02-25 12:17:19 -08:00
cthomas
4af770fd09 feat: make identities many to many (#1085) 2025-02-20 16:33:24 -08:00
Shubham Naik
dbb28af496 feat: add create identity (#1064) 2025-02-19 22:16:21 -08:00
Shubham Naik
51578ce61d fix: attach actor to list identities (#1060)
Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-02-19 11:31:02 -08:00
cthomas
5a5c6dad88 feat: add remaining identities routes (#1049)
same as #1010
2025-02-18 17:14:54 -08:00
cthomas
bd3a175452 feat: add list identities route (#1046)
same as #1005
2025-02-18 16:49:07 -08:00
cthomas
3a2a337256 feat: add identifier key to agents (#1043)
same as https://github.com/letta-ai/letta-cloud/pull/1004
2025-02-18 16:06:09 -08:00