Commit Graph

133 Commits

Author SHA1 Message Date
Matthew Zhou
531eb6afeb feat: Add project_id to message filtering/inserting to Turbopuffer [LET-4252] (#4466)
* Add project_id

* Fern autogen
2025-09-08 14:35:15 -07:00
cthomas
6029c80446 fix: approval request for streaming (#4445)
* fix: approval request for streaming

* fix: claude code attempt, unit test passing (add on to #4445) (#4448)

* fix: claude code attempt, unit test passing

* chore: update locks to 0.1.314 from 0.1.312

* chore: just stage-api && just publish-api

* chore: drop dead poetry lock

---------

Co-authored-by: Charles Packer <packercharles@gmail.com>
2025-09-05 17:43:21 -07:00
Matthew Zhou
2e3cabc080 feat: Add search messages endpoint [LET-4144] (#4434)
* Add search messages endpoint

* Run fern autogen and fix tests
2025-09-05 14:28:27 -07:00
Matthew Zhou
fcfc40eaf2 feat: Add project id to message schema [LET-4166] (#4433)
* Add project id

* Propogate through update message by id async

* Add project id testing
2025-09-04 16:50:41 -07:00
Matthew Zhou
88831c7256 feat: Change namespace to be org scoped and filter on agent_id [LET-4163] (#4368)
* Change to org scoped and agent_id filtering

* Finish modifying conversation search tool

* Fix failing tests

* Get rid of bad imports
2025-09-03 10:00:19 -07:00
Charles Packer
e3eb598353 fix: patch the streaming issue in the openai client for when inner_thoughts_in_kwargs is off [LET-4146] (#4350)
fix: patch the streaming issue in the openai client for when inner_thoughts_in_kwargs is off
2025-09-02 12:44:25 -07:00
cthomas
3f87fc34f2 feat: handle message persistence for approvals flows (#4338) 2025-09-01 14:10:02 -07:00
cthomas
65cd430317 feat: support deny tool call request (#4334) 2025-09-01 10:33:18 -07:00
cthomas
671f561c77 feat: support approve tool call request (#4333) 2025-08-31 11:26:21 -07:00
cthomas
cc376b32ed feat: add support for approval request creation (#4313) 2025-08-29 15:23:02 -07:00
cthomas
bfdb586f74 feat: add approval create input to messages endpoints [LET-4110] (#4309)
* feat: add approval create input to messages endpoints

* rename discriminator tag

* add base class with default

* add field validator

* exclude new type field from agent file schema
2025-08-29 13:16:03 -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
cthomas
b316c61221 feat: add invalid_llm_response stop reason [LET-4083] (#4269)
* feat: add invalid_llm_response stop reason

* add sqllite support

* simply skip for sqllite

* fix imports

* fix isort
2025-08-27 17:07:47 -07:00
cthomas
3d62f14bac feat: add gating to provider trace persistence in db (#4223)
* feat: make provider trace fetch result nullable

* feat: add flag for persisting provider trace to db
2025-08-26 15:58:26 -07:00
Charles Packer
20c1bd316f fix: allow for send_message to be unterminated if the user requests it (#4169) 2025-08-25 21:11:14 -07:00
Sarah Wooders
9eb303b5f4 fix: avoid using summarization agent when not using voice (#4097) 2025-08-25 13:23:24 -07:00
Sarah Wooders
8a1f256c66 fix: add handling for summarizer llm call (#4028) 2025-08-20 16:25:02 -07:00
cthomas
3482c5b371 feat: add null check to step logging LET-3890 (#4004) 2025-08-19 11:52:34 -07:00
jnjpng
5d176b51bb feat: record step metrics to table
Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local>
2025-08-13 11:29:18 -07:00
Andy Li
9805de68ec feat: track run state in stream 2025-08-08 16:31:15 -07:00
jnjpng
a629a9a293 fix: clean up tool execution print statement
Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local>
2025-08-08 15:08:12 -07:00
Matthew Zhou
609bcf84f2 feat: Add comprehensive error tracking to steps table (#3765) 2025-08-06 20:19:29 -07:00
Andy Li
76679e3ecc feat: track metrics for runs in db 2025-08-06 15:46:50 -07:00
cthomas
28da313442 chore: deprecate orm enum file (#3724) 2025-08-04 11:59:55 -07:00
jnjpng
7f12230c21 fix: manually count tokens for streaming lmstudio models
Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local>
Co-authored-by: Charles Packer <packercharles@gmail.com>
2025-07-29 18:12:42 -07:00
Matthew Zhou
2ef90aafc0 feat: Scrub inner thoughts from history on toggle (#3607) 2025-07-28 21:43:36 -07:00
Matthew Zhou
2cd985ef8a fix: Adjust summarize_agent_conversation endpoint to return 204 (#3595) 2025-07-28 14:29:09 -07:00
Andy Li
7781ca55bc fix: error logging for stop reasons 2025-07-24 16:51:31 -07:00
cthomas
8ed1505cea feat: add special message update helper for agent (#3442) 2025-07-20 23:00:57 -07:00
Andy Li
b7b678db4e feat: stop reasons and error messages and sentry fixes 2025-07-18 11:56:20 -07:00
cthomas
f91cbda6eb feat: remove concurrent db connection spawning (#3380) 2025-07-17 14:01:38 -07:00
Andy Li
9390da1e2a fix: llm_request_ms tracing (#3277) 2025-07-10 14:55:37 -07:00
Andy Li
7929d55b26 fix: streaming step failures 2025-07-10 14:06:39 -07:00
Matthew Zhou
2845c86f5f fix: Fix context window compilation issues for files (#3272) 2025-07-10 11:29:36 -07:00
Matthew Zhou
a3e117fa71 feat: Add endpoint for previewing raw payload (#3258) 2025-07-09 17:19:13 -07:00
Charles Packer
d81382b9fe refactor: revert the default summarizer to the old style (#3168) 2025-07-06 20:15:22 -07:00
Andy Li
6e279bb70c chore: bandaid for concurrent messages (#3144) 2025-07-02 17:44:13 -07:00
Eric Ly
c41cb35cd4 fix: correct negative step execution time metrics (#3117)
Co-authored-by: Eric Ly <lyyeric@letta.com>
2025-07-02 16:29:49 -07:00
Andy Li
f9bb757a98 feat: support for agent loop job cancelation (#2837) 2025-07-02 14:31:16 -07:00
cthomas
87b23c8a29 feat: add project id to step model (#3121) 2025-07-02 12:03:55 -07:00
Andy Li
3654fa8c26 feat: expand summarizer providers 2025-07-01 15:07:38 -07:00
Matthew Zhou
21fa872cef fix: Fix parsing bug where Anthropic returns nested JSON (#3096) 2025-06-29 11:41:33 -07:00
Matthew Zhou
fdab5758b9 fix: Fix infinite loop required tools test (#3084) 2025-06-27 16:23:55 -07:00
Matthew Zhou
39bc9edb9c feat: Override heartbeat request when system forces step exit (#3015) 2025-06-24 19:50:00 -07:00
Andy Li
03061abfb3 fix: duplicate messages in message context (#2998) 2025-06-24 16:15:45 -07:00
Sarah Wooders
10cdbf2ea4 feat: add ability to configure agent timezone (#2978)
Co-authored-by: Kian Jones <kian@letta.com>
2025-06-24 12:57:37 -07:00
Matthew Zhou
54562d88d7 feat: Add required before exit tool rule (#2977) 2025-06-23 17:02:40 -07:00
Andy Li
343dbb5359 feat: timeout configuration for LLM clients + vertex (#2972) 2025-06-23 16:55:23 -07:00
cthomas
893ccf210e fix: agent loop type mismatch (#2924) 2025-06-19 16:35:38 -07:00
cthomas
a332b34830 feat: make create_async route consistent with other message routes (#2877) 2025-06-19 13:51:51 -07:00