Commit Graph

195 Commits

Author SHA1 Message Date
Kian Jones
6fa1a1d6c3 make sure tool return chars within max int range (#5942)
* max

* final

* Set return_char_limit maximum to 1 million in OpenAPI spec (#5946)

* Initial plan

* Set max int range to 1 million for return_char_limit

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>

* Update tool.py

* fix api

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
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
Sarah Wooders
caa79d7bc9 feat: add EventMessage and SummaryMessage (#5765)
* feat: add new message types for 1.0

* feat: add new message types for 1.0

* update apis

* update openapi

---------

Co-authored-by: jnjpng <jin@letta.com>
Co-authored-by: Letta Bot <noreply@letta.com>
2025-11-13 15:36:50 -08:00
Cameron
28609d753c docs: migrate documentation to cloud-first approach (#5928)
* Add archival memory import/export utilities

Added two utility scripts for managing agent archival memories:

- export_agent_memories.py: Export all passages from an agent to JSON
  - Paginates through all results
  - Removes embedding/embedding_config for portability
  - Usage: python export_agent_memories.py <agent_id> [--output <file>]

- import_agent_memories.py: Import passages into an agent from JSON
  - Batch imports with progress tracking
  - Handles optional fields (tags, created_at)
  - Includes dry-run mode for preview
  - Usage: python import_agent_memories.py <agent_id> <input_file>

Use cases:
- Backup/restore agent memories
- Transfer memories between agents
- Seed new agents with existing knowledge bases

👾 Generated with Letta Code (https://letta.com)

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

* docs: migrate documentation to cloud-first approach

Update all documentation to use Letta Cloud as the default deployment path:
- Remove base_url parameter from cloud examples (uses api.letta.com by default)
- Add token authentication to all SDK examples
- Change localhost URLs to https://api.letta.com in all examples
- Remove embedding parameter from cloud examples (managed automatically)
- Add comprehensive embedding configuration section to self-hosting guide
- Add warnings about required embedding configuration for self-hosted deployments
- Update curl examples to include Authorization headers
- Link to https://app.letta.com/api-keys for token retrieval

Files updated:
- Agent guides (11 files)
- Model configuration pages (5 files)
- Evals documentation (6 files)
- ADE guides (2 files)
- Self-hosting guide
- Voice integration guide
- README
- Quickstart

* docs: fix embedding parameter issues in cloud examples

- Remove leftover embedding parameter from TypeScript example in agents/overview.mdx
- Make self-hosting comment more explicit in README by showing actual embedding parameter syntax

* docs: fix model configuration pages to be self-hosting focused

Model configuration pages (OpenAI, Anthropic, Azure, xAI, Ollama) are about
configuring providers on self-hosted servers, not Letta Cloud. Updated all
SDK examples to:
- Use base_url="http://localhost:8283" instead of cloud token auth
- Include embedding parameter with clear comment
- Use consistent "An embedding model is required for self-hosted" wording
- Add Note directing cloud users to quickstart guide

This clarifies that provider configuration is a self-hosting concern, while
Letta Cloud manages providers automatically.

* fix: remove duplicate Authorization headers in human-in-the-loop docs

* chore: remove utility scripts that shouldn't be in repo

---------

Co-authored-by: Letta <noreply@letta.com>
2025-11-13 15:36:49 -08:00
jnjpng
81d12d7d40 feat: add new template create agent route without project id path param [LET-5998] (#5898)
* base

* clean up

* generate

---------

Co-authored-by: Letta Bot <noreply@letta.com>
2025-11-13 15:36:45 -08:00
Cameron
30fb3e0bd8 docs: add enterprise-only warning for bring-your-own API keys (#5786)
Added warning message to clarify that BYOK is only available for enterprise customers.

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

Co-authored-by: Letta <noreply@letta.com>
2025-11-13 15:36:45 -08:00
Cameron
d27cfea139 docs: remove pip installation and letta server references (#5827)
Removes all references to pip installation (pip install letta) and the
letta server command from documentation, as Docker is now the only
supported installation method for self-hosting Letta.

Changes:
- Removed pip installation accordion from selfhosting/overview.mdx
- Updated FAQ to indicate Docker is required
- Removed CLI/pip sections from all model provider docs (13 files):
  * OpenAI, Anthropic, Groq, Google AI, DeepSeek, xAI, Together.AI
  * AWS Bedrock, Azure OpenAI, Google Vertex AI
  * Ollama, LM Studio, vLLM, OpenAI Proxy
- Removed "letta server" tabs from agent tool docs (web_search,
  fetch_webpage, run_code)
- Updated evals getting-started.mdx to use Docker in error messages

All references now point to Docker installation with links to the
self-hosting guide. SDK installation (pip install letta-client) remains
intact for developers using the Letta API.

Fixes feedback from user report at docs.letta.com/prompts

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

Co-authored-by: Letta <noreply@letta.com>
2025-11-13 15:36:44 -08:00
Charles Packer
95f5d12b9f docs: add parallel tool calling docs (#5876)
* docs: add parallel tool calling docs

* docs: forgot the yaml

* fix: update
2025-11-13 15:36:20 -08:00
Sarah Wooders
cfeed463a9 Revert "feat: provider-specific model configuration " (#5873)
Revert "feat: provider-specific model configuration  (#5774)"

This reverts commit 34a334949a3ef72cd49ff0ca3da9e85d16daa57c.
2025-11-13 15:36:20 -08:00
Cameron
e8eb2d53e9 docs: fix multimodal content order in examples (#5843)
Updates multimodal examples to place text content before image content,
which prevents request failures.

Changes:
- Reordered content array in all SDK examples to have text first, then image
- Fixed TypeScript mediaType casing (media_type -> mediaType)
- Applied to both URL-based and base64-encoded image examples

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

Co-authored-by: Letta <noreply@letta.com>
2025-11-13 15:36:18 -08:00
Sarah Wooders
aaa12a393c feat: provider-specific model configuration (#5774)
* initial code updates

* add models

* cleanup

* support overriding

* add apis

* cleanup reasoning interfaces to match models

* update schemas

* update apis

* add new field

* remove parallel

* various fixes

* modify schemas

* fix

* fix

* make model optional

* undo model schema change

* update schemas

* update schemas

* format

* fix tests

* attempt to patch web

* fic docs

* change schemas

* update error

* fix tests

* delete tests

* clean up undefined matching conditional

---------

Co-authored-by: jnjpng <jin@letta.com>
Co-authored-by: Letta Bot <noreply@letta.com>
2025-11-13 15:36:14 -08:00
Shubham Naik
95816b9b28 Shub/let 5962 add perfomranceduration search to runs [LET-5962] (#5850)
* feat: add perfomrance/search to list internal runs

* chore: add tests

* chore: fix ui

* feat: support UI for this

* chore: update tests

* chore: update types

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-11-13 15:36:14 -08:00
Charles Packer
e4c864f5a5 docs: point to new leaderboard site (#5854) 2025-11-13 15:36:14 -08:00
Cameron
da2e8aee8c docs: move Human-in-the-Loop out of experimental section (#5828)
Moves Human-in-the-Loop documentation from the Experimental section
to the Tool Use section, as it is a stable feature for tool approval
workflows.

Changes:
- Moved Human-in-the-Loop page to Tool Use section after Tool Variables
- Removed from Experimental section in docs navigation
- Removed experimental warning from human_in_the_loop.mdx

Human-in-the-Loop is now positioned alongside other tool-related
features, making it easier for users to discover when implementing
tool approval workflows.

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

Co-authored-by: Letta <noreply@letta.com>
2025-11-13 15:36:12 -08:00
jnjpng
4a35148a60 fix: duplicate LettaStreamingResponse in fern override (#5824)
base

Co-authored-by: Letta Bot <noreply@letta.com>
2025-11-13 15:36:08 -08:00
Shubham Naik
90091d8383 feat: allow templates to preserve agent reconcilation [LET-5935] (#5788)
* feat: allow templates to preserve agent reconcilation

* chore: udpate routes

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-11-13 15:36:08 -08:00
Cameron
a75a825e60 docs: fix broken link to example prompts (#5813)
Fix broken link in prompts documentation that was pointing to
/prompts instead of /letta/prompts in the GitHub repository.

Reported by user feedback at docs.letta.com/prompts
2025-11-13 15:36:06 -08:00
jnjpng
a85abe71b7 feat: add streaming response type to messages stream for stainless [LET-5949] (#5807)
* base

* generate

* fix

* update

* done

* yaml

---------

Co-authored-by: Letta Bot <noreply@letta.com>
2025-11-13 15:36:02 -08:00
jnjpng
678167720f fix: toggle off stainless pagination for list endpoints that require id field [LET-5948] (#5804)
* base

* update stainless

---------

Co-authored-by: Letta Bot <noreply@letta.com>
2025-11-13 15:36:02 -08:00
Charles Packer
c17a06ebb2 docs: pricing docs fix (#5791)
* fix: patch pricing

* fix: point out byok

* fix: updated

* fix: another boost
2025-11-13 15:35:39 -08:00
Cameron Pfiffer
3672830684 docs: add archival memory export guide (#5784)
Add documentation page showing how to export all archival memories from an agent using the Letta SDK. Includes a complete Python script with pagination support and usage examples.
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
042a32d371 feat: add project_id to internal runs endpoint [LET-5915] (#5761)
feat: add explicit project_id to internal runs endpoint [LET-5915]
2025-11-13 15:35:34 -08:00
Sarah Wooders
b15b04cec0 docs: add docs on rag tutorials (#5729) 2025-11-13 15:35:34 -08:00
Ari Webb
787740e3cb feat: deprecate shared_block_ids, and add groups, blocks [LET-4430] (#5746)
* deprecate field

* add detach/attach, verify user can do them

* just stage publish api

---------

Co-authored-by: Ari Webb <ari@letta.com>
2025-11-13 15:35:34 -08:00
Sarah Wooders
85ed29274c feat: clean up block return object [LET-5784] (#5641)
* fix: fix deep research agent

* chore: update blocks response

* add message

* update agents

* update

* use blockresponse

* undo merge conflict

* add internal agents and blocks

* remove unnecessary internal agent route

* fix utils server test

---------

Co-authored-by: christinatong01 <christina@letta.com>
2025-11-13 15:35:32 -08:00
Caren Thomas
0f60f67742 remove docs 2025-10-24 15:15:51 -07:00
Devansh Jain
056a293bfa chore: Update leaderboard table (#5728)
* update leaderboard pointer

* use raw yaml

* update cost cap
2025-10-24 15:14:37 -07:00
jnjpng
949320ab25 chore: add order_by param to list archives [LET-5839] (#5734)
* base

* generatE

---------

Co-authored-by: Letta Bot <noreply@letta.com>
2025-10-24 15:14:31 -07:00
Ari Webb
d558084703 feat: make some routes return none for sdk v1 [LET-5831] (#5724)
just the easy ones

Co-authored-by: Ari Webb <ari@letta.com>
2025-10-24 15:14:31 -07:00
Cameron Pfiffer
1d4a6e548d docs: improve Examples & Tutorials page (#5723)
docs: improve Examples & Tutorials page with better organization and content

- Reorganize page into clear sections: Getting Started, Ready-to-Deploy, Multi-Agent, Tools & Integrations, SDK Examples, Community Projects, Learning Resources
- Add more examples from Awesome Letta including CharacterAI clone, Deep Research Agent, DuckDB Agent, and various integrations
- Add helpful Info box pointing to Quickstart, DeepLearning.AI Course, and Awesome Letta
- Improve card descriptions to be more informative and action-oriented
- Update title from "Letta Cookbooks" to "Examples & Tutorials" for clarity
- Fix internal tutorial links to use correct /examples/ and /cookbooks/ paths
- Better connect page to rest of documentation and community resources
2025-10-24 15:14:30 -07:00
Cameron Pfiffer
70e60e3f2f docs: wrap TypeScript complete examples in async functions (#5722)
* docs: wrap TypeScript complete examples in async functions for copy-paste compatibility

* docs: fix blocks.attach to pass blockId directly instead of object

* docs: fix blocks.attach in shared-memory-blocks tutorial

* docs: add timeout configuration for web search examples
2025-10-24 15:14:21 -07:00
Cameron Pfiffer
6f183aba8e docs: add PDF chat tutorial (#5715)
* docs: add PDF chat tutorial with correct shell syntax

* docs: add PDF chat tutorial to navigation

* docs: add requests dependency for Python in pdf_chat tutorial

* docs: wrap TypeScript example in async function to fix top-level await error

* docs: add error handling for existing folders in pdf_chat tutorial

* docs: fix folders.list() to use response.folders property

* docs: await PDF download completion to fix race condition

* docs: use retrieve_by_name API for proper folder existence handling

* docs: fix upload API to use single request object and file stream

* docs: fix upload to use folderId as first parameter

* docs: simplify upload to use file stream directly

* docs: use three-parameter upload signature (folderId, file, options)

* docs: fix upload parameter order to (file, folderId, options)

* docs: fix attach to pass folderId directly instead of object
2025-10-24 15:14:21 -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
Ari Webb
272f055b4a feat: attach/detach identities route on blocks and agents, move archives attach/detach routes to agents [LET-4428] (#5708)
* deprecate ids for identity endpoints in favor of attach

* move archive attach/detach to agent

* new identities routes

* overrides for path

---------

Co-authored-by: Ari Webb <ari@letta.com>
2025-10-24 15:14:20 -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
Christina Tong
8872a3b954 chore: add context_window_limit and max_tokens to UpdateAgent [LET-3743] [LET-3741] (#5710)
* chore: add context_window_limit and max_tokens to update agent [LET-3743]

* add generated sdk docs

* simplify comment
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
899f70661c feat: add openai-style include param for agents relationship loading [LET-5820] (#5681)
feat: add include param to routes with version check
2025-10-24 15:14:20 -07:00
Christina Tong
140be293da feat: deprecate append copy suffix, add override name [LET-5779] (#5694)
* feat: deprecate append copy suffix, add override name [LET-5779]

* update open api json
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
5e43291436 feat: remove relationship fields on identities (#5691) 2025-10-24 15:14:09 -07:00
Cameron Pfiffer
db1a3f5bff docs: reorder code groups to show TypeScript first in quickstart (#5692) 2025-10-24 15:14:06 -07:00
Sarah Wooders
2270d2f050 docs: fix documentation and update SDK for cc (#5689) 2025-10-24 15:13:54 -07:00
Cameron Pfiffer
237a502552 feat: integrate Letta Evals documentation (#5665) 2025-10-24 15:13:47 -07:00
cthomas
ef6f8b27be feat: reset message incorrectly using query param [LET-5797] (#5667)
* feat: reset message incorrectly using query param

* fix type-check
2025-10-24 15:13:47 -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
2f30b789fd feat: fix patch approvals endpoint incorrectly using queyr params [LET-5792] (#5661)
* feat: fix patch approvals endpoint incorrectly using queyr params

* make change backwards compatible
2025-10-24 15:13:47 -07:00
cthomas
3d45228a3e feat: rename preview title for docs search [LET-5795] (#5664)
* feat: rename preview title for docs search

* rename to preview_model_request
2025-10-24 15:13:47 -07:00