Ari Webb
65a733d5dd
fix: make attach/detach routes return None if sdk verion 1.0 ( #6203 )
...
* Revert "Revert "feat: make attach/detach routes return None if version is 1.0 [LET-5844]" (#6201 )"
This reverts commit bb0d10725f5889306de61e1758f061d6c1041c52.
* fix type checking
* revert
* return state for blocks and sources
* func signatures
* create memgpt_agent for cloud-e2e-tests
* Revert "create memgpt_agent for cloud-e2e-tests"
This reverts commit f279e5897b0942b1006a5f8527713dd801064c63.
* fix
---------
Co-authored-by: Ari Webb <ari@letta.com >
2025-11-24 19:09:33 -08:00
Ari Webb
b0f9986209
feat: make letta_v1_agent default [LET-6153] ( #6115 )
...
* agent change
* fix tests
* fix more tests
* memgpt_v2_agent for cloud-api tests
---------
Co-authored-by: Ari Webb <ari@letta.com >
2025-11-24 19:09:33 -08:00
Ari Webb
ec953d27c0
fix: double escape leads to exponential growth in backslash character [LET-6016] ( #6087 )
2025-11-24 19:09:33 -08:00
Copilot
2addd4eb0d
Fix llm_model_configs committed to wrong directory ( #6206 )
...
* Initial plan
* Move llm_model_configs to correct location
Co-authored-by: kianjones9 <11655409+kianjones9@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: kianjones9 <11655409+kianjones9@users.noreply.github.com >
2025-11-24 19:09:32 -08:00
Sarah Wooders
cce0f41095
Revert "feat: make attach/detach routes return None if version is 1.0 [LET-5844]" ( #6201 )
...
Revert "feat: make attach/detach routes return None if version is 1.0 [LET-58…"
This reverts commit 328c481da6e4e0f7f30a82dcc287c90835f431cc.
2025-11-24 19:09:32 -08:00
Ari Webb
e20feaa3e4
feat: make attach/detach routes return None if version is 1.0 [LET-5844] ( #6141 )
...
---------
Co-authored-by: Ari Webb <ari@letta.com >
2025-11-24 19:09:32 -08:00
cthomas
41392cdb8a
test: make hitl testing pass ( #6188 )
2025-11-24 19:09:32 -08:00
Kian Jones
7f49e08be9
fix: attempt to better handle reasoning content in embedding flow, and add test coverage ( #6171 )
...
fix and test case addition
2025-11-24 19:09:32 -08:00
jnjpng
53d01f29a1
fix: v1 sdk integration tests for update and create renames ( #6139 )
...
* base
* yay
* update
* update
---------
Co-authored-by: Letta Bot <noreply@letta.com >
2025-11-13 15:36:56 -08:00
Shelley Pham
b73545cd60
fix: agents created from templates cannot read attached files [LET-6146] ( #6137 )
...
* fix: Ensure agents created from templates can read attached files
* test: Add test for template-based agent file attachment from sources
2025-11-13 15:36:56 -08:00
jnjpng
6139ab23d2
fix: v1 sdk send message tests for message union rename ( #6123 )
...
* add
* base:
---------
Co-authored-by: Letta Bot <noreply@letta.com >
2025-11-13 15:36:56 -08:00
Sarah Wooders
5730f69ecf
feat: modal tool execution - NO FEATURE FLAGS USES MODAL [LET-4357] ( #5120 )
...
* initial commit
* add delay to deploy
* fix tests
* add tests
* passing tests
* cleanup
* and use modal
* working on modal
* gate on tool metadata
* agent state
* cleanup
---------
Co-authored-by: Letta Bot <noreply@letta.com >
2025-11-13 15:36:56 -08:00
Christina Tong
2a8523aa01
chore: migrate multi agent integration test to v1 sdk [LET-6152] ( #6113 )
...
* chore: migrate multi agent integration test to v1 sdk [LET-6152]
* update functions
* access field
* clean
* flexibility for in context messge
* add agent type
* check content
* update
* agent type
2025-11-13 15:36:56 -08:00
Sarah Wooders
982501f6fa
feat: create model table to persist available models ( #5835 )
...
---------
Co-authored-by: Ari Webb <arijwebb@gmail.com >
Co-authored-by: Ari Webb <ari@letta.com >
2025-11-13 15:36:56 -08:00
Ari Webb
f36845b485
feat: add create memory for archive [LET-6148] ( #6110 )
...
* first hack
* add to stainless
* renaming field
---------
Co-authored-by: Ari Webb <ari@letta.com >
2025-11-13 15:36:56 -08:00
Sarah Wooders
6eeb3c90bb
feat: bring back model_settings and remove validation again ( #6104 )
2025-11-13 15:36:56 -08:00
Sarah Wooders
ddc87418f4
feat: revert model_settings ( #6089 )
2025-11-13 15:36:56 -08:00
cthomas
c0f270047c
feat: add list support for query params in sdk ( #6085 )
...
* feat: add list support for query params in sdk
* use repeat array_format
* use dots for nested_format
2025-11-13 15:36:56 -08:00
Kian Jones
d360242307
fix: don't expect stop reason to have a run id ( #6083 )
...
don't expect stop reason to have a run id
2025-11-13 15:36:56 -08:00
jnjpng
5797b4162e
fix: agent create test + stage publish api ( #6063 )
...
* base
* fix
---------
Co-authored-by: Letta Bot <noreply@letta.com >
2025-11-13 15:36:56 -08:00
Sarah Wooders
0b1fe096ec
feat: split up handle and model_settings ( #6022 )
2025-11-13 15:36:56 -08:00
jnjpng
5e35887295
fix: tools page not subscriptable ( #6057 )
...
fix
Co-authored-by: Letta Bot <noreply@letta.com >
2025-11-13 15:36:56 -08:00
jnjpng
a66a8187cd
fix: v1 sdk tests directly subscripting from list endpoints ( #6054 )
...
* base
* fix
* fix
* runs
* skip
---------
Co-authored-by: Letta Bot <noreply@letta.com >
2025-11-13 15:36:56 -08:00
Ari Webb
526a678f8c
fix: fix agent test, returns new data format ( #6039 )
...
fix conftest
Co-authored-by: Ari Webb <ari@letta.com >
2025-11-13 15:36:55 -08:00
Kian Jones
4acda9c80f
feat: global exception middleware ( #6017 )
...
* global exception middleware
* redo both logging middlewares as one
* remove extra middleware files
2025-11-13 15:36:55 -08:00
jnjpng
8ff8ef2102
chore: clean up count agent test ( #6037 )
...
base
Co-authored-by: Letta Bot <noreply@letta.com >
2025-11-13 15:36:55 -08:00
Ari Webb
d2fe64bab4
fix: fix parallel tool calling tests in ci [LET-6043] ( #5950 )
...
* first hack
* test
* fix test for v1, comment out for legacy
* test shows parallel tool calling now happening
* fix test to detect parallel tool calling
* update to use oai too
* uncomment v2 test
---------
Co-authored-by: Ari Webb <ari@letta.com >
2025-11-13 15:36:55 -08:00
Ari Webb
13a77289b9
fix: send message test for gpt 4o ( #6012 )
...
fix
Co-authored-by: Ari Webb <ari@letta.com >
2025-11-13 15:36:55 -08:00
Christina Tong
c76bc9e216
feat: add filters to count_agents endpoint [LET-5380] [LET-5497] ( #6008 )
...
* feat: add filters to count_agents endpoint [LET-5380]
* comment
* update
2025-11-13 15:36:55 -08:00
jnjpng
849d0dc64a
feat: provider-specific model configuration ( #5873 ) ( #5874 )
2025-11-13 15:36:55 -08:00
Sarah Wooders
fd7c8193fe
feat: remove chunking for archival memory [LET-6080] ( #5997 )
...
* feat: remove chunking for archival memory
* add error and tests
2025-11-13 15:36:55 -08:00
jnjpng
46457d3f93
fix: send message integration tests agent loop errors ( #5995 )
...
base
Co-authored-by: Letta Bot <noreply@letta.com >
2025-11-13 15:36:55 -08:00
Kian Jones
361c9a14d8
feat(metrics): Surface custom metrics for temporal workflows and workers ( #5951 )
...
* temporal custom metrics
* Delete apps/core/letta/agents/temporal/PRODUCTION_SETUP.md
* Delete apps/core/letta/agents/temporal/DATADOG_METRICS.md
* add unit testing
2025-11-13 15:36:55 -08:00
Kian Jones
ea3248593c
feat(logs): Enrich logs with context-aware primtive types ( #5949 )
...
* enrich logs with context-aware primtive types
* Delete apps/core/docs/LOG_CONTEXT.md
2025-11-13 15:36:55 -08:00
jnjpng
e2774c07c6
feat: generate otid when using input field on message send ( #5990 )
...
* base
* try this out
* plz
* fix
---------
Co-authored-by: Letta Bot <noreply@letta.com >
2025-11-13 15:36:55 -08:00
Kian Jones
6943b68288
tests: adding unit testing and fix edge case ( #5992 )
...
cursor bugbot suggestion number 2 and adding unit testing
2025-11-13 15:36:55 -08:00
jnjpng
05b359b7f5
chore: add local base 64 url image for send message integration ( #5969 )
...
* base
* update
* clean up
* update
---------
Co-authored-by: Letta Bot <noreply@letta.com >
2025-11-13 15:36:55 -08:00
Christina Tong
881831501a
feat: filter list agents by stop reason [LET-5928] ( #5779 )
...
* feat: add last_stop_reason to AgentState [LET-5911]
* feat: filter list agents by stop reason [LET-5928]
* undo agent loop changes, use update_run_by_id_async
* add run manager test
* add integration tests
* remove comment
* fix duplicate
* fix docs
2025-11-13 15:36:55 -08:00
Ari Webb
395c04c52e
fix: stainless pagination ( #5943 )
...
---------
Co-authored-by: Ari Webb <ari@letta.com >
2025-11-13 15:36:55 -08:00
Christina Tong
ef3df907c5
feat: add last_stop_reason to AgentState [LET-5911] ( #5772 )
...
* feat: add last_stop_reason to AgentState [LET-5911]
* undo agent loop changes, use update_run_by_id_async
* add run manager test
* add integration tests
* remove comment
* remove duplicate test
2025-11-13 15:36:55 -08:00
Christina Tong
7c731feab3
fix: integration tests send message v1 sdk ( #5920 )
...
* fix: integration tests send message v1 sdk
* early cancellationg
* fix image
* remove
* update
* update comment
* specific prompt
2025-11-13 15:36:50 -08:00
Ari Webb
ed99d7eb2b
feat: add input option to send message route [LET-4540] ( #5938 )
...
---------
Co-authored-by: Ari Webb <ari@letta.com >
2025-11-13 15:36:50 -08:00
Matthew Zhou
7b3cb0224a
feat: Add gemini parallel tool call streaming for gemini [LET-6027] ( #5913 )
...
* Make changes to gemini streaming interface to support parallel tool calling
* Finish send message integration test
* Add comments
2025-11-13 15:36:39 -08:00
Christina Tong
8468ef3cd7
chore: migrate test sdk client to v1 [LET-5981] ( #5887 )
...
* chore: migrate test sdk client to v1 [LET-5981]
* simplify
* simplify
2025-11-13 15:36:39 -08:00
Charles Packer
a6077f3927
fix(core): Fix agent loop continuing after cancellation in letta_agent_v3 [LET-6006] ( #5905 )
...
* Fix agent loop continuing after cancellation in letta_agent_v3
Bug: When a run is cancelled, _check_run_cancellation() sets
self.should_continue=False and returns early from _step(), but the outer
for loop (line 245) continues to the next iteration, executing subsequent
steps even though cancellation was requested.
Symptom: User hits cancel during step 1, backend marks run as cancelled,
but agent continues executing steps 2, 3, etc.
Root cause: After the 'async for chunk in response' loop completes (line 255),
there was no check of self.should_continue before continuing to the next
iteration of the outer step loop.
Fix: Added 'if not self.should_continue: break' check after the inner loop
to exit the outer step loop when cancellation is detected. This makes v3
consistent with v2 which already had this check (line 306-307).
🐾 Generated with [Letta Code](https://letta.com )
Co-authored-by: Letta <noreply@letta.com >
* add integration tests
* fix: misc fixes required to get cancellations to work on letta code localhost
---------
Co-authored-by: Letta <noreply@letta.com >
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com >
2025-11-13 15:36:39 -08:00
Ari Webb
7427c0998e
feat: gemini parallel tool calling non streaming [LET-5993] ( #5889 )
...
* first hack
* just test non streaming
* stream_steps should pass too
* clean up
---------
Co-authored-by: Ari Webb <ari@letta.com >
2025-11-13 15:36:39 -08:00
Kian Jones
60115d4931
fix: lettuce import and add unit tests for new run manager function ( #5893 )
...
* fix lettuce import and add unit tests for new run manager function
* fix unit tests
* bump version (unrelated)
2025-11-13 15:36:38 -08:00
Sarah Wooders
57bb051ea4
feat: add tool return truncation to summarization as a fallback [LET-5970] ( #5859 )
2025-11-13 15:36:30 -08:00
Christina Tong
381ca5bde8
chore: migrate built in tools integration test to sdk v1 [LET-5980] ( #5883 )
...
* chore: migrate built in tools integration test to sdk v1
* fix
* remove trialing commas
2025-11-13 15:36:20 -08:00
Christina Tong
255fdfecf2
feat: migrate integration_test_human_in_the_loop to sdk v1 [LET-5979] ( #5878 )
...
* feat: migrate integration_test_human_in_the_loop to sdk v1
* update modify
* parallel tool calling fixes
* fix
* updat aparallel tool calling
* remove regex matching
2025-11-13 15:36:20 -08:00