Commit Graph

269 Commits

Author SHA1 Message Date
Christina Tong
ef3df907c5 feat: add last_stop_reason to AgentState [LET-5911] (#5772)
* feat: add last_stop_reason to AgentState [LET-5911]

* undo agent loop changes, use update_run_by_id_async

* add run manager test

* add integration tests

* remove comment

* remove duplicate test
2025-11-13 15:36:55 -08:00
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
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
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
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
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
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
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
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
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
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
5e43291436 feat: remove relationship fields on identities (#5691) 2025-10-24 15:14:09 -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
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
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
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