Commit Graph

223 Commits

Author SHA1 Message Date
Shubham Naik
f3799fe4ee Shub/let 6883 users can create a feed [LET-6883] (#8432)
* chore: pdu

* chore: pdu

* chore: delete/disable

* chore: delete/disable

* chore: pdu

* chore: pdu

* chore: pdu

* chore: pdu

* chore: pdu

* chore: pdu

* chore: merge

* chore: merge

* cha

* chore: hotfix for convo id
2026-01-12 10:57:49 -08:00
Ari Webb
754e750cc5 feat: add conversation_id filter to list runs [LET-6865] (#8404)
feat: add conversation_id filter to list runs
2026-01-12 10:57:48 -08:00
Charles Packer
ed6284cedb feat: Add conversation_id filtering to message endpoints (#8324)
* feat: Add conversation_id filtering to message list and search endpoints

Add optional conversation_id parameter to filter messages by conversation:
- client.agents.messages.list
- client.messages.list
- client.messages.search

Changes:
- Added conversation_id field to MessageSearchRequest and SearchAllMessagesRequest schemas
- Added conversation_id filtering to list_messages in message_manager.py
- Updated get_agent_recall_async and get_all_messages_recall_async in server.py
- Added conversation_id query parameter to router endpoints
- Updated Turbopuffer client to support conversation_id filtering in searches

Fixes #8320

🤖 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Charles Packer <cpacker@users.noreply.github.com>

* add conversation_id to message and tpuf

* default messages filter for backward compatibility

* add test and auto gen

* fix integration test

* fix test

* update test

---------

Co-authored-by: letta-code <248085862+letta-code@users.noreply.github.com>
Co-authored-by: Charles Packer <cpacker@users.noreply.github.com>
Co-authored-by: christinatong01 <christina@letta.com>
2026-01-12 10:57:48 -08:00
Shubham Naik
6e64b59d8a chore: add scheduled message api to docs (#8348)
* chore: add scheudled message api o dogs

* chore: udpate api

* chore: clarification

* chore: clarification

* chore: clarification

* chore: next
2026-01-12 10:57:48 -08:00
cthomas
9b359418d0 feat: add pending approval field on agent state (#8361)
* feat: add pending approval field on agent state

* test failures
2026-01-12 10:57:48 -08:00
Ari Webb
956e7783ad feat: add ids to archival memory search [LET-6642] (#8355)
* feat: add id to archival memory search tool

* stage api
2026-01-12 10:57:48 -08:00
Shubham Naik
a40bacd9c6 feat: add /v1/metadata/user [LET-6845] (#8349)
* feat: add /v1/metadata/user

* feat: add /v1/metadata/user

* chore: udpate style

* chore: udpate style

* chore: rebuild
2026-01-12 10:57:48 -08:00
Shubham Naik
350436c0cc Shub/let 6820 add the migrator between legacy project to default project [LET-6820] (#8300)
* chore

* chore; udpate secrets

* chore: remove sleeptime templates

* chore: remove sleeptime templates

* Update apps/web/src/lib/client/components/ADEPage/ADEHeader/ADEHeader.tsx

Co-authored-by: datadog-official[bot] <214633350+datadog-official[bot]@users.noreply.github.com>

* Update apps/web/src/lib/client/components/ADEPage/ADEHeader/LegacyMigrationModal/LegacyMigrationModal.tsx

Co-authored-by: datadog-official[bot] <214633350+datadog-official[bot]@users.noreply.github.com>

---------

Co-authored-by: datadog-official[bot] <214633350+datadog-official[bot]@users.noreply.github.com>
2026-01-12 10:57:48 -08:00
Sarah Wooders
18a1a16bf4 Revert "feat: add message_types filter to list messages endpoint" (#8314)
Revert "feat: add message_types filter to list messages endpoint (#8280)"

This reverts commit e7ac5df721ec4b3e663dd30239f590ee16bb8630.
2026-01-12 10:57:48 -08:00
Charles Packer
e57adc0a6e chore: mark agent.messages.stream endpoint as deprecated (#8227) 2026-01-12 10:57:48 -08:00
Cameron
7c44375cce feat: add message_types filter to list messages endpoint (#8280)
* feat: add message_types filter to list messages endpoint

Add the ability to filter messages by type when listing message history
via GET /v1/agents/{agent_id}/messages. This brings parity with the
create message endpoint which already supports include_return_message_types.

Changes:
- Add message_types query parameter to list_messages endpoint in agents.py
- Add message_types parameter to get_agent_recall_async in server.py
- Filter messages by message_type after LettaMessage conversion
- Add test for message_types filtering

Closes #8277

Written by Cameron ◯ Letta Code

> "Simplicity is the ultimate sophistication." - Leonardo da Vinci

🐙 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>

* chore: regenerate OpenAPI spec and SDK for message_types filter

🐧 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>

Written by Cameron ◯ Letta Code

"The only way to do great work is to love what you do." - Steve Jobs

---------

Co-authored-by: Letta <noreply@letta.com>
2026-01-12 10:57:48 -08:00
Sarah Wooders
87d920782f feat: add conversation and conversation_messages tables for concurrent messaging (#8182) 2026-01-12 10:57:48 -08:00
Shubham Naik
6e0bf69ed8 feat: pipelines backend (#8218)
* chore: next

* chore: next

* chore: next

* chore: next

* chore: next

* chore: next

* chore: next

* chore: next

* chore: next

* chore: next

* chore: next

* chore: next

* chore: next

* chore; udpate secrets
2026-01-12 10:57:48 -08:00
Charles Packer
64a1a8b14e feat: expose agent_id to the messages search api endpoint (#8252) 2026-01-12 10:57:48 -08:00
Sarah Wooders
7669896184 feat: allow client-side tools to be specified in request (#8220)
* feat: allow client-side tools to be specified in request

Add `client_tools` field to LettaRequest to allow passing tool schemas
at message creation time without requiring server-side registration.
When the agent calls a client-side tool, execution pauses with
stop_reason=requires_approval for the client to provide tool returns.

- Add ClientToolSchema class for request-level tool schemas
- Merge client tools with agent tools in _get_valid_tools()
- Treat client-side tool calls as requiring approval
- Add integration tests for client-side tools flow

🤖 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>

* test: add comprehensive end-to-end test for client-side tools

Update integration test to verify the complete flow:
- Agent calls client-side tool and pauses
- Client provides tool return with secret code
- Agent processes and responds
- User asks about the code, agent recalls it
- Validate full conversation history makes sense

🤖 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>

* update apis

* fix: client-side tools schema format and test assertions

- Use flat schema format for client tools (matching t.json_schema)
- Support both object and dict access for client tools
- Fix stop_reason assertions to access .stop_reason attribute

🤖 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>

* refactor: simplify client_tools access pattern

ClientToolSchema objects always have .name attribute

🤖 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>

* fix: add client_tools parameter to LettaAgentV2 for API compatibility

V2 agent doesn't use client_tools but needs the parameter
to match the base class signature.

🤖 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>

* revert: remove client_tools from LettaRequestConfig

Client-side tools don't work with background jobs since
there's no client present to provide tool returns.

🤖 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>

* fix: add client_tools parameter to SleeptimeMultiAgent classes

Add client_tools to step() and stream() methods in:
- SleeptimeMultiAgentV3
- SleeptimeMultiAgentV4

🤖 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>

* chore: regenerate API specs for client_tools support

🤖 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>

---------

Co-authored-by: Letta <noreply@letta.com>
2026-01-12 10:57:48 -08:00
cthomas
6c19192413 fix: validation failure on blocks retrieve [LET-6709] (#8146)
* fix: validation failure on blocks retrieve

* api sync
2026-01-12 10:57:47 -08:00
Shubham Naik
c192600e8c Feeds v0 (#8034)
* feeds v0

* wow

* chore: add functions

* chore: add functions

* chore: add apis

* chore: add apis

* chore: add apis

* chore: next

* chore: next

* chore: next

* chore: next

* chore: next

* chore: next

* chore: regenerate api

* chore: regenerate api

* chore: regenerate api

* chore: regenerate api

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
Co-authored-by: Shubham Naik <shubhamnaik@Shubhams-MacBook-Pro.local>
2026-01-12 10:57:47 -08:00
Sarah Wooders
28b2f8b03f fix: just api generation (#8063) 2026-01-12 10:57:47 -08:00
cthomas
0b97eec56b feat: collect metadata in feedback endpoint (#8000) 2026-01-12 10:57:20 -08:00
cthomas
c51d7f049c feat: add model id to telem (#7679)
* feat: add model id to telem

* api sync
2026-01-12 10:57:20 -08:00
Sarah Wooders
acd8dd7bcf feat: make embedding_config optional on agent creation (#7553)
* feat: make embedding_config optional on agent creation

- Remove requirement for embedding_config in agent creation
- Add EmbeddingConfigRequiredError for operations that need embeddings
- Add null checks in sleeptime agent creation, passage insert, archive creation
- Register new error in app.py exception handlers

🐾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>

* chore: update API schemas for optional embedding_config

🐾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>

---------

Co-authored-by: Letta <noreply@letta.com>
2026-01-12 10:57:19 -08:00
cthomas
063228ba58 feat: letta code telemetry events (#7662)
* feat: letta code telemetry events

* api sync
2026-01-12 10:57:19 -08:00
Ari Webb
cd45212acb feat: add zai provider support (#7626)
* feat: add zai provider support

* add zai_api_key secret to deploy-core

* add to justfile

* add testing, provider integration skill

* enable zai key

* fix zai test

* clean up skill a little

* small changes
2026-01-12 10:57:19 -08:00
Ari Webb
cb283373b7 feat: add retrieve_file endpoint to get file content [LET-6188] (#7485)
* feat: add retrieve_file endpoint to get file content

* Restore package-lock.json to main
2026-01-12 10:57:19 -08:00
Ari Webb
4d8d9757aa feat: add request-id for steps [LET-6587] (#7349)
* feat: add request-id for steps

* order revisions correctly

* stage publish api
2026-01-12 10:57:19 -08:00
Sarah Wooders
a7639a53eb fix: fix summary message return for compaction (#7402) 2026-01-12 10:57:19 -08:00
Shubham Naik
477b51fda1 chore: fix casing omg (#7379)
* chore: fix

* chore: fix

* chore: fix

* chore: merge

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2026-01-12 10:57:19 -08:00
Sarah Wooders
3f3e54d937 feat: add compaction response (#7389) 2026-01-12 10:57:19 -08:00
Sarah Wooders
f9f1b1e82d feat: allow for configuration compaction and return message delta (#7378) 2026-01-12 10:57:19 -08:00
Shubham Naik
0585f013f4 feat: telemetry endpoint [LET-6599] (#7370)
* feat: telemetry endpoint

* feat: telemetry endpoint

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2026-01-12 10:57:19 -08:00
Shubham Naik
25a7eaafe6 Shub/let 6588 feedback endpoint [LET-6588] (#7329)
* feat: add feedback endpoint

* feat: add feedback endpoint

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-12-17 17:31:03 -08:00
Shubham Naik
2f023e9f4a Shub/let 6581 add endpoint for showing current balances [LET-6581] (#7208)
* feat: add endpoint for showing current balance

* feat: add endpoint for showing current balance

* chore: update endpoints

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-12-17 17:31:02 -08:00
Christina Tong
f929d53cfe add msg id to search endpoint response [LET-6582] (#7236)
* add msg id to search endpoint response

* rename
2025-12-17 17:31:02 -08:00
Sarah Wooders
bd9f3aca9b fix: fix prompt_acknowledgement usage and update summarization prompts (#7012) 2025-12-15 12:03:09 -08:00
Sarah Wooders
a731e01e88 fix: use model instead of model_settings (#6834) 2025-12-15 12:03:09 -08:00
Sarah Wooders
a721a00899 feat: add agent_id to search results (#6867) 2025-12-15 12:03:09 -08:00
Kevin Lin
4b9485a484 feat: Add max tokens exceeded to stop reasons [LET-6480] (#6576) 2025-12-15 12:03:09 -08:00
Ari Webb
fecf503ad9 feat: xhigh reasoning for gpt-5.2 (#6735) 2025-12-15 12:03:09 -08:00
Sarah Wooders
7ea297231a feat: add compaction_settings to agents (#6625)
* initial commit

* Add database migration for compaction_settings field

This migration adds the compaction_settings column to the agents table
to support customized summarization configuration for each agent.

🐾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>

* fix

* rename

* update apis

* fix tests

* update web test

---------

Co-authored-by: Letta <noreply@letta.com>
Co-authored-by: Kian Jones <kian@letta.com>
2025-12-15 12:02:34 -08:00
Shubham Naik
4309ecf606 chore: list shceudled messages [LET-6497] (#6690)
* chore: list shceudled messages

* chore: list shceudled messages

* chore: fix type

* chore: fix

* chore: fix

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-12-15 12:02:34 -08:00
Shubham Naik
67d1c9c135 chore: autogenerate-api (#6699)
Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-12-15 12:02:34 -08:00
jnjpng
3221ed8a14 fix: update base provider to only handle _enc fields (#6591)
* base

* update

* another pass

* fix

* generate

* fix test

* don't set on create

* last fixes

---------

Co-authored-by: Letta Bot <noreply@letta.com>
2025-12-15 12:02:34 -08:00
Shubham Naik
99126c6283 feat: add delete scheudle message handler [LET-6496] (#6589)
* feat: add delete scheudle message handler

* chore: scheduled messages

* chore: scheduled messages

* chore: upodate sources

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-12-15 12:02:34 -08:00
Sarah Wooders
bbd52e291c feat: refactor summarization and message persistence code [LET-6464] (#6561) 2025-12-15 12:02:34 -08:00
Shubham Naik
b2cae07556 Shub/let 6495 create base code for scheduling [LET-6495] (#6581)
* feat: create base code for scheduling

* feat: create base code for scheduling

* feat: create base code for scheduling

* feat: create base code for scheduling

* chore: redeploy

* chore: redeploy

* chore: userid

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-12-15 12:02:34 -08:00
Ari Webb
b4af037c19 feat: default preserve filesystem for migration [LET-6366] (#6475)
* feat: default preserve filesystem for migration

* add button on frontend

* stage and publish api and add to templates test

* fix test

* stage and publish api

* agents inherit folders from templates

* sync sources on template update

* don't preserve sources on af upload

* fix test
2025-12-15 12:02:34 -08:00
Ari Webb
4092820f3a feat: add project id scoping for tools backend changes (#6529) 2025-12-15 12:02:34 -08:00
Sarah Wooders
e862bae524 feat: patch tool calling endpoint and add SDK testing (#6456) 2025-12-15 12:02:19 -08:00
Charles Packer
88a3743cc8 fix(core): distinguish between null and 0 for prompt caching (#6451)
* fix(core): distinguish between null and 0 for prompt caching

* fix: runtime errors

* fix: just publish just sgate
2025-12-15 12:02:19 -08:00
Charles Packer
131891e05f feat: add tracking of advanced usage data (eg caching) [LET-6372] (#6449)
* feat: init refactor

* feat: add helper code

* fix: missing file + test

* fix: just state/publish api
2025-12-15 12:02:19 -08:00