Commit Graph

73 Commits

Author SHA1 Message Date
jnjpng
099da97e7b fix: remove modal image creation logging and fix base imports (#6197)
base

Co-authored-by: Letta Bot <noreply@letta.com>
2025-11-24 19:09:32 -08:00
jnjpng
3b030d1bb0 fix: set default python version for modal (#6180)
update

Co-authored-by: Letta Bot <noreply@letta.com>
2025-11-24 19:09:32 -08:00
Sarah Wooders
5730f69ecf feat: modal tool execution - NO FEATURE FLAGS USES MODAL [LET-4357] (#5120)
* initial commit

* add delay to deploy

* fix tests

* add tests

* passing tests

* cleanup

* and use modal

* working on modal

* gate on tool metadata

* agent state

* cleanup

---------

Co-authored-by: Letta Bot <noreply@letta.com>
2025-11-13 15:36:56 -08:00
Kian Jones
6c377cdc81 chore(logs): Add resource usage logging to streaming, file uploads, mcp client, and model caches (#5925)
* adding log messages to track memory consumption

* add logging to sources, folders, agentfiles, and mcp clients

* memory logging for tool creation paths
2025-11-13 15:36:50 -08:00
Kian Jones
704d3b2d79 chore: refactor not to use warnings.warn (#5730)
* refactor not to use warnings.warn

* temp circular import fix maybe unecessary/bnad

* fix Deprecation warning

* fix deprecation warning and mcp thing?

* revert changes to mcp server test

* fix deprecation warning
2025-10-24 15:14:31 -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
Matthew Zhou
de7011e4de feat: Mark certain internal tools as safe to execute concurrently [LET-5614] (#5553)
* Change execution pattern depending on

* Increase efficiency

* Mark certain tools as parallel safe
2025-10-24 15:12:26 -07:00
Sarah Wooders
e07a589796 chore: rm composio (#5151) 2025-10-07 17:50:49 -07:00
Sarah Wooders
d0d36a4b07 fix: remove json schema generation from tool validation [LET-4509] (#4964)
* patch integration test

* create default user and org

* rm

* patch

* add testing

* remove validation for schemas from pydantic object

* add file

* patch tests

* fix more tests

* fix managers

* fix sdk test

* patch schema tests

* Comment out name in update

* patch test

* patch

* add another test
2025-10-07 17:50:46 -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
98e8fcdee6 feat: allow list tools by tool type [PRO-870] (#4036)
* feat: allow list tools by tool type

* chore: update list

* chore: respond to comments

* chore: refactor tools hella

* Add tests to managers

* chore: branch

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
Co-authored-by: Matt Zhou <mattzh1314@gmail.com>
2025-09-02 15:53:36 -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
Sarah Wooders
58be205098 chore: patch update tools (#4090)
* patch update tools

* update tool patch

* fallback to generation for legacy tools

* avoid re-parsing source if json schema exists

* fix more tests

* remove asssert

* fix

* update

* update

* update

* Fix tests

---------

Co-authored-by: Matt Zhou <mattzh1314@gmail.com>
2025-08-28 11:34:36 -07:00
Matthew Zhou
13d8eae9ef chore: Move environment to settings [LET-4080] (#4265)
Move environment to settings
2025-08-27 14:52:35 -07:00
Matthew Zhou
1be8b89031 feat: Support override tool functionality to agent file v2 (#4092) 2025-08-21 16:58:19 -07:00
Andy Li
1ff2434598 feat: typescript deps in ade 2025-08-15 15:49:57 -07:00
Andy Li
49f7216a14 docs: update for manager funcs 2025-08-15 13:55:10 -07:00
Charles Packer
d3aadd2714 fix: patch mcp attach bug (#3844) 2025-08-10 17:24:33 -07:00
Andy Li
ca6f474c4e feat: track metrics for runs in db 2025-08-06 15:46:50 -07:00
Matthew Zhou
47d8650f09 fix: Fix tool renaming if json schema is passed in (#3745) 2025-08-05 11:36:23 -07:00
cthomas
b4810633af chore: deprecate orm enum file (#3724) 2025-08-04 11:59:55 -07:00
Matthew Zhou
37fdecb433 feat: Improve tool renaming based on json schema (#3676) 2025-07-31 12:57:22 -07:00
Andy Li
73e74270f4 feat: modal sandbox 2025-07-30 11:25:40 -07:00
jnjpng
df738ba34a 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
84b27d6a07 feat: Improve attach/detach missing file tools performance (#3486) 2025-07-22 15:35:42 -07:00
Matthew Zhou
45f09b1dfb feat: Reduce database calls in import/export agent file (#3455) 2025-07-21 11:27:21 -07:00
cthomas
2b0dc4a1f9 feat: remove organization from tool pydantic schema (#3430) 2025-07-20 00:00:31 -07:00
Matthew Zhou
c545311cd8 fix: Fix set comparison in tool manager (#3420) 2025-07-18 21:00:41 -07:00
Matthew Zhou
4a72d1c8c4 fix: Bulk insert base tools if using postgres (#3419)
Test failures here are time out flakes
2025-07-18 20:04:52 -07:00
cthomas
b6eb204bc2 fix: list tools latency regression (#3282) 2025-07-16 14:01:30 -07:00
Matthew Zhou
0bf797fab6 feat: Add back multi agent tools and protections for cloud (#3100) 2025-06-29 22:45:39 -07:00
Shangyin Tan
c6b41fe379 feat: add optional embedding_config parameter to file upload endpoint (#2901)
Co-authored-by: Matt Zhou <mattzh1314@gmail.com>
2025-06-18 18:10:48 -07:00
Matthew Zhou
6e41aa4c2c feat: Upsert on list with no pagination (#2875) 2025-06-17 15:19:27 -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
Matthew Zhou
91432088f9 feat: Add auto attach and detach of file tools (#2655) 2025-06-05 14:01:29 -07:00
Matthew Zhou
470b13f4b9 feat: Add tools for opening and closing files (#2638) 2025-06-04 17:33:18 -07:00
cthomas
78c82f1ad9 fix: move db logic inside sessions (#2553) 2025-05-30 14:02:25 -07:00
cthomas
2298b17b21 feat(asyncify): migrate tools (#2427) 2025-05-25 22:17:01 -07:00
Sarah Wooders
8133a5a158 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
6c1b189080 feat: add db tracing to otel (#2337) 2025-05-22 13:47:49 -07:00
cthomas
766fa571bd fix: make upsert base tools async (#2255) 2025-05-20 16:51:49 -07:00
Matthew Zhou
26ffd19e1f feat: Add built in code interpreter tool (#2252) 2025-05-19 16:01:40 -07:00
cthomas
969f0d65c8 test: update test_managers with async functions (#2243) 2025-05-18 21:21:45 -07:00
cthomas
3fc7b239e9 feat(asyncify): migrate add base tools (#2238) 2025-05-17 23:25:08 -07:00
cthomas
5d232341fd feat(asyncify): migrate retrieve tool (#2228) 2025-05-16 15:17:43 -07:00
cthomas
7f90746152 feat: convert many methods to async (#2193) 2025-05-15 12:09:40 -07:00
Andy Li
600ccb35e7 feat: async db client (#2076) 2025-05-12 17:15:14 -07:00