Commit Graph

54 Commits

Author SHA1 Message Date
jnjpng
1d0d44d68a fix: clean property schema reference
fix

Co-authored-by: Letta Bot <noreply@letta.com>
2025-09-03 08:42:46 -07:00
jnjpng
ea311d2e22 fix: mcp tool schema formatting for anthropic streaming [LET-4165]
* fix

* update commnet

---------

Co-authored-by: Letta Bot <noreply@letta.com>
2025-09-02 20:44:43 -07:00
cthomas
5ca9b5e774 feat: support filtering out approval messages for anthropic api (#4342) 2025-09-01 21:39:50 -07:00
Charles Packer
56452ae426 fix(core): init attempt at patching the extended thinking bug (#4331)
* fix(core): init attempt at patching the extended thinking bug

* fix: refactor, fix in a different way be merging instead of dropping, seems to be working

* chore: cleanup

* fix: patch the test - with the new native thinking behavior, anthropic native reasoning does not trigger properly post tool-call

* fix: another attempt

* fix: tests passing locally

* fix: another patch to tests

* fix: pathc more tests

* fix: try turning on the interleave-thinking beta header

* fix: patch test

* fix: add new tests to be more robust

* fix: patch the prompt, now it works more reliably

* fix: typo
2025-09-01 11:09:02 -07:00
Charles Packer
aecb6e32d7 fix(core): update default value [LET-4117] (#4321)
* fix(core): update default value

* fix: just stage just publish

* fix(core): temporary hardcoding of the anthropic max tokens

* fix(core): patch the gemini
2025-08-29 16:42:19 -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
Kevin Lin
1c3781f68d fix: patch anthropic send message tests (#4173)
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
2025-08-25 21:17:08 -07:00
Kevin Lin
80ea4a0608 fix: pass thinking to anthropic client (#4150) 2025-08-25 13:36:55 -07:00
cthomas
a41f08b672 feat: always override thinking budget for anthropic if not min (#4019) 2025-08-19 14:54:11 -07:00
Charles Packer
d5b62af62d feat: fix anthropic stream buffering issue (was a missing beta header) (#3933) 2025-08-14 22:26:56 -07:00
cthomas
6289ca55a2 feat: refactor byok logic in llm clients (#3880) 2025-08-12 14:19:02 -07:00
cthomas
639641137d feat: consolidate reasoning model checks (#3862) 2025-08-11 16:55:45 -07:00
Sarah Wooders
e5497b1d0d chore: merge oss (#3712) 2025-08-07 22:20:26 -07:00
Matthew Zhou
84ea52172a feat: Add ability to disable reasoning (#3594) 2025-07-28 15:30:10 -07:00
Andy Li
343dbb5359 feat: timeout configuration for LLM clients + vertex (#2972) 2025-06-23 16:55:23 -07:00
cthomas
fa362c404f feat: add bedrock client (#2913) 2025-06-19 12:07:00 -07:00
Matthew Zhou
440305ad74 fix: Harden string matching for context window exceeded error (#2847) 2025-06-16 14:34:41 -07:00
Matthew Zhou
ba3d59bba5 feat: Add prompting to guide tool rule usage (#2742) 2025-06-10 16:21:27 -07:00
cthomas
6a23bc743d feat: support multi content part input (#2717) 2025-06-10 13:36:17 -07:00
Matthew Zhou
96b8f155d8 fix: Turn off parallel tool calling for Claude (#2736) 2025-06-10 13:04:20 -07:00
Matthew Zhou
a5ee49e579 feat: Remove debug artifacts (#2734) 2025-06-10 12:26:45 -07:00
cthomas
2823e4447a feat: add multi-modal input support (#2590) 2025-06-08 18:28:01 -07:00
cthomas
91e859d461 fix: incorrect anthropic tool format hack (#2685) 2025-06-06 15:48:18 -07:00
Andy Li
80f6e97ca9 feat: otel metrics and expanded collecting (#2647)
(passed tests in last run)
2025-06-05 17:20:14 -07:00
Matthew Zhou
fb54072de6 fix: Add additional testing for anthropic token counting (#2619) 2025-06-03 20:56:39 -07:00
Sarah Wooders
cab3733280 feat: add more trace methods (#2471) 2025-05-27 16:56:30 -07:00
cthomas
20470844a7 feat(asyncify): byok in async loop (#2421) 2025-05-25 19:47:20 -07:00
cthomas
ed9f3e6abf feat: add tracing to llm clients (#2340) 2025-05-22 13:55:32 -07:00
cthomas
00d893e7c5 feat: add anthropic token counter for cloud (#2289) 2025-05-20 17:10:50 -07:00
cthomas
2dde1f34ef feat: configure retries on anthropic client (#2254) 2025-05-19 16:19:27 -07:00
cthomas
5df7bd5af6 feat: protect against anthropic nested tool args (#2250) 2025-05-19 16:01:59 -07:00
cthomas
d8151d76e2 feat: add provider_category field to distinguish byok (#2038) 2025-05-06 17:31:36 -07:00
cthomas
25c188689a feat: byok 2.0 (#1963) 2025-04-30 21:26:50 -07:00
cthomas
7605675f23 feat: add llm config per request (#1866) 2025-04-23 16:37:05 -07:00
cthomas
167c6a1d2e fix: pydantic serializer warning datetime -> int (#1701) 2025-04-23 14:53:58 -07:00
Matthew Zhou
cead849f19 feat: Implement resume step after request in new batch agent loop (#1676) 2025-04-15 13:56:22 -07:00
Sarah Wooders
32f08883ca fix: force tool_choice to be auto for claude-3.7-sonnet (#1694) 2025-04-12 16:39:36 -07:00
Matthew Zhou
6a2312a02d chore: Inject LLM config directly to batch api request func (#1652) 2025-04-09 15:56:54 -07:00
cthomas
c7d4ce73b0 Add parent tool rule (#1648) 2025-04-09 15:22:15 -07:00
Matthew Zhou
7565ad4a8d feat: Write batch request on base LLM client (#1646) 2025-04-09 14:58:26 -07:00
Sarah Wooders
6c55720778 fix: patch summarizer for google and use new client (#1639) 2025-04-08 21:10:48 -07:00
Matthew Zhou
b03af8eb60 feat: Add batch requests on Anthropic Client (#1574) 2025-04-04 14:58:18 -07:00
Matthew Zhou
3ba79db859 feat: Enable Anthropic streaming on new agent loop (#1550) 2025-04-03 19:40:48 -07:00
Matthew Zhou
59ca61da58 feat: Simplify arguments for LLM clients (#1536) 2025-04-02 14:26:27 -07:00
cthomas
3dd3242c6d fix: anthropic system event parse (#1471) 2025-03-31 09:49:15 -07:00
Charles Packer
f47263cc47 fix: catch context window exceeded error thrown from Anthropic (#1470) 2025-03-31 09:35:20 -07:00
Charles Packer
346caee7ca fix: small patch for discord (due to python version i thnk) (#1469) 2025-03-30 20:09:46 -07:00
cthomas
df899ee05b fix: anthropic system message parse (#1467) 2025-03-30 18:44:55 -07:00
Matthew Zhou
60ffc9e8ec fix: Fix message_id ordering in agent serialization (#1458) 2025-03-28 15:13:33 -07:00
cthomas
ec80c6a52a fix: anthropic inner thoughts bug (#1432) 2025-03-27 10:06:54 -07:00