Commit Graph

52 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
cthomas
3128b5e126 feat: add client side tool calling support (#5313) 2025-10-24 15:11:31 -07:00
Matthew Zhou
0f27bf5bdd feat: Support writing packed func return to ToolReturn object (#5209)
* wip

* Add func_response to ToolReturn object

* Fix response packaging

* Backpopulate in to_pydantic

* Fix ordering of packaging

* Add more checks
2025-10-07 17:50:50 -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
Matthew Zhou
f2d4d01daa feat: Persist tool call id to ToolReturn (#5193)
Add tool call id
2025-10-07 17:50:49 -07:00
Charles Packer
10a301cc4b fix: use new agent loop in hitl test (#5145)
* feat: rewrite hitl test with new agent loop

* fix: codex changes (#5144)

---------

Co-authored-by: Caren Thomas <carenthomas@gmail.com>
2025-10-07 17:50:49 -07:00
Sarah Wooders
ef07e03ee3 feat: add run_id to input messages and step_id to messages (#5099) 2025-10-07 17:50:48 -07:00
Sarah Wooders
354205f581 feat: create new runs table [LET-4467] (#4841) 2025-10-07 17:50:47 -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
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
315d07568b feat: handle message persistence for approvals flows (#4338) 2025-09-01 14:10:02 -07:00
cthomas
1edcc13778 feat: support filtering out messages when converting to openai dict (#4337)
* feat: support filtering out messages when converting to openai dict

* fix imports
2025-09-01 12:48:45 -07:00
cthomas
8d1389146a feat: support deny tool call request (#4334) 2025-09-01 10:33:18 -07:00
cthomas
86b073d726 feat: support approve tool call request (#4333) 2025-08-31 11:26:21 -07:00
cthomas
b8c2f42d33 feat: add support for approval request creation (#4313) 2025-08-29 15:23:02 -07:00
Kian Jones
fecf6decfb 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
Andy Li
dc8b8bf4e4 fix: overwritten sentry capture fixes 2025-07-21 13:27:17 -07:00
cthomas
810628acd9 feat: remove organization from pydantic message model (#3411) 2025-07-19 09:28:54 -07:00
Andy Li
60c4e23904 feat: stop reasons and error messages and sentry fixes 2025-07-18 11:56:20 -07:00
Andy Li
04e9f43220 chore: strings lint cleanup (#3374) 2025-07-18 09:20:45 -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
Matthew Zhou
b8057d804f feat: Add required before exit tool rule (#2977) 2025-06-23 17:02:40 -07:00
Andy Li
33bfd14017 fix: metric tracking (#2785) 2025-06-13 13:53:10 -07:00
Andy Li
d2252f2953 feat: otel metrics and expanded collecting (#2647)
(passed tests in last run)
2025-06-05 17:20:14 -07:00
cthomas
904ccd65b6 fix: remove separate tool call id in streaming path (#2641) 2025-06-04 17:35:55 -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
Andy Li
a78abc610e feat: track llm provider traces and tracking steps in async agent loop (#2219) 2025-05-19 15:50:56 -07:00
cthomas
0e2291434e fix: don't log null values to otel (#2079) 2025-05-08 15:27:55 -07:00
cthomas
832de7a246 feat: add llm config to ttfs logging (#1998) 2025-05-02 17:41:43 -07:00
cthomas
1b4bb8c960 feat: add time to first token in tracing (#1988) 2025-05-02 13:05:59 -07:00
Matthew Zhou
d9d586e431 feat: Add message listing for a letta batch (#1982) 2025-05-02 11:14:03 -07:00
Andy Li
3d94adbac3 fix: user messages on new agent loop are not processed in ADE (includes new json parser) (#1934) 2025-04-30 18:07:42 -07:00
cthomas
3b051c4e84 fix: revert conditional tool return message creation (#1930)
Co-authored-by: Matt Zhou <mattzh1314@gmail.com>
2025-04-29 14:22:36 -07:00
Matthew Zhou
e2935e7382 feat: Support offline memory in voice agent (#1347) 2025-04-28 15:03:02 -07:00
Matthew Zhou
983f750990 feat: Implement resume step after request in new batch agent loop (#1676) 2025-04-15 13:56:22 -07:00
cthomas
ab6c143f59 feat: add identity id to message model (#1700) 2025-04-14 16:50:37 -07:00
cthomas
29fcccb3a4 feat: add otid to new agent loop (#1635) 2025-04-09 16:50:41 -07:00
Matthew Zhou
038c40244f feat: Enable Anthropic streaming on new agent loop (#1550) 2025-04-03 19:40:48 -07:00
cthomas
1a5c08c62b test: add more robust multi-agent testing (#1444) 2025-03-28 14:21:54 -07:00
Matthew Zhou
a221e30557 fix: Exclude steps_messages when dumping (#1362) 2025-03-21 14:22:46 -07:00
cthomas
e29f333cbe chore: message schema api improvements (#1267) 2025-03-13 12:04:03 -07:00
Matthew Zhou
aeae2e2cfb feat: Low Latency Agent (#1157) 2025-02-27 14:51:48 -08:00
Matthew Zhou
eed05716ac fix: Fix broken message DB writing (#1134) 2025-02-26 13:29:57 -08:00
Matthew Zhou
71805b2a22 feat: Add tool calling to fast chat completions (#1109) 2025-02-25 15:13:35 -08:00
Matthew Zhou
77603d4d0e feat: Fast chat completions endpoint (#1091) 2025-02-20 18:55:25 -08:00
Matthew Zhou
308e6ce215 fix: Fix trailing } in chat completions interface (#842) 2025-02-10 15:45:13 -08:00
Matthew Zhou
15a31da0a3 chore: Move send_message_to_agent (#665) 2025-01-15 11:15:52 -08:00
Caren Thomas
fd8961c39e run black, add isort config to pyproject.toml 2024-12-26 19:43:11 -08:00