Commit Graph

1929 Commits

Author SHA1 Message Date
jnjpng
7930bfeb0b feat: add encrypted columns for providers, sandbox/agent variables, mcp auth code [LET-4246] (#5187)
add encrypted columns

Co-authored-by: Letta Bot <noreply@letta.com>
2025-10-07 17:50:49 -07:00
cthomas
757bbcac37 feat: add pagination to agent files endpoint (#5086)
* feat: add pagination to agent files endpoint
2025-10-07 17:50:49 -07:00
cthomas
416af626cc feat: add pagination to agent folders endpoint (#5085)
* feat: add pagination to agent folders endpoint

* chore: regenerate API client with pagination parameters

* feat: add pagination parameters to agent folders and sources endpoints

- Add pagination parameters (before, after, limit, order, order_by) to list_agent_folders endpoint
- Add pagination parameters to list_agent_sources endpoint
- Update list_attached_sources_async method to support pagination with cursor-based filtering
- Regenerate API client with new pagination parameters
2025-10-07 17:50:49 -07:00
Sarah Wooders
4168506dd2 feat: replace composite runs index to not include is_err (#5177) 2025-10-07 17:50:49 -07:00
cthomas
086ca9796d feat: gate out sleeptime from new agent loop (#5181) 2025-10-07 17:50:49 -07:00
cthomas
a7fa6bb33f feat: amend hitl tests for new agent loop (#5176) 2025-10-07 17:50:49 -07:00
cthomas
4089ad0629 fix: summarization bug (#5174) 2025-10-07 17:50:49 -07:00
cthomas
eb2a6f6890 feat: add value error to middlware for 400 (#5173)
* feat: prevent summarization mid approval request

* feat: add value error to middlware for 400
2025-10-07 17:50:49 -07:00
cthomas
ec2375f332 feat: prevent summarization mid approval request (#5172) 2025-10-07 17:50:49 -07:00
cthomas
3e70a21a6f feat: add hitl support inside agent file (#5170) 2025-10-07 17:50:49 -07:00
Sarah Wooders
7aff9aa659 feat: error handling for rest api for agents + blocks [LET-4625] (#5142) 2025-10-07 17:50:49 -07:00
Sarah Wooders
e07a589796 chore: rm composio (#5151) 2025-10-07 17:50:49 -07:00
Charles Packer
07a687880f feat(core): add sonnet 1m support [LET-4620] (#5152)
feat(core): add sonnet 1m support
2025-10-07 17:50:49 -07:00
Sarah Wooders
134e0203c2 fix: remove MessageModel.is_err == False) | (MessageModel.is_err.is_(None) (#5160) 2025-10-07 17:50:49 -07:00
Sarah Wooders
300c32456e feat: add composite message index and reduce pool timeout (#5156) 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
a8e6afc12c fix: allow for >50 files to be attached to an agent [LET-4606] (#5139) 2025-10-07 17:50:49 -07:00
Charles Packer
811b3e6cb6 feat: allow customizing the handle base for openrouter and for vllm [LET-4609] (#5114)
* feat: allow setting VLLM_HANDLE_BASE

* feat: same thing for openrouter
2025-10-07 17:50:49 -07:00
cthomas
4f52aab652 feat: don't error for unsupported content types (#5140) 2025-10-07 17:50:49 -07:00
cthomas
2d8e3efd9e feat: update reasoning toggle test (#5136) 2025-10-07 17:50:49 -07:00
cthomas
cc913df27c feat: add signature to content parts (#5134)
* feat: add signature to content parts

* always base64 encode thought signature

* propagate thought signature back to request
2025-10-07 17:50:49 -07:00
cthomas
89321ff29a feat: handle flaky reasoning in v2 tests (#5133) 2025-10-07 17:50:49 -07:00
Sarah Wooders
6016ac0f33 chore: undo fetch_webpage rename (#5132) 2025-10-07 17:50:49 -07:00
cthomas
93d9ff01c6 feat: add gemini native thinking (#5124)
* feat: add gemini native thinking

* update test

* revert comments
2025-10-07 17:50:49 -07:00
cthomas
647a410e62 feat: allow multiple text content parts in a message (#5128) 2025-10-07 17:50:49 -07:00
cthomas
61b41a0558 feat: enable gemini reasoning toggle on server (#5129) 2025-10-07 17:50:49 -07:00
Sarah Wooders
65b33ae27f feat: add index for run_id on messages and project_id on agents (#5117) 2025-10-07 17:50:49 -07:00
Kevin Lin
d6bde22ab1 fix: add context window for sonnet 4.5 (#5121) 2025-10-07 17:50:49 -07:00
Charles Packer
62a5d10099 fix(core): raise 404 properly for agent not found (#5118) 2025-10-07 17:50:49 -07:00
cthomas
1d611d92b9 feat: update assistant content parts union (#5115)
* feat: update assistant content parts union

* api sync

* just use the base object since updating assistant breaks frontend
2025-10-07 17:50:48 -07:00
Sarah Wooders
eb95c1330e fix: patch summarizer for gpt-5 [LET-4562] (#5040) 2025-10-07 17:50:48 -07:00
cthomas
3e17b4289a feat: gracefully handle gemini empty content parts (#5116) 2025-10-07 17:50:48 -07:00
Charles Packer
09b173668a feat(core): rename fetch_webpage to web_fetch (#5110) 2025-10-07 17:50:48 -07:00
cthomas
b7c599ee5b feat: pass gemini content parts back into future requests (#5112)
* feat: pass gemini content parts back into future requests

* fix import
2025-10-07 17:50:48 -07:00
cthomas
f7755d837a feat: add gemini streaming to new agent loop (#5109)
* feat: add gemini streaming to new agent loop

* add google as required dependency

* support storing all content parts

* remove extra google references
2025-10-07 17:50:48 -07:00
cthomas
6b6b82a07a feat: add streaming support to vertex client (#5106) 2025-10-07 17:50:48 -07:00
Sarah Wooders
af2a28b1b1 fix: add schema patching for mcp list tools (#5105) 2025-10-07 17:50:48 -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
cthomas
7c03288c05 feat: add pagination to agent blocks endpoint (#5087)
* feat: add pagination to agent blocks endpoint

* chore: regenerate API client with pagination parameters

* feat: implement pagination logic in list_blocks endpoint

- Fix list_blocks implementation to use pagination parameters that were already in the route signature
- Add in-memory pagination logic for core memory blocks (sorting, cursor filtering, limit)
- Sort blocks by created_at timestamp with proper asc/desc ordering
- Apply cursor-based pagination with before/after filters
- Apply limit to results
- Regenerate API client code to reflect pagination functionality

* fix: correct sorting logic in list_blocks endpoint

- Fix AttributeError where blocks don't have created_at attribute
- Sort blocks by id instead of created_at (core memory blocks don't have timestamps)
- Maintains consistent pagination behavior while fixing runtime error

* feat: implement database-level pagination for list_blocks endpoint

- Replace inefficient in-memory filtering with proper SQLAlchemy query
- Use BlocksAgents join table to filter blocks by agent_id at database level
- Apply pagination filters (before, after, limit) in SQL query for better performance
- Sort by BlockModel.created_at instead of in-memory sorting
- Add necessary imports: select from sqlalchemy, db_registry from letta.server.db
- Verify agent access before querying blocks

* refactor: move database logic from route to agent manager service layer

- Add list_agent_blocks_async method to AgentManager for proper separation of concerns
- Move SQLAlchemy query logic from REST route to service layer
- Keep routes focused on request/response handling
- Remove unnecessary imports from router (select, db_registry)
- Database pagination logic now properly encapsulated in service layer
2025-10-07 17:50:48 -07:00
cthomas
6e3e45fb2d feat: add pagination to agent groups endpoint (#5089)
feat: add pagination to list_agent_groups endpoint

- Add pagination parameters to list_groups_async method (before, after, limit, ascending)
- Update list_agent_groups endpoint to include pagination parameters (before, after, limit, order, order_by)
- Add proper cursor-based pagination and sorting in SQL query
- Pass pagination parameters from route to underlying service method
- Regenerate API client to reflect pagination parameter changes
2025-10-07 17:50:48 -07:00
cthomas
1b4780fa27 feat: add back async list_groups in agent manager [LET-4597] (#5095)
feat: convert list_groups to async in agent manager

- Add list_groups_async method to AgentManager to replace sync version
- Method filters groups by agent_id using join with GroupsAgents table
- Supports optional manager_type filtering
- Update list_agent_groups endpoint to use new async method
- No functional changes to endpoint behavior or parameters
2025-10-07 17:50:48 -07:00
cthomas
874ac0dd5c feat: add pagination to agent tools endpoint (#5084)
* feat: add pagination to agent tools endpoint

* chore: regenerate API client with pagination parameters

* feat: implement pagination logic in list_agent_tools endpoint

- Update list_attached_tools_async method to support pagination parameters (before, after, limit, ascending)
- Update list_agent_tools route to pass pagination parameters to underlying service method
- Add proper cursor-based pagination and sorting in SQL query

* feat: update default limit for list_agent_tools to 10

* feat: regenerate API client after limit parameter change
2025-10-07 17:50:48 -07:00
cthomas
cb5e89cfa2 feat: add pagination to agent messages endpoint (#5088)
* feat: add pagination to agent messages endpoint

* chore: regenerate API client with pagination parameters

* fix: remove limit fallback and use order parameter for reverse logic
2025-10-07 17:50:48 -07:00
cthomas
d9c7da643a feat: remove redundant docstring for runs steps (#5092) 2025-10-07 17:50:48 -07:00
cthomas
0794a6db69 feat: add pagination to run steps endpoint (#5083)
* feat: add pagination to run steps endpoint

* chore: regenerate API client with pagination parameters
2025-10-07 17:50:48 -07:00
cthomas
af23e6cda1 feat: add pagination to run messages endpoint (#5082)
* feat: add pagination to run messages endpoint

* chore: regenerate API client with pagination parameters
2025-10-07 17:50:48 -07:00
cthomas
e96fd83adf feat: add pagination to list jobs endpoint (#5078)
* feat: add pagination to list jobs endpoint

* chore: regenerate API client with pagination parameters
2025-10-07 17:50:48 -07:00
Shubham Naik
832d6275b9 Deprecate project (#5079)
* feat: deprecate project and template and from_template

* feat: deprecate project and template and from_template

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-10-07 17:50:48 -07:00
cthomas
c176835a1b feat: add pagination to list runs endpoint [LET-4580] (#5077)
feat: add pagination to list runs endpoint
2025-10-07 17:50:48 -07:00
Sarah Wooders
7b73b25a95 fix: fix mcp for complex schemas and add tests (#5063) 2025-10-07 17:50:48 -07:00