Commit Graph

237 Commits

Author SHA1 Message Date
Matthew Zhou
df5c997da0 feat: Enable dynamic toggling of tool choice in v3 agent loop for OpenAI [LET-4564] (#5042)
* Add subsequent flag

* Finish integrating constrained/unconstrained toggling on v3 agent loop

* Update tests to run on v3

* Run lint
2025-10-07 17:50:47 -07:00
cthomas
67f8e46619 feat: add run id to streamed messages (#5037) 2025-10-07 17:50:47 -07:00
cthomas
cd900a6f4d feat: check run completion in send message tests (#5030) 2025-10-07 17:50:47 -07:00
cthomas
4304a2e2ef feat: integrate simple adapter for non-streaming letta v1 agent (#5017) 2025-10-07 17:50:47 -07:00
cthomas
76d1bc8cbc feat: move new streaming adapters into own files (#5001) 2025-10-07 17:50:47 -07:00
Sarah Wooders
354205f581 feat: create new runs table [LET-4467] (#4841) 2025-10-07 17:50:47 -07:00
Charles Packer
8da15aaf08 fix(core): patch issue where LLM may generate a 'noop' call [PRO-1340] (#4944)
fix(core): patch issue where LLM may generate a 'noop' call
2025-10-07 17:50:46 -07:00
Matthew Zhou
b0bc04fec7 fix: Patch batch routes (#4916)
Patch batch routes
2025-10-07 17:50:46 -07:00
Charles Packer
a4041879a4 feat: add new agent loop (squash rebase of OSS PR) (#4815)
* feat: squash rebase of OSS PR

* fix: revert changes that weren't on manual rebase

* fix: caught another one

* fix: disable force

* chore: drop print

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

* fix: make agent_type consistently an arg in the client

* fix: patch multi-modal support

* chore: put in todo stub

* fix: disable hardcoding for tests

* fix: patch validate agent sync (#4882)

patch validate agent sync

* fix: strip bad merge diff

* fix: revert unrelated diff

* fix: react_v2 naming -> letta_v1 naming

* fix: strip bad merge

---------

Co-authored-by: Kevin Lin <klin5061@gmail.com>
2025-10-07 17:50:45 -07:00
Matthew Zhou
8395ec429a feat: Add flag for TLS (#4865)
Add flag for TLS
2025-10-07 17:50:45 -07:00
cthomas
a605271846 fix: flip tls flag (#4806) 2025-10-07 17:50:44 -07:00
Matthew Zhou
678350a6f2 feat: Pass through agent_state and patch bugs [LET-4456] (#4800)
* Pass through agent state

* temp

* Patch bugs

* Add todo for jin
2025-10-07 17:50:44 -07:00
Matthew Zhou
81bb131afb feat: Calculate remaining turns [LET-4453] (#4789)
Calculate remaining turns
2025-10-07 17:50:44 -07:00
cthomas
ee39b2bff2 feat: ensure temporal is hit through fastapi (#4784)
feat: ensure temporal works end-to-end
2025-10-07 17:50:44 -07:00
Matthew Zhou
41e1f01659 feat: Factor our approval parsing logic (#4782)
Factor our approval parsing logic
2025-10-07 17:50:44 -07:00
Sarah Wooders
c85bfefa52 feat: add agents_runs table (#4768) 2025-10-07 17:50:44 -07:00
cthomas
992f94da4b feat: integrate temporal into letta (#4766)
* feat: integrate temporal into letta

* use fire and forget, set up cancellation and job status checking
2025-10-07 17:50:43 -07:00
jnjpng
39a8959989 feat: _handle_ai_response activity skeleton (#4760)
* base

* skeleton

* TODO

* unpack

* unpack

* cleanup

* cleanup

* merge

---------

Co-authored-by: Letta Bot <noreply@letta.com>
2025-10-07 17:50:43 -07:00
Matthew Zhou
a3925e6a7b feat: Add get valid tools helper pure function [LET-4439] (#4771)
Add get valid tools helper function
2025-10-07 17:50:43 -07:00
Matthew Zhou
2c89b24021 feat: Scaffold pre-handle ai response activities (#4765)
* Scaffold pre handle ai response activities

* workflow specific timeouts
2025-09-17 17:53:53 -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
cthomas
2281c52de3 feat: conditionally record step metrics (#4497) 2025-09-09 00:35:03 -07:00
cthomas
6cb12b7f66 feat: handle streaming for hitl in new agent loop (#4496) 2025-09-09 00:27:44 -07:00
cthomas
c60683c5a0 feat: add check before logging step metrics (#4495) 2025-09-09 00:02:21 -07:00
cthomas
efe34c9db3 fix: async generator return type (#4494) 2025-09-08 23:44:19 -07:00
cthomas
517e25ea2a fix: add llm adapter to build request method (#4493) 2025-09-08 23:38:59 -07:00
cthomas
f41f561a38 feat: always break when step is finished (#4492) 2025-09-08 23:37:36 -07:00
cthomas
4b366525bf feat: break out of summary retry loop when no exception (#4490) 2025-09-08 23:20:10 -07:00
cthomas
4b9175afd3 fix: use id instead of step id for metrics (#4489) 2025-09-08 22:54:43 -07:00
cthomas
2aabb15e97 feat: add template id to create message (#4488) 2025-09-08 22:53:18 -07:00
cthomas
e7d3d34899 fix: add range to for loop (#4487) 2025-09-08 22:43:33 -07:00
cthomas
f00453c152 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
62092ecc7e feat: add summarization retry to new agent loop (#4477) 2025-09-08 17:41:48 -07:00
cthomas
6af707f3dd feat: add error handling parity to new agent loop (#4471) 2025-09-08 16:35:24 -07:00
cthomas
4e6d2cba89 feat: consolidate stream methods for new agent loop (#4468) 2025-09-08 15:20:36 -07:00
Matthew Zhou
acaf820009 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
57e69a35bc 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
a8caf59a73 feat: add agent_step span updates to new agent loop (#4457) 2025-09-06 14:04:01 -07:00
Charles Packer
0d195bd2b7 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
cb7296c81d 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
2ef47d8002 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
f2485daef7 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
7c5c94d9cb feat: add step progression checkpointing to new agent loop (#4443) 2025-09-05 14:28:06 -07:00
cthomas
68f3a45421 feat: add project_id to message (#4436) 2025-09-05 11:18:09 -07:00
cthomas
9ea1eb17ba feat: introduce agent loop v3 (#4435) 2025-09-05 11:12:52 -07:00
Matthew Zhou
cbf2e09e13 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
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
6e633bd8f9 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
9d49eff204 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