Commit Graph

235 Commits

Author SHA1 Message Date
cthomas
087ab14fd6 feat: raise early exceptions in streaming endpoint (#2858) 2025-09-12 14:43:32 -07:00
Caren Thomas
0a58326daf feat: handle google errors in our stack correctly 2025-09-12 10:58:06 -07:00
cthomas
5aec1f7dac feat: persist hitl messages immediately to prevent inconsistent states (#2853) 2025-09-12 09:20:58 -07:00
Matthew Zhou
1979d86b45 fix: Fix streaming bugs with agent loop v2 (#2844) 2025-09-11 16:15:21 -07:00
cthomas
81e0c9e62e fix: callback update in new agent loop for async route (#2839) 2025-09-11 13:26:41 -07:00
cthomas
67aae3e6af feat: one more missing await (#2838) 2025-09-11 12:13:11 -07:00
cthomas
32b9f228dd fix: missing await in agent loop (#2835) 2025-09-11 11:54:43 -07:00
cthomas
f5da72f2c9 feat: log job success in new agent loop (#2834) 2025-09-11 11:50:15 -07:00
cthomas
694be7b136 feat: support filtering out approval messages for gemini (#2833) 2025-09-11 00:26:24 -07:00
cthomas
2d971cdcf0 feat: hold reference to asyncio tasks in memory (#2823) 2025-09-10 17:08:07 -07:00
cthomas
65bd9492f5 feat: cutover to new refactored agent loop (#2801) 2025-09-10 14:46:30 -07:00
cthomas
e832d1cb1b fix: add missing awaits (#2804) 2025-09-09 15:27:05 -07:00
cthomas
681afd84d5 refactor: add public summarize_conversation_history method for parity (#2803) 2025-09-09 15:24:56 -07:00
cthomas
bb2e726615 chore: add extra params to base letta agent (#2802) 2025-09-09 15:19:31 -07:00
cthomas
455aa1da99 chore: clean up unused agent_id var (#2800) 2025-09-09 14:29:24 -07:00
Caren Thomas
3618ec4a98 chore: fix ruff formatting 2025-09-09 14:17:12 -07:00
Caren Thomas
52de7df11e refactor: move last function caching outside of tools load 2025-09-09 14:13:57 -07:00
Caren Thomas
e61a1637c3 Merge branch 'main' into caren/add-tracing-to-new-agent-loop-v3 2025-09-09 14:06:53 -07:00
Caren Thomas
1509bf9037 refactor: move step logging into checkpoint helpers 2025-09-09 13:33:49 -07:00
Caren Thomas
b95c68414b chore: add tracing to new agent loop 2025-09-09 13:14:30 -07:00
cthomas
9120dd5308 feat: conditionally record step metrics (#4497) 2025-09-09 00:35:03 -07:00
cthomas
82192dee44 feat: handle streaming for hitl in new agent loop (#4496) 2025-09-09 00:27:44 -07:00
cthomas
a0c4f086d0 feat: add check before logging step metrics (#4495) 2025-09-09 00:02:21 -07:00
cthomas
5085dc3f65 fix: async generator return type (#4494) 2025-09-08 23:44:19 -07:00
cthomas
33a03daf1f fix: add llm adapter to build request method (#4493) 2025-09-08 23:38:59 -07:00
cthomas
05d5b53b29 feat: always break when step is finished (#4492) 2025-09-08 23:37:36 -07:00
cthomas
e132d6c6ca feat: break out of summary retry loop when no exception (#4490) 2025-09-08 23:20:10 -07:00
cthomas
7d85742f22 fix: use id instead of step id for metrics (#4489) 2025-09-08 22:54:43 -07:00
cthomas
dd0b3c065a feat: add template id to create message (#4488) 2025-09-08 22:53:18 -07:00
cthomas
31713866f0 fix: add range to for loop (#4487) 2025-09-08 22:43:33 -07:00
cthomas
b9616c1030 feat: migrate sleeptime to new agent loop (#4485)
* feat: migrate sleeptime to new agent loop

* only load agent state when needed
2025-09-08 22:25:01 -07:00
cthomas
6a9eb16f4e feat: add summarization retry to new agent loop (#4477) 2025-09-08 17:41:48 -07:00
cthomas
e06d9cbb8f feat: add error handling parity to new agent loop (#4471) 2025-09-08 16:35:24 -07:00
cthomas
304b8de32a feat: consolidate stream methods for new agent loop (#4468) 2025-09-08 15:20:36 -07:00
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
0360ceeecc feat: add step checkpointing for progress tracking (#4458)
* feat: add step checkpointing for progress tracking

* openapi sync
2025-09-08 10:30:44 -07:00
cthomas
39e4e4227d feat: add agent_step span updates to new agent loop (#4457) 2025-09-06 14:04:01 -07:00
Charles Packer
3442b52cf7 fix(core): patch the error throwing for HITL [LET-4218] (#4455)
fix: patch the error throwing for HITL
2025-09-06 11:45:46 -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
cthomas
80adb82b34 feat: add provider trace persistence in llm adapters (#4442)
* feat: add provider trace persistence in llm adapters

* hook up to new agent loop
2025-09-05 14:28:20 -07:00
cthomas
59a2245f24 feat: add step progression checkpointing to new agent loop (#4443) 2025-09-05 14:28:06 -07:00
cthomas
20a6e8d65e feat: add project_id to message (#4436) 2025-09-05 11:18:09 -07:00
cthomas
0b7f7e77fb feat: introduce agent loop v3 (#4435) 2025-09-05 11:12:52 -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
b8d403c962 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
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