Commit Graph

598 Commits

Author SHA1 Message Date
Caren Thomas
0a58326daf feat: handle google errors in our stack correctly 2025-09-12 10:58:06 -07:00
cthomas
694be7b136 feat: support filtering out approval messages for gemini (#2833) 2025-09-11 00:26:24 -07:00
jnjpng
2aae4bf0db feat: add resync tool endpoint (#2812)
Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local>
2025-09-09 18:11:02 -07:00
Kian Jones
4e4ae856e7 merge resolution bug and linting 2025-09-09 09:40:17 -07:00
Kian Jones
0c5f5dadb8 ruff check 2025-09-09 09:35:10 -07:00
Kian Jones
60c9e3efad Merge branch 'main' into release-0.11.8-3 2025-09-09 09:23:31 -07:00
Matthew Zhou
20881b3383 feat: Surface vector db in source object [LET-4257] (#4479)
* Surface vector db

* Change default

* Fern autogen

* Fix sqlite test managers
2025-09-08 18:08:55 -07:00
Matthew Zhou
8b9a5e3ddb feat: Add vector db type column to source [LET-4203] (#4469)
* Add vector db type column to source

* Add comments
2025-09-08 15:09:29 -07:00
Matthew Zhou
531eb6afeb feat: Add project_id to message filtering/inserting to Turbopuffer [LET-4252] (#4466)
* Add project_id

* Fern autogen
2025-09-08 14:35:15 -07:00
cthomas
0360ceeecc feat: add step checkpointing for progress tracking (#4458)
* feat: add step checkpointing for progress tracking

* openapi sync
2025-09-08 10:30:44 -07:00
Sarah Wooders
ffe56a4916 fix: revert regression in OllamaProvider (#2775) 2025-09-05 17:52:23 -07:00
Matthew Zhou
fb0e2d91a2 feat: Write tests for search messages [LET-4212] (#4447)
* Adjust naming

* Add testing and improve message search

* Adjust comments

* Change query text to query

* Fern autogen
2025-09-05 17:52:13 -07:00
cthomas
6029c80446 fix: approval request for streaming (#4445)
* fix: approval request for streaming

* fix: claude code attempt, unit test passing (add on to #4445) (#4448)

* fix: claude code attempt, unit test passing

* chore: update locks to 0.1.314 from 0.1.312

* chore: just stage-api && just publish-api

* chore: drop dead poetry lock

---------

Co-authored-by: Charles Packer <packercharles@gmail.com>
2025-09-05 17:43:21 -07:00
Matthew Zhou
2e3cabc080 feat: Add search messages endpoint [LET-4144] (#4434)
* Add search messages endpoint

* Run fern autogen and fix tests
2025-09-05 14:28:27 -07:00
cthomas
ab8b19df1c feat: make include pings default to true (#4438) 2025-09-05 12:14:28 -07:00
Shubham Naik
56e2800892 feat: add hidden property to group and blocks [PRO-1145] (#4415)
* feat: add hidden property to group and blocks

* feat: add hidden property to group and blocks

* chore: bup

* chore: add hidden property

* chore: next

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-09-04 10:53:16 -07:00
Sarah Wooders
22c17688ec chore: merge main 2025-09-03 21:30:05 -07:00
Matthew Zhou
6dccc1961b feat: Add archival search endpoint [LET-4184] (#4390)
* Add archival search endpoint

* Run fern autogen

* Add de-dupe logic
2025-09-03 10:55:20 -07:00
Charles Packer
77cab00cb8 fix: try and patch the PATCH/update issue with MCP server URL [LET-3933]
* fix: patch update path

* autogenerate

* update

* update

---------

Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local>
Co-authored-by: Letta Bot <noreply@letta.com>
Co-authored-by: jnjpng <jin@letta.com>
2025-09-03 09:42:57 -07:00
Charles Packer
e40c0512c2 fix: patch streaming hidden reasoning event [LET-4167] (#4367)
* fix: patch streaming hidden reasoning event

* fix: patch reasoning_effort not getting passed to openai
2025-09-02 16:21:18 -07:00
Matthew Zhou
7d9d8b0d50 feat: Extract more text from messages [LET-4154] (#4359)
* Extract more message types

* Add extra tests testing for multiple parts
2025-09-02 13:25:32 -07:00
Charles Packer
7a74778394 fix: change the default reasoning effort for gpt-5 to be minimal, due to extremely high latency on medium (#4356)
fix: change the default reasoning effort for gpt-5 to be minimal, due to extremely high latency on it
2025-09-02 13:23:13 -07:00
Charles Packer
3296471d09 fix: various fixes to make gpt-5 work better [LET-4138] (#4344)
* fix: patch gpt-5 compat

* feat: add verbosity level dropdown selector to llm config panel in ade

* fix: patch duplicated logic

* fix: make default verbosity None, just stage just publish

* fix: missing files
2025-09-02 10:30:25 -07:00
cthomas
5ca9b5e774 feat: support filtering out approval messages for anthropic api (#4342) 2025-09-01 21:39:50 -07:00
cthomas
3f87fc34f2 feat: handle message persistence for approvals flows (#4338) 2025-09-01 14:10:02 -07:00
cthomas
7c88470705 feat: support filtering out messages when converting to openai dict (#4337)
* feat: support filtering out messages when converting to openai dict

* fix imports
2025-09-01 12:48:45 -07:00
cthomas
671f561c77 feat: support approve tool call request (#4333) 2025-08-31 11:26:21 -07:00
Charles Packer
aecb6e32d7 fix(core): update default value [LET-4117] (#4321)
* fix(core): update default value

* fix: just stage just publish

* fix(core): temporary hardcoding of the anthropic max tokens

* fix(core): patch the gemini
2025-08-29 16:42:19 -07:00
cthomas
cc376b32ed feat: add support for approval request creation (#4313) 2025-08-29 15:23:02 -07:00
cthomas
697be58b78 feat: make new message create type field optional [LET-4116] (#4319)
feat: make new message create type field optional
2025-08-29 15:22:34 -07:00
cthomas
b95c60b106 feat: add new approval message types to letta message union [LET-4113] (#4311)
feat: add new approval message types to letta message union
2025-08-29 13:32:31 -07:00
cthomas
bfdb586f74 feat: add approval create input to messages endpoints [LET-4110] (#4309)
* feat: add approval create input to messages endpoints

* rename discriminator tag

* add base class with default

* add field validator

* exclude new type field from agent file schema
2025-08-29 13:16:03 -07:00
cthomas
7c51a4f084 refactor: port letta message conversion into helpers (#4302)
* refator: port letta message conversion into helpers

* fix naming

* use extend not append

* add otid handling
2025-08-29 13:02:46 -07:00
cthomas
04767aa4fe feat: remove stream_steps reference from api docs [LET-4109] (#4308)
feat: remove stream_steps reference from api docs
2025-08-29 11:20:32 -07:00
Kian Jones
ca6cfa5914 chore: migrate to ruff (#4305)
* base requirements

* autofix

* Configure ruff for Python linting and formatting

- Set up minimal ruff configuration with basic checks (E, W, F, I)
- Add temporary ignores for common issues during migration
- Configure pre-commit hooks to use ruff with pass_filenames
- This enables gradual migration from black to ruff

* Delete sdj

* autofixed only

* migrate lint action

* more autofixed

* more fixes

* change precommit

* try changing the hook

* try this stuff
2025-08-29 11:11:19 -07:00
Matthew Zhou
016feda83a feat: Support arbitrary string tagging filtering [LET-3467] (#4285)
* Finish tagging

* Add comprehensive tags functionality

* Add fern autogen

* Create passage tags table

* Add indices

* Add comments explaining dual storage

* Fix alembic heads

* Fix alembic

---------

Co-authored-by: Kian Jones <11655409+kianjones9@users.noreply.github.com>
2025-08-28 16:57:36 -07:00
cthomas
e0be1e028c feat: add new approval request message objects (#4291) 2025-08-28 16:44:48 -07:00
cthomas
b0cf7f0e93 feat: add new default_requires_approval flag on tools (#4287) 2025-08-28 15:38:59 -07:00
cthomas
9e43b8e015 feat: add new require approvals tool rule (#4280)
* feat: add new require approvals tool rule

* add fe changes

* openapi sync 2
2025-08-28 13:34:00 -07:00
Matthew Zhou
cf3423a21a feat: De-dupe tool rules [LET-4091] (#4282)
* Add hash/eqs for de-dupe

* Add sdk test
2025-08-28 12:43:32 -07:00
Sarah Wooders
b4fc7012cc chore: patch update tools (#4090)
* patch update tools

* update tool patch

* fallback to generation for legacy tools

* avoid re-parsing source if json schema exists

* fix more tests

* remove asssert

* fix

* update

* update

* update

* Fix tests

---------

Co-authored-by: Matt Zhou <mattzh1314@gmail.com>
2025-08-28 11:34:36 -07:00
Matthew Zhou
651671cb83 feat: Support basic upload/querying on tpuf [LET-3465] (#4255)
* wip implementing turbopuffer

* Move imports up

* Add type of archive

* Integrate turbopuffer functionality

* Debug turbopuffer tests failing

* Fix turbopuffer

* Run fern

* Fix multiple heads
2025-08-28 10:39:16 -07:00
Shubham Naik
1b03282a79 fix: model not displaying properly [PRO-1072] (#4267)
* chore: fix model display

* chore: new ts

* chore: fix model rendering

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-08-28 07:58:52 -07:00
cthomas
b316c61221 feat: add invalid_llm_response stop reason [LET-4083] (#4269)
* feat: add invalid_llm_response stop reason

* add sqllite support

* simply skip for sqllite

* fix imports

* fix isort
2025-08-27 17:07:47 -07:00
cthomas
b4e5018841 fix: hugging face embedding test [LET-4064] (#4246)
* fix: hugging face embedding test

* openapi sync
2025-08-27 11:58:03 -07:00
Sarah Wooders
38c251b01b feat: add cloud template fields to blocks/groups/agents [LET-3979]
* commit

* fix tests

* add routes

* remove old fields

* remove entity from group

* generate, migrate

* update

* keep from_template, etc.

* keep block fields

* final

* generate

* pass tests

* generate

* keep defaults

---------

Co-authored-by: jin <jin@letta.com>
2025-08-26 23:17:06 -07:00
Sarah Wooders
b30d39f189 merge 2025-08-26 21:41:30 -07:00
Andy Li
acfdab2ced feat: uv migration (#3493)
* uv migration

smaller runners, freeze test runs, remove dev, ruff,hatchling, previw,
poetry, generates wheel, installs wheel, docker

* fix tests and dependency groups

* test fixes

* test fixing and main

* resolve merge conflict

* dev + test dependency group

* Test

* trigger CI

* trigger CI

* add debugging info

* trigger CI

* uv for reusable and sdk preview

* resolve mc and reformat black

* staged-api

* mypy

* fix fern

* prod Dockerfile

* model sweep, and project.toml and uvlock

* --group test -> --extra dev

* remove redundant --extra dev and rename tests to dev

* sdk backwards compat install sqlite

* install sqlite group for sdk-backwards-compat

* install uv on gh runner for cloud-api-integration-tests

* stage+publish

* pytest asyncio

* bug causing pytest package to get removed

* try to fix async event loop issues

* migrate to --with google-cloud-secret-manager

---------

Co-authored-by: Kian Jones <kian@letta.com>
2025-08-26 18:11:09 -07:00
Caren Thomas
83bf6bd543 Merge branch 'main' into bump-11-5 2025-08-26 16:18:00 -07:00
cthomas
cae23cbdd5 feat: add error handling for background mode fetch [LET-4052] (#4210)
* feat: add error handling for background mode fetch

* improve redis error message

* fix typeerror

---------

Co-authored-by: Shubham Naik <shub@letta.com>
2025-08-26 14:33:29 -07:00