Commit Graph

916 Commits

Author SHA1 Message Date
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
Matthew Zhou
83721679c6 test: Add test for archival tag compilation into system prompt [LET-4114] (#4312)
Add tests and thread created_at
2025-08-29 13:35:19 -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
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
cthomas
7a2ccbd357 feat: add new modify approvals api (#4288)
* feat: add new modify approvals api

* remove path params override
2025-08-28 16:45:07 -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
a8ffae6f8d feat: fix agentfile in clooud [PRO-1013] (#4271)
* feat: fix agentfile in clooud

* chore; fix lint

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-08-28 09:16:46 -07:00
cthomas
27458ffad5 feat: move deepseek to new agent loop [LET-4081] (#4266)
* feat: move deepseek to new agent loop

* fixes
2025-08-27 16:50:34 -07:00
Sarah Wooders
2b23ec7dff feat: support overriding embedding handle [LET-4021] (#4224) 2025-08-27 14:54:17 -07:00
cthomas
84e493111b feat: asyncify groups operations [LET-4068] (#4254)
feat: asyncify groups operations
2025-08-27 12:00:53 -07:00
cthomas
f7c07f65ef feat: dont swallow application errors in streaming response [LET-4069] (#4253)
* feat: dont swallow application errors in streaming response

* change error back to exception
2025-08-27 11:59:43 -07:00
Matthew Zhou
c3855d7c16 chore: Default to agent file v2 [LET-4063] (#4245)
Default to v2
2025-08-27 10:32:29 -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
4b6e52b0e5 feat: make provider trace fetch result nullable [PRO-1063] (#4222)
feat: make provider trace fetch result nullable
2025-08-26 15:57:02 -07:00
cthomas
c0c43c1b00 feat: pipe env vars through agent file v2 [LET-4054] (#4217)
feat: pipe env vars through agent file v2
2025-08-26 14:54:06 -07:00
cthomas
e0c79002d9 feat: change env vars to json string [PRO-1061] (#4216)
feat: change env vars to json string
2025-08-26 14:53:27 -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
cthomas
feaf15dc6a feat: add pagination to list runs endpoint (#4204) 2025-08-26 13:26:12 -07:00
cthomas
5bb13d9baa feat: add background filter to list runs endpoint (#4196) 2025-08-26 10:52:36 -07:00
Matthew Zhou
f25844fbe2 fix: Add check status update flag to list (#4177) 2025-08-25 16:21:33 -07:00
cthomas
e63dedab7a feat: add retrieve stream testing (#4168) 2025-08-25 16:13:59 -07:00
cthomas
6ca388557f feat: add new client.runs.stream endpoint (#4165) 2025-08-25 13:42:22 -07:00
cthomas
59dc8f7881 feat: set 3hr ttl for streaming background jobs (#4167) 2025-08-25 13:39:06 -07:00
cthomas
7eeba12ef5 feat: populate run id in streaming response (#4161) 2025-08-25 11:55:41 -07:00
cthomas
9ea2ce2aa8 feat: populate seq_id in chunks for background mode (#4160) 2025-08-25 11:51:41 -07:00
cthomas
c63708e087 feat: add error chunk handling for background mode (#4158) 2025-08-25 11:12:16 -07:00
cthomas
d4a9da64fb feat: support background mode for step streaming (#4156) 2025-08-25 10:56:04 -07:00
cthomas
03cf5f43ea feat: add background flag to streaming api (#4148) 2025-08-24 20:45:35 -07:00
Matthew Zhou
7f81ac0661 fix: Add asyncio import (#4147) 2025-08-24 17:15:41 -07:00
Matthew Zhou
f918ca0a59 feat: Add better error catching for files upload (#4145) 2025-08-24 16:46:57 -07:00
jnjpng
feb232f04a fix: mcp schema generation and non-strict schema validation
Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local>
2025-08-22 15:45:33 -07:00
cthomas
b230b5faf5 feat: catch asyncio cancellations from app in stream response (#4112) 2025-08-22 15:42:14 -07:00
Sarah Wooders
53920b08b1 fix: use default embedding (#4041)
Co-authored-by: Matthew Zhou <mattzh1314@gmail.com>
2025-08-21 21:36:10 -07:00
Matthew Zhou
b3704e47be feat: Support override tool functionality to agent file v2 (#4092) 2025-08-21 16:58:19 -07:00
Matthew Zhou
7ed6d1dbaa feat: Add endpoint to list files attached to an agent (#4082) 2025-08-21 13:57:39 -07:00
Charles Packer
86f7e2036d fix: patch support for custom headers + auth in MCP connects (was getting a weird silent error)
Co-authored-by: jnjpng <jin@letta.com>
Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local>
2025-08-21 13:42:19 -07:00
cthomas
be3e562087 feat: add new groq llm client LET-3943 (#3937)
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
2025-08-21 13:13:25 -07:00
Matthew Zhou
8095d87df3 feat: Add tests for renaming files (#4066) 2025-08-20 16:23:03 -07:00
cthomas
d0ddc5545c feat: add new xai llm client (#3936) 2025-08-20 15:49:09 -07:00
Caren Thomas
26d2de0e64 Merge branch 'main' into bump-11-4 2025-08-20 14:18:58 -07:00
Matthew Zhou
dc8c6d8246 feat: Allow renaming files on upload (#4061) 2025-08-20 13:59:05 -07:00
Matthew Zhou
dc6145f6f2 feat: Add refresh functionality for files (#4053) 2025-08-20 13:17:59 -07:00
cthomas
5ecebe694a feat: add resource closed errors throughout stream (#4021) 2025-08-19 16:02:04 -07:00
cthomas
761a5ca677 feat: only stream last chunk if client is connected (#4015) 2025-08-19 14:46:30 -07:00
cthomas
ee9e1eb1c9 feat: catch closed resource error in stream processing (#4003) 2025-08-19 12:11:00 -07:00
cthomas
d53578f721 feat: introduce asyncio shield to stream response (#3992) 2025-08-18 17:11:19 -07:00