Commit Graph

57 Commits

Author SHA1 Message Date
Kian Jones
f5c4ab50f4 chore: add ty + pre-commit hook and repeal even more ruff rules (#9504)
* auto fixes

* auto fix pt2 and transitive deps and undefined var checking locals()

* manual fixes (ignored or letta-code fixed)

* fix circular import

* remove all ignores, add FastAPI rules and Ruff rules

* add ty and precommit

* ruff stuff

* ty check fixes

* ty check fixes pt 2

* error on invalid
2026-02-24 10:55:11 -08:00
Kian Jones
25d54dd896 chore: enable F821, F401, W293 (#9503)
* auto fixes

* auto fix pt2 and transitive deps and undefined var checking locals()

* manual fixes (ignored or letta-code fixed)

* fix circular import
2026-02-24 10:55:08 -08:00
jnjpng
85c242077e feat: strict tool calling setting (#8810)
base
2026-01-19 15:54:42 -08:00
Sarah Wooders
97cdfb4225 Revert "feat: add strict tool calling setting [LET-6902]" (#8720)
Revert "feat: add strict tool calling setting [LET-6902] (#8577)"

This reverts commit 697c9d0dee6af73ec4d5d98780e2ca7632a69173.
2026-01-19 15:54:39 -08:00
Sarah Wooders
bdede5f90c feat: add strict tool calling setting [LET-6902] (#8577) 2026-01-19 15:54:38 -08:00
jnjpng
25d75d6528 fix: update aysnc get plaintext callsites (#7069)
* base

* resolve

* fix

* fix
2025-12-17 17:31:02 -08:00
jnjpng
4be813b956 fix: migrate sandbox and agent environment variables to encrypted only (#6623)
* base

* remove unnnecessary db migration

* update

* fix

* update

* update

* comments

* fix

* revert

* anotha

---------

Co-authored-by: Letta Bot <noreply@letta.com>
2025-12-15 12:03:08 -08:00
cthomas
4bb116f17c fix: sync api call in message path (#6291)
* fix: sync api call in message path

* remove unused function

* add new error type
2025-11-24 19:10:26 -08:00
Kevin Lin
35b5383724 feat: match line number rendering to Anthropic / OAI defaults (#5492) 2025-10-24 15:13:15 -07:00
Cameron Pfiffer
4a86bf6e4c docs: Improve examples page (#5442)
* Fix VoiceAgent to use run_manager instead of job_manager

VoiceAgent.__init__() was incorrectly using job_manager parameter
when ToolExecutionManager expects run_manager. This was causing
the error: "VoiceAgent.__init__() got an unexpected keyword
argument 'run_manager'".

Changes:
- Update VoiceAgent to accept and use run_manager instead of job_manager
- Update VoiceSleeptimeAgent to accept run_manager parameter
- Update imports to use RunManager instead of JobManager
- Pass run_manager to ToolExecutionManager in VoiceAgent._execute_tool

* docs: Add new examples to documentation

- Introduced "Your First Agent" example to guide users in creating a Letta agent and understanding its memory capabilities.
- Added "Attaching and Detaching Memory Blocks" example to demonstrate dynamic memory management for agents.
- Updated navigation in docs.yml to include links to the new examples.

These additions enhance the learning resources available for users working with Letta agents.
2025-10-24 15:12:11 -07:00
jnjpng
b3fef4b5a8 feat: double write to all encrypted columns and decrypt on read (#5265)
* base

* use secret field

* fix

* auth code

* stage publish

* decouple backfill

* revert uncomment

* providers and agent vars

* mcp

* mcp

* stage and publish

* fix oauth

* double encrypt

* sandbox

---------

Co-authored-by: Letta Bot <noreply@letta.com>
2025-10-24 15:11:31 -07:00
Matthew Zhou
20ce885e07 feat: Simplify create_letta_messages_from_llm_response [LET-4681] (#5204)
Simplify create_letta_messages_from_llm_response
2025-10-07 17:50:50 -07:00
Sarah Wooders
e07a589796 chore: rm composio (#5151) 2025-10-07 17:50:49 -07:00
Sarah Wooders
354205f581 feat: create new runs table [LET-4467] (#4841) 2025-10-07 17:50:47 -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
Matthew Zhou
def95050e2 feat: Add ranks to archival memory search [LET-4193] (#4426)
* Add ranks to archival memory search

* Fix test managers

* Fix archival memory test
2025-09-04 13:35:54 -07:00
Matthew Zhou
d797296032 feat: Support basic upload/querying on tpuf [LET-3465] (#4255)
* wip implementing turbopuffer

* Move imports up

* Add type of archive

* Integrate turbopuffer functionality

* Debug turbopuffer tests failing

* Fix turbopuffer

* Run fern

* Fix multiple heads
2025-08-28 10:39:16 -07:00
cthomas
578c30c448 feat: add prompt generator for on the fly system prompt generation (#4060) 2025-08-20 15:49:40 -07:00
cthomas
b4810633af chore: deprecate orm enum file (#3724) 2025-08-04 11:59:55 -07:00
cthomas
fb7615be0c feat: convert compile system prompt to async (#3685) 2025-07-31 15:49:59 -07:00
Kevin Lin
99c479cd78 feat: add max files and file open window to system prompt (#3515) 2025-07-23 17:05:53 -07:00
cthomas
6d56aecf95 feat: add special message update helper for agent (#3442) 2025-07-20 23:00:57 -07:00
Andy Li
04e9f43220 chore: strings lint cleanup (#3374) 2025-07-18 09:20:45 -07:00
cthomas
7939d2c366 feat: remove concurrent db connection spawning (#3380) 2025-07-17 14:01:38 -07:00
Charles Packer
3fae6725c3 refactor: revert the default summarizer to the old style (#3168) 2025-07-06 20:15:22 -07:00
Kevin Lin
f2f25d3bac feat: replace file descriptions with per data source description (#3067)
Co-authored-by: Matt Zhou <mattzh1314@gmail.com>
2025-07-01 11:51:52 -07:00
Sarah Wooders
366de63d4d fix: add more timezone fixes (#3025) 2025-06-25 14:51:37 -07:00
Matthew Zhou
a31826d7a5 feat: Override heartbeat request when system forces step exit (#3015) 2025-06-24 19:50:00 -07:00
Sarah Wooders
4deb6e17a9 feat: add ability to configure agent timezone (#2978)
Co-authored-by: Kian Jones <kian@letta.com>
2025-06-24 12:57:37 -07:00
cthomas
f2d3ec45f1 fix: agent loop type mismatch (#2924) 2025-06-19 16:35:38 -07:00
Matthew Zhou
0c2a80d69b feat: Integrate tool executor into VoiceAgent (#2872) 2025-06-17 14:55:58 -07:00
cthomas
a855532e4b feat: set request heartbeat for max steps (#2739) 2025-06-10 15:26:07 -07:00
Matthew Zhou
6610c0b859 feat: Search files returns citations of the filenames that were searched (#2689) 2025-06-06 15:34:03 -07:00
cthomas
95cb142900 feat: make voice fully async (#2672) 2025-06-06 10:50:42 -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
Matthew Zhou
3f6a710894 fix: Fix voice agent and tests (#2305) 2025-05-21 11:05:54 -07:00
cthomas
18e30dbfba feat(asyncify): remove non async memory methods (#2245) 2025-05-20 17:56:54 -07:00
cthomas
1325cacbfe feat(asyncify): migrate list messages (#2272) 2025-05-20 16:52:11 -07:00
cthomas
76052c578c feat(asyncify): migrate list passages (#2275) 2025-05-20 12:56:04 -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
Matthew Zhou
71ef3993b4 feat: Refactor tests and add safety check (#1995) 2025-05-02 15:18:58 -07:00
Matthew Zhou
702bbf3ede feat: Enable voice agent with anthropic models (#1994) 2025-05-02 15:00:25 -07:00
Matthew Zhou
c567f3ff40 feat: Move sleeptime voice agent to new agent loop (#1979) 2025-05-01 20:48:33 -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
84f66aedd3 feat: Add safety checks for voice agent configuration (#1955) 2025-04-30 16:46:45 -07:00
Matthew Zhou
df175890bd feat: Adjust ephemeral memory agent to become persisted sleeptime agent (#1943) 2025-04-30 11:14:19 -07:00
Matthew Zhou
ced32a0124 feat: Remove voice system prompt functions and instead load static prompt files (#1931) 2025-04-29 14:38:21 -07:00
Matthew Zhou
e2935e7382 feat: Support offline memory in voice agent (#1347) 2025-04-28 15:03:02 -07:00