Commit Graph

158 Commits

Author SHA1 Message Date
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
cthomas
8a3574bc48 feat: remove unused max length parameter [LET-5796] (#5666)
feat: remove unused max length parameter
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
026deb294c feat: update delete runs return type [LET-5777] (#5636)
feat: update delete runs return type
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
cthomas
ac69683a0f feat: rename summarize messages title for docs search [LET-5794] (#5663)
feat: rename summarize messages title for docs search
2025-10-24 15:13:47 -07:00
cthomas
75b3c0bf4d feat: deprecate use_assistant_message in list endpoints [LET-5793] (#5662)
feat: deprecate use_assistant_message in list endpoints
2025-10-24 15:13:47 -07:00
Shubham Naik
8ffc088a07 chore: fix response type for agents (#5654)
Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-10-24 15:13:47 -07:00
Ari Webb
8611c17046 feat: archives delete endpoint [LET-4397] (#5655)
delete endpoint

Co-authored-by: Ari Webb <ari@letta.com>
2025-10-24 15:13:47 -07:00
Ari Webb
4083f335f4 feat: add get_archive_by_id endpoint [LET-4405] (#5640)
add get_archive_by_id

Co-authored-by: Ari Webb <ari@letta.com>
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
Cameron Pfiffer
fc531ca6de docs: center documentation around current Letta architecture (#5634)
* docs: restructure architecture documentation to sideline legacy agent types

This commit reorganizes the agent architecture documentation to address
confusion around legacy agent types (memgpt_agent, memgpt_v2_agent) and
clarify that users should not specify agent_type for new projects.

The documentation was causing confusion for both users and LLMs:
- References to memgpt_agent, memgpt_v2_agent, and letta_v1_agent were scattered
  throughout main docs
- The naming progression (memgpt → memgpt_v2 → letta_v1) is non-standard
- LLMs trained on these docs were recommending deprecated architectures
- Discord users were confused about which agent type to use
- send_message tool and heartbeat references were in mainline docs

- architectures_overview.mdx - Landing page explaining legacy types exist
- migration_guide.mdx - Step-by-step migration with code snippets
- naming_history.mdx - Hidden page explaining progression for LLMs
- memgpt_agents_legacy.mdx - Moved from main docs with deprecation warnings
- heartbeats_legacy.mdx - Moved from main docs with deprecation warnings

- Removed "Agent Architectures" subsection from main nav
- Moved "MemGPT Agents" to top-level (renamed "Agent Memory & Architecture")
- Removed "Heartbeats" page from main nav
- Added "Legacy & Migration" section with 5 sub-pages
- Added redirects for old URLs

- pages/agents/memgpt_agents.mdx - Completely rewritten to focus on current
  architecture without mentioning legacy agent types
- pages/agents/sleep_time_agents.mdx - Changed from agent_type to enableSleeptime
- pages/agents/base_tools.mdx - Added stronger deprecation warning for send_message
- pages/agents/overview.mdx - Updated assistant_message description
- pages/agents/tool_rules.mdx - Removed send_message default rule examples
- pages/agents/message_types.mdx - Removed heartbeat message type section
- pages/agents/json_mode.mdx - Removed send_message requirements
- pages/agents/archival_best_practices.mdx - Removed send_message tool rule example
- pages/agents/react_agents.mdx - Removed heartbeat mechanism reference
- pages/getting-started/prompts.mdx - Removed send_message note
- pages/ade-guide/simulator.mdx - Removed tip about removing send_message
- pages/advanced/custom_memory.mdx - Changed send_message to "respond to user"
- pages/deployment/railway.mdx - Removed legacy tools array from example
- pages/selfhosting/overview.mdx - Changed send_message example to memory_insert

- pages/agents/heartbeats.mdx - Moved to legacy section

Added to memory: aggressively remove send_message and heartbeat references
from main docs. Keep legacy content only in /guides/legacy/ section. Don't
add notes about legacy in main docs - just remove the references entirely.

* docs: remove evals tab from navigation

The evals content is not ready for public documentation yet.

* docs: move send_message to deprecated tools table with legacy link

- Removed Legacy Tools section
- Added send_message to Deprecated Tools table with link to legacy guide
- Removed undefined warning text

* docs: move ReAct agents to legacy section

- Moved pages/agents/react_agents.mdx to pages/legacy/react_agents_legacy.mdx
- Added deprecation warning at top
- Updated slug to guides/legacy/react_agents_legacy
- Added to Legacy & Migration navigation section
- Added redirect from old URL to new legacy location

ReAct agents are a legacy architecture that lacks long-term memory
capabilities compared to the current Letta architecture.

* docs: move workflow and low-latency architectures to legacy

- Moved pages/agents/workflows.mdx to pages/legacy/workflows_legacy.mdx
- Moved pages/agents/low_latency_agents.mdx to pages/legacy/low_latency_agents_legacy.mdx
- Deleted pages/agents/architectures.mdx (overview page no longer needed)
- Removed 'Agent Memory & Architecture' from main Agents section
- Added workflows and low-latency to Legacy & Migration section
- Added redirects for old URLs

These agent architectures (workflow_agent, voice_convo_agent) are legacy.
For new projects, users should use the current Letta architecture with
tool rules or voice-optimized configurations instead.

* docs: remove orphaned stateful workflows page

- Deleted pages/agents/stateful_workflows.mdx
- Page was not linked in navigation or from other docs
- Feature (message_buffer_autoclear flag) is already documented in API reference
- Avoids confusion with legacy workflow architectures
2025-10-24 15:13:45 -07:00
Christina Tong
3d342d402b fix: change operation id of list internal runs (#5637)
* fix: change operation id of list internal runs

* update docs
2025-10-24 15:13:38 -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
849a1b02aa feat: remove override for deleted modify passage route (#5618) 2025-10-24 15:13:15 -07:00
Kian Jones
bbaaabb6e1 fix: path validator had weird fastapi shared object memory bug (#5594)
* fix weird path param conflict

* move to factory model

* openapi

* use type hinting and import annotations

* re add after mc resolution
2025-10-24 15:13:15 -07:00
cthomas
c8e8cad507 feat: deprecate v1 agentfile export [LET-5751] (#5601)
* feat: deprecate v1 agentfile export

* add back legacy schema
2025-10-24 15:13:15 -07:00
cthomas
a06ec8d643 feat: remove reference to deleted modify passage route (#5616) 2025-10-24 15:13:15 -07:00
cthomas
ecadcf82ce feat: reorder approvals route (#5615) 2025-10-24 15:13:15 -07:00
cthomas
1e175b8633 feat: mark legacy agents routes as deprecated [LET-5762] (#5609)
feat: mark legacy agents routes as deprecated
2025-10-24 15:13:15 -07:00
cthomas
beaeddf54d feat: add new blocks field to agent model and deprecate memory field [LET-4424] (#5613)
feat: add new blocks field to agent model and deprecate memory field
2025-10-24 15:13:15 -07:00
cthomas
99c7c41911 feat: add descriptive title to groups routes for docs search [LET-5760] (#5607)
feat: add descriptive title to groups routes for docs search
2025-10-24 15:13:15 -07:00
cthomas
3cf17359a9 feat: add descriptive titles to folders routes for docs search [LET-5758] (#5606)
feat: add descriptive titles to folders routes for docs search
2025-10-24 15:13:15 -07:00
cthomas
952019b072 feat: add descriptive titles to tools routes for docs search [LET-5757] (#5605)
feat: add descriptive titles to tools routes for docs search
2025-10-24 15:13:15 -07:00
cthomas
c6f1a3a0b8 feat: add descriptive titles to blocks routes for docs search [LET-5756] (#5604)
feat: add descriptive titles to routes for docs search
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
cthomas
6c27d8a1ec feat: mark use_assistant_message, etc as deprecated [LET-4556] (#5598)
feat: mark use_assistant_message, etc as deprecated
2025-10-24 15:13:15 -07:00
cthomas
fc9052fb6e chore: rename cancel agent to cancel message [LET-4346] (#5597)
* chore: rename cancel agent to cancel message

* fix type-check
2025-10-24 15:13:15 -07:00
cthomas
bd918fcffa feat: remove count endpoints from documentation (#5614) 2025-10-24 15:13:15 -07:00
cthomas
04bf2c82fa feat: reorganize agents routes subsections (#5603) 2025-10-24 15:13:15 -07:00
Shubham Naik
1f1f0e3ef1 parallel tool call template stupport [LET-5658] (#5575)
* chore: parallel tool call bugfix

* chore: next

* chore: next

* chore: parallel tool call

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-10-24 15:13:15 -07:00
Sarah Wooders
08be90f5e9 feat: revise mcp tool routes (#5195)
* refactored version of MCP routs

* feat: revise MCP routes

* working through new routes spec

* refining

* add necessary patch for config

* mcp servers progress

* small fixes

* updates

* finished

* just stage and publish api

* make update static

---------

Co-authored-by: Ari Webb <ari@letta.com>
Co-authored-by: Ari Webb <arijwebb@gmail.com>
2025-10-24 15:13:15 -07:00
Cameron Pfiffer
3e0aae08db docs: clarify that ClickHouse is optional for telemetry (#5572)
- Add prominent note in telemetry guide stating ClickHouse is optional
- Add "Optional: Telemetry with ClickHouse" section to self-hosting docs
- Make it clear Letta works with just PostgreSQL
- ClickHouse only needed for observability features (traces, LLM logging, metrics)
2025-10-24 15:13:13 -07:00
Cameron Pfiffer
abfddfe7b9 Add comprehensive documentation for built-in tools (#5519)
* feat: update documentation and add new tutorials for memory blocks and agent collaboration

- Updated navigation paths in docs.yml to reflect new tutorial locations.
- Added comprehensive guides on shared memory blocks and attaching/detaching memory blocks.
- Enhanced existing documentation for memory blocks with examples and best practices.
- Corrected API key references in prebuilt tools documentation.

These changes aim to improve user understanding and facilitate multi-agent collaboration through shared memory systems.

* Add comprehensive documentation for built-in tools

- Restructure Tool Use section with Base Tools and Utilities
- Add Base Tools page documenting memory management and communication tools
- Add Web Search documentation with Exa integration details
- Add Code Interpreter documentation covering supported languages and limitations
- Add Fetch Webpage documentation with fallback extraction methods
- Update Utilities overview page to link to detailed tool docs
2025-10-24 15:13:05 -07:00
Cameron Pfiffer
b0423b4912 docs: clarify agent tools vs SDK endpoints in archival memory guides (#5555)
Separate agent tool calls (archival_memory_insert, archival_memory_search)
from SDK endpoints (client.agents.passages.*) throughout the archival memory
documentation to reduce confusion between what agents do autonomously vs what
developers do via the SDK.

Changes:
- Remove language tabs from agent tool examples (not language-specific)
- Add Info callout explaining the two interaction levels
- Add SDK search example for symmetry with agent search example
- Reorganize best practices into "Agent" and "Developer (SDK)" sections
- Remove comparison table
- Add troubleshooting section with common issues
- Update pagination references to use cursor-based approach
2025-10-24 15:13:03 -07:00
cthomas
73dcc0d4b7 feat: latest hitl + parallel tool call changes (#5565) 2025-10-24 15:12:49 -07:00