Commit Graph

45 Commits

Author SHA1 Message Date
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
f8935282e1 fix: Fix a bunch of failing tests [LET-4065] (#4249)
* Finish fixing async loop for test_agent_serialization_v2

* Fix tests

* Remove rounding for sqlite

---------

Co-authored-by: Shubham Naik <shub@letta.com>
2025-08-27 12:48:03 -07:00
Andy Li
76679e3ecc feat: track metrics for runs in db 2025-08-06 15:46:50 -07:00
Sarah Wooders
6c08adf97e test: run tests with gemini 2.5 instead (#3548)
Co-authored-by: Kian Jones <11655409+kianjones9@users.noreply.github.com>
Co-authored-by: Kian Jones <kian@letta.com>
Co-authored-by: Matt Zhou <mattzh1314@gmail.com>
2025-07-29 14:50:28 -07:00
cthomas
86dd21efa3 feat: use no refresh flag in job creation (#3434) 2025-07-20 14:29:19 -07:00
cthomas
bb1a51a0a3 feat: use no refresh in job update (#3421) 2025-07-19 21:33:08 -07:00
Andy Li
905a9dd4bb chore: cleanup database detection 2025-07-18 17:12:56 -07:00
cthomas
a6d58afd86 fix: reduce number of db connections for job status update (#3398) 2025-07-18 14:20:36 -07:00
Kian Jones
f4659c9e01 feat(sqlite): CI Tests for Alembic and SQLite (#3358)
Co-authored-by: Matt Zhou <mattzh1314@gmail.com>
2025-07-17 18:04:13 -07:00
Matthew Zhou
f76cfa7e8d fix: Move callback execution out of the async session (#3360) 2025-07-16 15:43:32 -07:00
cthomas
208d6fefa9 feat: make dispatch callback maintain own db connection (#3279) 2025-07-10 15:43:39 -07:00
cthomas
64058c407d fix: sync import in dispatch callback (#3275) 2025-07-10 15:03:01 -07:00
Matthew Zhou
9605d1f79c feat: Add pinecone for cloud embedding (#3160) 2025-07-03 22:37:55 -07:00
Andy Li
f9bb757a98 feat: support for agent loop job cancelation (#2837) 2025-07-02 14:31:16 -07:00
Matthew Zhou
c275221d59 fix: Tweak output length on web search (#3113) 2025-06-30 16:05:46 -07:00
Matthew Zhou
2ba1e59e2f feat: Add logging/tracing for callback dispatching (#3109) 2025-06-30 14:25:02 -07:00
cthomas
d921854a3f chore: consolidate enum definitions (#2919) 2025-06-19 16:04:12 -07:00
cthomas
a332b34830 feat: make create_async route consistent with other message routes (#2877) 2025-06-19 13:51:51 -07:00
Matthew Zhou
26089bee58 feat: Add callback_error and fix callback logic (#2842) 2025-06-16 13:23:03 -07:00
Matthew Zhou
5273de88d1 feat: Asyncify message async routes and also add callback url (#2838) 2025-06-16 11:23:46 -07:00
Andy Li
80f6e97ca9 feat: otel metrics and expanded collecting (#2647)
(passed tests in last run)
2025-06-05 17:20:14 -07:00
Andy Li
08c1fb5a60 feat: job listing takes source id (#2473) 2025-05-27 15:34:27 -07:00
cthomas
c071e079dc feat(asyncify): migrate jobs (#2420) 2025-05-25 18:58:06 -07:00
cthomas
279aab28e9 feat: add db tracing to otel (#2337) 2025-05-22 13:47:49 -07:00
cthomas
8ddec60d07 feat(asyncify): migrate get active jobs (#2227) 2025-05-16 15:18:06 -07:00
cthomas
5462216cef fix: unset timezone for async db (#2220) 2025-05-16 13:11:15 -07:00
cthomas
12cf419e2d feat: convert more methods to async (#2200) 2025-05-15 13:44:58 -07:00
cthomas
65e32082f7 feat: convert many methods to async (#2193) 2025-05-15 12:09:40 -07:00
Andy Li
8e2417aa2f feat: async db client (#2076) 2025-05-12 17:15:14 -07:00
Matthew Zhou
15fefe0e1a feat: Add callback for jobs (#1776)
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
2025-04-18 10:48:04 -07:00
Sarah Wooders
41d85c4114 feat: add batch job tracking and generate batch APIs (#1727)
Co-authored-by: Matt Zhou <mattzh1314@gmail.com>
2025-04-17 17:02:07 -07:00
cthomas
683864a9d4 feat: add route to get steps for job (#1174) 2025-03-02 17:43:18 -08:00
Matthew Zhou
6d49dc1ac5 feat: Serialize agent state simple fields and messages (#1012) 2025-02-18 11:01:10 -08:00
Matthew Zhou
8d765f286e feat: Composio tools execute on-the-fly (#999) 2025-02-13 16:13:29 -08:00
cthomas
5a71a2c346 chore: remove nested config in send requests (#813) 2025-01-28 14:58:53 -08:00
cthomas
5316127be3 fix: drop tool_return_message when using assistant_message (#784) 2025-01-28 14:31:51 -08:00
cthomas
a5d7f66f59 feat: add support for use_assistant_message in list_messages (#804) 2025-01-28 13:39:53 -08:00
mlong93
819e360356 fix: deprecate cursor param and replace with before, after (#736)
Co-authored-by: Mindy Long <mindy@letta.com>
2025-01-23 14:17:25 -08:00
cthomas
443b876e74 fix: remove manual step logging (#738) 2025-01-22 21:07:23 -08:00
cthomas
98c5702ef9 chore: rename metadata_ field to metadata in pydantic (#732) 2025-01-22 19:05:41 -08:00
cthomas
551cc0820c feat: add schema/db for new steps table (#669) 2025-01-18 12:20:10 -08:00
mlong93
e4700fdfe1 fix: updated send_message_async request params, get_run_messages returns LettaMessage (#638)
Co-authored-by: Mindy Long <mindy@letta.com>
Co-authored-by: cthomas <caren@letta.com>
Co-authored-by: Shubham Naik <shubham.naik10@gmail.com>
Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-01-15 14:47:20 -08:00
mlong93
113e8bda07 fix: prevent adding duplicate messages to JobMessages table (#625)
Co-authored-by: Mindy Long <mindy@letta.com>
2025-01-13 14:48:20 -08:00
mlong93
18f06cd681 feat: new routes to gather a job's messages and usage statistics (#564)
Co-authored-by: Mindy Long <mindy@letta.com>
2025-01-12 12:36:10 -08:00
Matthew Zhou
f638c42b56 chore: Migrate jobs to the orm (#2165) 2024-12-04 18:11:06 -08:00