Commit Graph

126 Commits

Author SHA1 Message Date
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
Kian Jones
448ba33c70 fix: source id from pydantic base class rather than expected string id (#5554)
* first pass

* hacky fix bc of path import
2025-10-24 15:12:26 -07:00
Cameron Pfiffer
31cb8de606 feat: add shared memory block tutorial, update memory block guide (#5503)
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.
2025-10-24 15:12:24 -07:00
Christina Tong
79f49c33d8 feat: add tool_used field to run_metrics [LET-5419] (#5540)
* feat: add tool_used field to run_metrics [LET-5419]

* change to tool name

* use tool ids over names

* add generated files

* chore: update OpenAPI schema to include tools_used field in RunMetrics

* update alembic file
2025-10-24 15:12:11 -07:00
cthomas
f8437d47e2 feat: add support for hitl parallel tool calling (#5549)
* feat: add support for hitl parallel tool calling

* rename to requested_tool_calls
2025-10-24 15:12:11 -07:00
Matthew Zhou
ddd1686ad1 feat: Add flag to tools to signify if they are race safe [LET-5611] (#5548)
* wip add race unsafe param

* Alembic migration

* Fern autogen

* Set default to True

* Adjust fern

* Rename field

* Run fern autogen

* Add enable_parallel_execution to Tool Create and Update
2025-10-24 15:12:11 -07:00
Kian Jones
3ac7cde434 feat: add path parameter validation for source_id (#5524)
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-24 15:12:11 -07:00
Kian Jones
2878a6e4bd feat: add path parameter validation for folder_id (#5523)
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-24 15:12:11 -07:00
Kian Jones
47bf549dfc feat: add path parameter validation for file_id (#5522)
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-24 15:12:11 -07:00
Kian Jones
3b56c53b6c feat: add path parameter validation for group_id (#5521)
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-24 15:12:11 -07:00
Kian Jones
8a35b886ea feat: add path parameter validation to message_id (#5515)
* feat: add path parameter validation to message_id

* fix: typo

* add comment for agent_id here

* openapi.json changes
2025-10-24 15:12:11 -07:00
Kian Jones
0dd7506af7 feat: add path parameter validation for job_id (#5518)
openapi.json changes
2025-10-24 15:12:11 -07:00
Kian Jones
ad0f6b2be0 feat: add validator for block id (#5514)
* add validator for block id

* add import

* fix plurality:

* openapi-schema.json
2025-10-24 15:12:11 -07:00
Kian Jones
f04bc0753c feat: add path parameter validation for tool_id (#5525)
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-24 15:12:11 -07:00
Kian Jones
c4379c3b8b feat: add path validation for archive, provider, sandbox, step, and identity IDs (#5526)
- Add validation for archive_id in archives.py
- Add validation for provider_id in providers.py
- Add validation for sandbox_config_id in sandbox_configs.py
- Add validation for step_id in steps.py
- Add validation for identity_id in identities.py
- Update validators.py to include new primitives and remove mcp_server
- Regenerate OpenAPI schema and SDK

🤖 Generated with Claude Code

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-24 15:12:11 -07:00
Matthew Zhou
c97a395a48 fix: Make parallel tool calls optional on create/update agent [LET-5612] (#5545)
Make parallel tool calls optional on create/update agent pydantic
2025-10-24 15:12:11 -07:00
Matthew Zhou
396959da2f feat: Add toggle on llm config for parallel tool calling [LET-5610] (#5542)
* Add parallel tool calling field

* Thread through parallel tool use

* Fern autogen

* Fix send message v2
2025-10-24 15:12:11 -07:00
Kian Jones
4bbd760204 feat: add validation to fastapi routes for agent IDs (#5454)
* change my PR to match Caren's

* add path parameter validation for agent id first

* remove old import

* remove old agent_id_pattern pattern

* add example and fix max/min calculation to include hyphen

* fix regex string interpolation

* example deprecated in favour of examples

* openapi autogen

* change template test to expect 422

* fix 422 swallow

* expect 422 or 400

* rewrite  error codes

* fix hallucinated uuid

* tweaked error message test

* print docker logs on failure
2025-10-24 15:12:11 -07:00
Matthew Zhou
2dae4d33c3 feat: Implement streaming chat completions endpoint [LET-5485] (#5446)
* wip

* Add chat completions router and fix streaming service

* Finish chat completions

* Finish chat completions

* Remove extra print statement

* Run just api

* Don't explicitly throw http exceptions but surface Letta errors

* Remap errors

* Trigger CI

* Add missing Optional import
2025-10-24 15:12:11 -07:00
Cameron Pfiffer
4a86bf6e4c docs: Improve examples page (#5442)
* Fix VoiceAgent to use run_manager instead of job_manager

VoiceAgent.__init__() was incorrectly using job_manager parameter
when ToolExecutionManager expects run_manager. This was causing
the error: "VoiceAgent.__init__() got an unexpected keyword
argument 'run_manager'".

Changes:
- Update VoiceAgent to accept and use run_manager instead of job_manager
- Update VoiceSleeptimeAgent to accept run_manager parameter
- Update imports to use RunManager instead of JobManager
- Pass run_manager to ToolExecutionManager in VoiceAgent._execute_tool

* docs: Add new examples to documentation

- Introduced "Your First Agent" example to guide users in creating a Letta agent and understanding its memory capabilities.
- Added "Attaching and Detaching Memory Blocks" example to demonstrate dynamic memory management for agents.
- Updated navigation in docs.yml to include links to the new examples.

These additions enhance the learning resources available for users working with Letta agents.
2025-10-24 15:12:11 -07:00
Cameron Pfiffer
936be41e8d Rename POSTHOG_API_KEY to POSTHOG_KEY (#5428)
Update environment variable name from POSTHOG_API_KEY to POSTHOG_KEY in GitHub workflow and Fern docs configuration.
2025-10-24 15:12:11 -07:00
cthomas
8dc4db0e07 feat: update hitl docs with new snippets (#5416) 2025-10-24 15:12:09 -07:00
Cameron Pfiffer
ec8d5ccec1 Add PostHog analytics to Fern docs (#5394) 2025-10-24 15:11:31 -07:00
Kian Jones
9837b14ecd fix: agent create with tags and actually delete the agent in probe (#5392)
* fix: agent create with tags and actually delete the agent

* add reponse schema to docs?

* bug fix: await async client call

* override delete routes to show response object
2025-10-24 15:11:31 -07:00
Matthew Zhou
b6f2dc63e5 chore: Deprecate voice-beta endpoint [LET-5483] (#5410)
Deprecate voice-beta endpoint
2025-10-24 15:11:31 -07:00
Shubham Naik
248c7c0b44 Chore remove deprecated routes (#5371)
* chore: remove deprecated routes

* chore: remove deprecated routes

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-10-24 15:11:31 -07:00
Shubham Naik
5af0c1535f feat: fix display name stuff (#5329)
* feat: fix display name stuff

* chore: fix types

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-10-24 15:11:31 -07:00
Shubham Naik
6a28f3852a Shub/let 4974 rename current to dev [LET-4974] (#5297)
* fix: rename current to dev

* chore: rename current to dev

* chore: next

* chore: rename fix

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-10-24 15:11:31 -07:00
cthomas
651c55dc2a feat: add approvals support in agentfile (#5337) 2025-10-24 15:11:31 -07:00
cthomas
f79a47dbc1 feat: amend union type for message object (#5326) 2025-10-24 15:11:31 -07:00
cthomas
6fd6232992 feat: add discriminator type to message return objects (#5318) 2025-10-24 15:11:31 -07:00
cthomas
31772b1fa1 chore: api sync (#5311) 2025-10-24 15:11:31 -07:00
cthomas
8e54f40bde feat: add new ApprovalReturn list in api layer (#5304)
* feat: add new ApprovalReturn list in api layer

* use base class

* api sync
2025-10-24 15:11:31 -07:00