jnjpng
bd61ba85dd
chore: update stainless mcp config ( #5830 )
...
* base
* try
* client no token
* session
* try tests
* fix mcp_servers_test
* remove deprecated test
* remove reference to mcp_serverS
* use fastmcp for mocking
* uncomment
---------
Co-authored-by: Letta Bot <noreply@letta.com >
Co-authored-by: Ari Webb <ari@letta.com >
Co-authored-by: Ari Webb <arijwebb@gmail.com >
2025-11-13 15:36:14 -08:00
Sarah Wooders
24a14490d8
fix: add more error logging and tests for streaming LLM errors ( #5844 )
2025-11-13 15:36:14 -08:00
Ari Webb
9d5fdc6de7
feat: migrate integration test mcp serverspy to use 1.0 client [LET-5945] ( #5814 )
...
* new test first hack, should still break
---------
Co-authored-by: Ari Webb <ari@letta.com >
2025-11-13 15:36:14 -08:00
Ari Webb
0596a66c04
feat: new stainless sdk tests working locally [LET-5939] ( #5793 )
...
* new stainless sdk tests working locally
* Update conftest.py
* Update conftest.py
---------
Co-authored-by: Ari Webb <ari@letta.com >
2025-11-13 15:36:02 -08:00
Sarah Wooders
a566900533
chore: add back test_server.py ( #5783 )
2025-11-13 15:36:00 -08:00
Ari Webb
9cab61fe3f
feat: create sdk_v1 test folder [LET-5937] ( #5790 )
...
create sdk_v1 test folder
Co-authored-by: Ari Webb <ari@letta.com >
2025-11-13 15:35:41 -08:00
Kian Jones
60226ad203
fix: missing cursor kwargs ( #5763 )
...
* accept cursor logic
* add test
2025-11-13 15:35:34 -08:00
Kian Jones
1059452c11
fix: expect raise on detach to deleted agent ( #5770 )
...
just expect raise
2025-11-13 15:35:34 -08:00
Ari Webb
f3a40a41f5
feat: updated backend to not allow minimal for codex [LET-5883] ( #5760 )
...
* updated backend
* add function in openai_client
* remove values before error
* remove test
---------
Co-authored-by: Ari Webb <ari@letta.com >
2025-11-13 15:35:34 -08:00
Sarah Wooders
e7fff12da0
feat: patch model listing to actually match handle [LET-5888] ( #5754 )
2025-11-13 15:35:34 -08:00
Christina Tong
5fddf94ac3
fix: pagination broken in runs table [LET-5790] ( #5759 )
...
* fix: pagination broken in runs table [LET-5790]
* update pagination test
* fix test
2025-11-13 15:35:34 -08:00
jnjpng
6e2c002af3
feat: add stainless pagination for top level arrays with order by [LET-5800] ( #5687 )
...
* base
* revert openapi
* union
* simplify
* stainless
* stainless
* fix
* fix test
* generate
---------
Co-authored-by: Letta Bot <noreply@letta.com >
2025-10-24 15:14:31 -07:00
Matthew Zhou
e7e86124f9
feat: Support embedding config on the archive [LET-5832] ( #5714 )
...
* Add embedding config field to archives
* Fix alembic script
* Simplify archive manager
* Fern autogen
* Fix failing tests
* Fix alembic
2025-10-24 15:14:21 -07:00
Ari Webb
c7c0d7507c
feat: add new mcp_servers routes [LET-4321] ( #5675 )
...
---------
Co-authored-by: Ari Webb <ari@letta.com >
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com >
2025-10-24 15:14:21 -07:00
Matthew Zhou
69343bf5f2
feat: Add delete endpoint [LET-4400] ( #5711 )
...
* Add delete endpoint
* Fern autogen
2025-10-24 15:14:20 -07:00
Ari Webb
6b5c3a7130
feat: list_agents_for_archive endpoint [LET-4407] ( #5684 )
...
* list_archives_for_agent
* use pattern from blocks instead
* use new parameter include
---------
Co-authored-by: Ari Webb <ari@letta.com >
2025-10-24 15:14:20 -07:00
cthomas
ee7f2b9e84
feat: add helper to verify sdk version [ADD-1] ( #5698 )
...
feat: add helper to verify sdk version
2025-10-24 15:14:17 -07:00
cthomas
afdf0f80e3
feat: add backend support for agent relationship loads ( #5693 )
2025-10-24 15:14:09 -07:00
Ari Webb
e54df7f3a4
feat: add attach and detach archive to agent [LET-4402] ( #5679 )
...
* add attach and detach
Co-authored-by: Ari Webb <ari@letta.com >
2025-10-24 15:13:47 -07:00
cthomas
c3c38f2713
feat: rename multi agent group to managed group [LET-5799] ( #5672 )
...
feat: rename multi agent group to managed group
2025-10-24 15:13:47 -07:00
cthomas
14faa27869
feat: replace agent.identity_ids with agent.identities [LET-5803] ( #5673 )
...
feat: replace agent.identity_ids with agent.identities
2025-10-24 15:13:47 -07:00
Kian Jones
45065297a0
feat: runtime validation for ids for internal managers calls ( #5544 )
...
* claude coded first pass
* fix test cases to expect errors instead
* fix this
* let's see how letta-code did
* claude
* fix tests, remove dangling comments, retrofit all managers functions with decorator
* revert to main for these since we are not erroring on invalid tool and block ids
* reorder decorators
* finish refactoring test cases
* reorder agent_manager decorators and fix test tool manager
* add decorator on missing managers
* fix id sources
* remove redundant check
* uses enum now
* move to enum
2025-10-24 15:13:47 -07:00
cthomas
0a083459c6
feat: add new blocks field to agent state schema test ( #5668 )
2025-10-24 15:13:47 -07:00
Christina Tong
12185c8601
feat: add tools used filtering to internal runs [LET-5415] ( #5557 )
...
* feat: add tool_used field to run_metrics [LET-5419]
* change to tool name
* use tool ids over names
* feat: add internal runs route with template_family filtering
* feat: add step count filtering to internal runs [LET-5417]
* remove import
* add auto generated
* feat: add tools used filtering to internal runs [LET-5415]
* add test
* add test
* fix snippets
2025-10-24 15:13:47 -07:00
Ari Webb
abbd1b5595
Revert "feat: revise mcp tool routes [LET-4321]" ( #5652 )
...
Revert "feat: revise mcp tool routes [LET-4321] (#5631 )"
This reverts commit e15f120078652b2160d64a1e300317b95eccb163.
2025-10-24 15:13:47 -07:00
Ari Webb
747e7eae0e
feat: revise mcp tool routes [LET-4321] ( #5631 )
...
* start adding tools mapping
* ready to start testing new table migration
* alembic generated code
* just stage api
* small update
* integration tests
---------
Co-authored-by: Ari Webb <ari@letta.com >
2025-10-24 15:13:47 -07:00
Christina Tong
77c797c752
feat: add step count filtering to internal runs [LET-5417] ( #5547 )
...
* feat: add tool_used field to run_metrics [LET-5419]
* change to tool name
* use tool ids over names
* feat: add internal runs route with template_family filtering
* feat: add step count filtering to internal runs [LET-5417]
* remove import
* add auto generated
* add test
* fix snippets
2025-10-24 15:13:47 -07:00
Christina Tong
44574ec264
feat: add internal runs route with template_family filtering [LET-5416] ( #5543 )
...
* feat: add tool_used field to run_metrics [LET-5419]
* change to tool name
* use tool ids over names
* feat: add internal runs route with template_family filtering
* remove import
* add auto generated
* restrict internal runs
* add test, address comments
* add docs and auto generated fields
* remove unused template mixins
* update openapi
* add generated
2025-10-24 15:13:15 -07:00
cthomas
7b2e7e2f4c
feat: remove un-paginated message list on usage stats [LET-5747] ( #5599 )
...
feat: remove un-paginated message list on usage stats
2025-10-24 15:13:15 -07:00
Kevin Lin
35b5383724
feat: match line number rendering to Anthropic / OAI defaults ( #5492 )
2025-10-24 15:13:15 -07:00
jnjpng
39a23e5960
fix: mcp schema generation test ( #5608 )
...
* base
* base
---------
Co-authored-by: Letta Bot <noreply@letta.com >
2025-10-24 15:13:15 -07:00
jnjpng
b0c0c8752b
feat: support anyOf for structured output tools [LET-5615] ( #5556 )
...
* base
* works?
* update tests
---------
Co-authored-by: Letta Bot <noreply@letta.com >
2025-10-24 15:13:15 -07:00
jnjpng
8275bdd7e3
feat: add agent state schema change test ( #5573 )
...
base
Co-authored-by: Letta Bot <noreply@letta.com >
2025-10-24 15:13:15 -07:00
cthomas
73dcc0d4b7
feat: latest hitl + parallel tool call changes ( #5565 )
2025-10-24 15:12:49 -07:00
cthomas
f8437d47e2
feat: add support for hitl parallel tool calling ( #5549 )
...
* feat: add support for hitl parallel tool calling
* rename to requested_tool_calls
2025-10-24 15:12:11 -07:00
Matthew Zhou
396959da2f
feat: Add toggle on llm config for parallel tool calling [LET-5610] ( #5542 )
...
* Add parallel tool calling field
* Thread through parallel tool use
* Fern autogen
* Fix send message v2
2025-10-24 15:12:11 -07:00
Sarah Wooders
305bb8c8f7
feat: inject letta_client and agent_id into local sandbox ( #5192 )
2025-10-24 15:12:11 -07:00
cthomas
5a475fd1a5
feat: add comprehensive testing for client side tool calling ( #5539 )
2025-10-24 15:12:11 -07:00
cthomas
505c9cff57
feat: add testing for new hitl paths ( #5493 )
2025-10-24 15:12:11 -07:00
Matthew Zhou
afa0524a71
fix: Fix web search test ( #5468 )
...
Fix web search test
2025-10-24 15:12:11 -07:00
Matthew Zhou
fc32db35dc
test: Swap to letta agent v1 for agent serialization ( #5464 )
...
Swap to letta agent v1
2025-10-24 15:12:11 -07:00
Matthew Zhou
2dae4d33c3
feat: Implement streaming chat completions endpoint [LET-5485] ( #5446 )
...
* wip
* Add chat completions router and fix streaming service
* Finish chat completions
* Finish chat completions
* Remove extra print statement
* Run just api
* Don't explicitly throw http exceptions but surface Letta errors
* Remap errors
* Trigger CI
* Add missing Optional import
2025-10-24 15:12:11 -07:00
Cameron Pfiffer
4a86bf6e4c
docs: Improve examples page ( #5442 )
...
* Fix VoiceAgent to use run_manager instead of job_manager
VoiceAgent.__init__() was incorrectly using job_manager parameter
when ToolExecutionManager expects run_manager. This was causing
the error: "VoiceAgent.__init__() got an unexpected keyword
argument 'run_manager'".
Changes:
- Update VoiceAgent to accept and use run_manager instead of job_manager
- Update VoiceSleeptimeAgent to accept run_manager parameter
- Update imports to use RunManager instead of JobManager
- Pass run_manager to ToolExecutionManager in VoiceAgent._execute_tool
* docs: Add new examples to documentation
- Introduced "Your First Agent" example to guide users in creating a Letta agent and understanding its memory capabilities.
- Added "Attaching and Detaching Memory Blocks" example to demonstrate dynamic memory management for agents.
- Updated navigation in docs.yml to include links to the new examples.
These additions enhance the learning resources available for users working with Letta agents.
2025-10-24 15:12:11 -07:00
Matthew Zhou
a36bd1118d
fix: Fix send message v2 tests [LET-5505] ( #5435 )
...
* wip
* Restore comments
* Remove extra prints
2025-10-24 15:12:11 -07:00
Ari Webb
9e94c344b8
using uuid and datetime [LET-5508] ( #5430 )
...
* using uuid and datetime
* add run_id
---------
Co-authored-by: Ari Webb <ari@letta.com >
2025-10-24 15:12:11 -07:00
Matthew Zhou
09ba075cfa
feat: Modify embedding strategy to first halve the batch size v.s. the batc… [LET-5510] ( #5434 )
...
Modify embedding strategy to first halve the batch size v.s. the batch size
2025-10-24 15:12:11 -07:00
Matthew Zhou
8cba4a416d
chore: Add opus 4-1 and sonnet 4-5 to message v2 testing [LET-5481] ( #5406 )
...
Add opus 4-1 and sonnet 4-5 to message v2 testing
2025-10-24 15:11:31 -07:00
cthomas
cd4553f3e6
feat: enable sleeptime on new agent loop ( #5405 )
2025-10-24 15:11:31 -07:00
cthomas
5c35be42fb
fix: increase delay for responses api to fix flake ( #5391 )
2025-10-24 15:11:31 -07:00
Ari Webb
1d3e2d14d6
use LLMError instead of ValueError ( #5389 )
...
Co-authored-by: Ari Webb <ariwebb@Aris-MacBook-Pro.local >
2025-10-24 15:11:31 -07:00