Commit Graph

6614 Commits

Author SHA1 Message Date
Sarah Wooders
3569721fd4 fix: avoid infinite summarization loops (#6506) 2025-12-15 12:02:33 -08:00
Kian Jones
a38475f23d fix: safely load span attributes for provider traces (#6508)
json.dumps on request data. Also remove step and actor since they are already present in the span
2025-12-15 12:02:33 -08:00
Sarah Wooders
9cbb8fa42a feat: add .skills/db-migrations-schema-changes (#6476) 2025-12-15 12:02:33 -08:00
jnjpng
cf30e8f910 chore: add stack info to migration warning log (#6500)
base

Co-authored-by: Letta Bot <noreply@letta.com>
2025-12-15 12:02:33 -08:00
jnjpng
89ca8fe8b0 feat: read from encrypted values with error on fallback [LET-4250] (#6484)
* base

* warning

---------

Co-authored-by: Letta Bot <noreply@letta.com>
2025-12-15 12:02:33 -08:00
Kian Jones
647e271c2a fix: add more logging for stream error (#6490)
* trying tout gpt-5.1-codex

* add unit test for message content

* try to support multimodal

* remove ValueError and add logging on stream error

* prevent stream termination from api spec implementation errors

* fix: remove final_response references from non-Responses API interfaces

* fix: add diagnostic attributes to SimpleOpenAIResponsesStreamingInterface

* fix: remove final_response from SimpleOpenAIStreamingInterface (Chat Completions API)
2025-12-15 12:02:33 -08:00
Kian Jones
5165d60881 feat: add a new span and log the provider request and response data objects (#6492)
add a new span and log the provider request and response data objects
2025-12-15 12:02:33 -08:00
Kian Jones
d6292b6eb6 fix: bug which causes unrecoverable state if previous message was an image (#6486)
* trying tout gpt-5.1-codex

* add unit test for message content

* try to support multimodal
2025-12-15 12:02:33 -08:00
cthomas
5109ba1384 feat: add source param to logging (#6473)
* feat: add source param to logging

* api sync
2025-12-15 12:02:32 -08:00
Kian Jones
964fc05cb9 chore: add more tracing to tool upsert endpoint (#6471)
* add tracing

* fix hallucination
2025-12-15 12:02:19 -08:00
jnjpng
c90eacdcbb fix: step metrics not found (#6472)
* base

* comment

---------

Co-authored-by: Letta Bot <noreply@letta.com>
2025-12-15 12:02:19 -08:00
Sarah Wooders
90e2030f41 fix: fix manual summarization (#6466) 2025-12-15 12:02:19 -08:00
Sarah Wooders
bd97b23025 feat: fallback to all mode for summarizer if error (#6465) 2025-12-15 12:02:19 -08:00
Sarah Wooders
7fa141273d fix: dont run summarizer if pending approval (#6464) 2025-12-15 12:02:19 -08:00
Sarah Wooders
91e3dd8b3e feat: fix new summarizer code and add more tests (#6461) 2025-12-15 12:02:19 -08:00
Sarah Wooders
86023db9b1 feat: get rid of client injection in args and just make it always available (#6459) 2025-12-15 12:02:19 -08:00
Sarah Wooders
f417e53638 fix: fix cancellation issues without making too many changes to message_ids persistence (#6442) 2025-12-15 12:02:19 -08:00
Charles Packer
1f7165afc4 fix: patch counting of tokens for anthropic (#6458)
* fix: patch counting of tokens for anthropic

* fix: patch ui to be simpler

* fix: patch undercounting bug in anthropic when caching is on
2025-12-15 12:02:19 -08:00
Sarah Wooders
c0b422c4c6 fix: patch summarizer and add tests (#6457) 2025-12-15 12:02:19 -08:00
Charles Packer
e67c98eedb feat: add tests for prompt caching + fix anthropic prompt caching [LET-6373] (#6454)
* feat: add tests for prompt caching

* fix: add cache control breakpoints for anthropic + fix tests

* fix: silence logging

* fix: patch token counting error

* fix: same patch on non-streaming path
2025-12-15 12:02:19 -08:00
Sarah Wooders
e862bae524 feat: patch tool calling endpoint and add SDK testing (#6456) 2025-12-15 12:02:19 -08:00
Sarah Wooders
ceadacd30e feat: support programmatic tool execution (cloud only) (#6441) 2025-12-15 12:02:19 -08:00
Sarah Wooders
1939a9d185 feat: patch summarizer without changes to AgentState (#6450) 2025-12-15 12:02:19 -08:00
Charles Packer
4af6465226 feat(core+web): store raw usage data on streams (and visualize properly in ADE) (#6452)
* feat(core): store raw usage data on streams

* fix(web): various fixes to deal w/ hardcoding against openai
2025-12-15 12:02:19 -08:00
Charles Packer
88a3743cc8 fix(core): distinguish between null and 0 for prompt caching (#6451)
* fix(core): distinguish between null and 0 for prompt caching

* fix: runtime errors

* fix: just publish just sgate
2025-12-15 12:02:19 -08:00
Charles Packer
131891e05f feat: add tracking of advanced usage data (eg caching) [LET-6372] (#6449)
* feat: init refactor

* feat: add helper code

* fix: missing file + test

* fix: just state/publish api
2025-12-15 12:02:19 -08:00
Sarah Wooders
807c5c18d9 feat: add gemini token counting [LET-6371] (#6444) 2025-12-15 12:02:19 -08:00
Charles Packer
d3f5307789 fix(core): patch bug in memory tool with leading '/' [LET-6266] (#6448)
fix(core): patch bug in memory tool with leading '/'
2025-12-15 12:02:19 -08:00
Charles Packer
efb5a87313 fix(core): remove threshold multiplier on summ trigger which is bug prone (#6447) 2025-12-15 12:02:19 -08:00
Charles Packer
e142d440d5 fix: patch gemini token counting (#6445)
fix: use usage_metadata.candidates_token_count for counting total tokens
2025-12-15 12:02:18 -08:00
jnjpng
c6df306ccf fix: upgrade google-genai sdk version and fix gemini 3 streaming (#6437)
* base

* base

---------

Co-authored-by: Letta Bot <noreply@letta.com>
2025-12-15 12:02:18 -08:00
Sarah Wooders
c4d5c380d6 feat: pass in LETTA_TOOL_ID, LETTA_AGENT_ID, LETTA_PROJECT_ID into tool env (#6439) 2025-12-15 12:02:18 -08:00
Sarah Wooders
0a0cf391fc fix: fix client injection code (#6421) 2025-12-15 12:02:18 -08:00
Ari Webb
4d5be22d14 fix: utc for message/passage search tpuf [LET-6109] (#6429)
fix: utc for message/passage search tpuf

Co-authored-by: Ari Webb <ari@letta.com>
2025-12-15 12:02:18 -08:00
Shubham Naik
aa96aacde1 chore: update endpoints [LET-6311] (#6428)
chore: update endpoints

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-12-15 12:02:18 -08:00
Ari Webb
92bad11453 fix: remove project_id from identities list [LET-6258] (#6413)
* fix: remove project_id from identities list

* fix frontend

* revert and add support for headers

* just stage + publish api

* don't use headers yet as that breaks tests

---------

Co-authored-by: Ari Webb <ari@letta.com>
2025-12-15 12:02:18 -08:00
Sooty
d8b3bb86ef fix: Implement architecture-specific OTEL installation logic (#3061) 2025-11-28 16:17:01 -08:00
Denis Kuznedelev
aa7059746f Updated readme with actual argument (#3083)
Co-authored-by: Godofnothing <score.denis@mail.ru>
2025-11-27 00:56:48 -08:00
cthomas
0893bbf2ae chore: bump version 0.15.1 (#3082) 2025-11-26 14:45:39 -08:00
Caren Thomas
cda2f1b573 drop docs and bump version 2025-11-26 14:40:49 -08:00
Shubham Naik
09bf146140 feat: add delete/create template endpoint [LET-6309] (#6416)
* feat: add delete/create template endpoint

* chore: update sdk

* chore: update sdk

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-11-26 14:39:40 -08:00
cthomas
29349530d4 test: add sleep before agent deletion in test (#6412)
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
2025-11-26 14:39:40 -08:00
Ari Webb
d4e7428c98 feat: structured outputs for anthropic [LET-6232] (#6410)
feat: structured outputs for anthropic

Co-authored-by: Ari Webb <ari@letta.com>
2025-11-26 14:39:40 -08:00
Shubham Naik
2ee1ff50dd Shub/let 6339 add endpoint for counting non hidden agents [LET-6339] (#6406)
* feat: add hidden agent count

* feat: add hidden agent count

* chore; hiddne agents

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-11-26 14:39:40 -08:00
Christina Tong
96ed4791ea chore: add agent id filter to ADE agents [LET-6278] (#6339)
* chore: filter agents by agent id [LET-6277]

* chore: add agent id filter to ADE agents [LET-6278]

* update autogen files

* update to fe implementation

* update

* translations

* add autogenerated files
2025-11-26 14:39:40 -08:00
Sarah Wooders
30ff204f85 feat: use default embedding for archives [LET-6186] (#6409)
feat: use default embedding for archives
2025-11-26 14:39:40 -08:00
Sarah Wooders
0fc86c4968 feat: run tool by for a given agent [LET-6320] (#6386) 2025-11-26 14:39:40 -08:00
cthomas
3a0bbe5495 feat: relax send message constraints for image test (#6408) 2025-11-26 14:39:40 -08:00
cthomas
776564fc8a fix: add null check for llm config update [LET-6340] (#6407)
fix: add null check for llm config update
2025-11-26 14:39:40 -08:00
cthomas
6b64842c48 fix: agent import json decode error [LET-6338] (#6405)
fix: agent import json decode error
2025-11-26 14:39:40 -08:00