Commit Graph

6048 Commits

Author SHA1 Message Date
Matthew Zhou
bb8a7889e0 feat: Add parallel tool call streaming for anthropic [LET-4601] (#5225)
* wip

* Fix parallel tool calling interface

* wip

* wip adapt using id field

* Integrate new multi tool return schemas into parallel tool calling

* Remove example script

* Reset changes to llm stream adapter since old agent loop should not enable parallel tool calling

* Clean up fallback logic for extracting tool calls

* Remove redundant check

* Simplify logic

* Clean up logic in handle ai response

* Fix tests

* Write anthropic dict conversion to be back compatible

* wip

* Double write tool call id for legacy reasons

* Fix override args failures

* Patch for approvals

* Revert comments

* Remove extraneous prints
2025-10-24 15:11:31 -07:00
Matthew Zhou
1c285f5170 fix: Fix system init messages and anthropic parsing [LET-5385] (#5339)
* Fix system init messages and anthropic parsing

* Add backwards compat tool call id adding
2025-10-24 15:11:31 -07:00
cthomas
fe91987749 feat: extend approvals validation to parallel tool calling (#5333) 2025-10-24 15:11:31 -07:00
cthomas
651c55dc2a feat: add approvals support in agentfile (#5337) 2025-10-24 15:11:31 -07:00
cthomas
1353bcd524 fix: patch lettuce bug (#5335) 2025-10-24 15:11:31 -07:00
Kian Jones
c2e474e03a feat: refactor logs to parse as a single log line each and filter out 404s from sentry (#5242)
* add multiline log auto detect

* implement logger.exception()

* filter out 404

* remove potentially problematic changes
2025-10-24 15:11:31 -07:00
cthomas
a7718ccdad chore: remove inline imports for letta tool return (#5328) 2025-10-24 15:11:31 -07:00
cthomas
3128b5e126 feat: add client side tool calling support (#5313) 2025-10-24 15:11:31 -07:00
cthomas
f79a47dbc1 feat: amend union type for message object (#5326) 2025-10-24 15:11:31 -07:00
cthomas
94c6e0f91c feat: gate out hitl for async (#5320)
* feat: gate out hitl for async

* add import
2025-10-24 15:11:31 -07:00
cthomas
6fd6232992 feat: add discriminator type to message return objects (#5318) 2025-10-24 15:11:31 -07:00
Matthew Zhou
bbc3de5845 test: Add custom tests for streaming on test_sdk_client (#5315)
Add new test
2025-10-24 15:11:31 -07:00
Matthew Zhou
b06619c290 feat: Return nested tool returns (#5305)
* Adapt to support multiple tool returns

* remove unused create_tool_return_message

* Add explanation to otid index

* Simplify explicit tool returns

* Simplify function return to only return single object
2025-10-24 15:11:31 -07:00
cthomas
207ef28fd9 fix: serialized approvals (#5312) 2025-10-24 15:11:31 -07:00
cthomas
31772b1fa1 chore: api sync (#5311) 2025-10-24 15:11:31 -07:00
cthomas
1c80e1c11f feat: add approvals persistence to message orm (#5309)
* feat: add approvals persistence to message orm

* fix imports in alembic migration

* missing import
2025-10-24 15:11:31 -07:00
cthomas
8e54f40bde feat: add new ApprovalReturn list in api layer (#5304)
* feat: add new ApprovalReturn list in api layer

* use base class

* api sync
2025-10-24 15:11:31 -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
Sarah Wooders
216151a313 feat: add runs_metrics table (#5169) 2025-10-24 15:11:29 -07:00
Kian Jones
e58c76124a fix: refactor into common uri parsing logic, fix test, and fix compose file (#5261)
refactor into common uri parsing logic, fix test, and fix compose file
2025-10-24 15:10:35 -07:00
cthomas
d3888e0961 fix: filter our summary messages bricking hitl (#5250) 2025-10-24 15:10:10 -07:00
Matthew Zhou
7e2b175276 fix: Remove requirement for tool returns [LET-4715] (#5254)
* Keep legacy functionality

* Refactor for cleanliness
2025-10-24 15:09:30 -07:00
cthomas
f023dea1ea feat: filter nulls for token counter (#5247) 2025-10-24 15:09:22 -07:00
Kian Jones
6473758c2a Kian/remove uv caching (#4903)
* remove enable cache

* trigger CI

* remove extra with paramters which I believe to be unecessary

* try installing uv manuallly to avoid post install step

* should be fixed by manually installing and not using the action

* remove comment to trigger
2025-10-24 15:08:38 -07:00
Ari Webb
4a753c1955 feat: add haiku 4.5 as reasoning model (#3038)
Co-authored-by: Ari Webb <ari@letta.com>
2025-10-15 14:49:21 -07:00
cthomas
3a34d4e89b chore: clean up docs (#3031) 2025-10-09 18:22:45 -07:00
Caren Thomas
4e1c1c9079 chore: clean up docs 2025-10-09 17:45:05 -07:00
cthomas
dbebadf2cf chore: bump version 0.12.1 (#3029) 2025-10-09 15:39:15 -07:00
Caren Thomas
0481b490ac chore: bump version 0.12.1 2025-10-09 15:29:23 -07:00
cthomas
54aa7b463d chore: fix summarization and open router bug (#3028) 2025-10-09 15:27:33 -07:00
Sarah Wooders
1edb21a652 feat: add letta_agent_v1 flag for docker image and some patches (#5081)
* feat: add letta_agent_v1 flag for docker image and some patches

* update build
2025-10-09 15:25:21 -07:00
cthomas
a1e771877d feat: add model name patch for openrouter (#5303)
* feat: add model name patch for openrouter

* add comment
2025-10-09 15:25:21 -07:00
Matthew Zhou
7511b0f4fe feat: Write anthropic streaming interface that supports parallel tool calling [LET-5355] (#5295)
Write anthropic streaming interface that supports parallel tool calling
2025-10-09 15:25:21 -07:00
jnjpng
a772bedfe4 feat: add secret pydantic fields (#5291)
* add secret pydantic fields

* stage publish

---------

Co-authored-by: Letta Bot <noreply@letta.com>
2025-10-09 15:25:21 -07:00
cthomas
d4bdb8279e chore: add various fixes (#3026) 2025-10-09 13:29:42 -07:00
cthomas
ed74c595a6 feat: ensure trailing thinking block doesn't break token counter (#5271)
* repro pr for claude 4-5 only returns reasoning

* add new test instead of overloading existing one

* update test

* filter out trailing thinking message to patch context bug
2025-10-09 13:20:53 -07:00
Matthew Zhou
24df26af94 chore: Remove best effort patches (#5280)
Remove best effort patches
2025-10-09 13:20:53 -07:00
Sarah Wooders
2017568b32 fix: fix run deletion [LET-5339] (#5277) 2025-10-09 13:20:53 -07:00
Shubham Naik
7eae22f77c feat: allow suers to test their own key [LET-5312] (#5257)
* feat: allow suers to test their own key

* chore: add unit test

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-10-09 13:20:53 -07:00
Charles Packer
6889a73dcf fix(core): patch the headers not appearing in the misc anthropic routes [LET-5337] (#5274)
fix(core): patch the headers not appearing in the misc anthroipic routes
2025-10-09 13:20:53 -07:00
Matthew Zhou
916302d403 feat: Make run metrics best effort (#5273)
Make run metrics best effort
2025-10-09 13:20:52 -07:00
Matthew Zhou
1cf13534ef fix: Fix tool conversion bugs for old agent files (#5272)
* Patch specific buggy case

* Add bug patch
2025-10-09 13:20:52 -07:00
Matthew Zhou
609e63cb12 feat: Adjust message conversion to support multiple tool calls [LET-5336] (#5270)
* Adjust message conversion

* Make collection logic cleaner
2025-10-09 13:20:52 -07:00
Matthew Zhou
e5657bac5d fix: Patch double write bug for ToolCallMessage [LET-5335] (#5269)
Patch double write bug for ToolCallMessage
2025-10-09 13:20:52 -07:00
Matthew Zhou
5593f1450b feat: Double write to ToolCallMessage's new list tool_calls field (#5268)
* Add new tool_calls field to ToolCallMessage

* fern autogen

* Double write to new tool_calls field

* Update straggling instances
2025-10-09 13:20:52 -07:00
Matthew Zhou
45101fd97a feat: Add new tool_calls field to ToolCallMessage [LET-5333] (#5267)
* Add new tool_calls field to ToolCallMessage

* fern autogen
2025-10-09 13:20:52 -07:00
Matthew Zhou
caa3f8b28d feat: Double write to ToolReturnMessage [LET-5332] (#5266)
Double write to ToolReturnMessage
2025-10-09 13:20:52 -07:00
Matthew Zhou
d5de582561 feat: Add new multi tool return field [LET-5330] (#5264)
* Add new multi tool return field

* Fern autogen

* Add deprecated fields

* Run fern autogen
2025-10-09 13:20:52 -07:00
Sarah Wooders
06fc7bb66e chore: bump to 0.12.0 (#3025) 2025-10-08 18:52:15 -07:00
Kian Jones
44056ee24e chore: fix dev compose + docker-integration tests (#3024) 2025-10-08 17:59:04 -07:00