Skip to content

Commit 54aa7b4

Browse files
authored
chore: fix summarization and open router bug (#3028)
2 parents d4bdb82 + 1edb21a commit 54aa7b4

File tree

9 files changed

+819
-48
lines changed

9 files changed

+819
-48
lines changed

fern/openapi.json

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17232,6 +17232,46 @@
1723217232
],
1723317233
"nullable": true
1723417234
},
17235+
"value_enc": {
17236+
"oneOf": [
17237+
{
17238+
"type": "string"
17239+
},
17240+
{
17241+
"type": "string",
17242+
"format": "null",
17243+
"nullable": true
17244+
},
17245+
{
17246+
"type": "string",
17247+
"format": "null",
17248+
"nullable": true
17249+
},
17250+
{
17251+
"type": "array",
17252+
"items": {
17253+
"oneOf": [
17254+
{
17255+
"type": "string"
17256+
},
17257+
{
17258+
"type": "string",
17259+
"format": "null",
17260+
"nullable": true
17261+
},
17262+
{
17263+
"type": "string",
17264+
"format": "null",
17265+
"nullable": true
17266+
}
17267+
],
17268+
"nullable": true
17269+
}
17270+
},
17271+
{}
17272+
],
17273+
"nullable": true
17274+
},
1723517275
"agent_id": {
1723617276
"type": "string"
1723717277
}
@@ -17443,6 +17483,46 @@
1744317483
],
1744417484
"nullable": true
1744517485
},
17486+
"value_enc": {
17487+
"oneOf": [
17488+
{
17489+
"type": "string"
17490+
},
17491+
{
17492+
"type": "string",
17493+
"format": "null",
17494+
"nullable": true
17495+
},
17496+
{
17497+
"type": "string",
17498+
"format": "null",
17499+
"nullable": true
17500+
},
17501+
{
17502+
"type": "array",
17503+
"items": {
17504+
"oneOf": [
17505+
{
17506+
"type": "string"
17507+
},
17508+
{
17509+
"type": "string",
17510+
"format": "null",
17511+
"nullable": true
17512+
},
17513+
{
17514+
"type": "string",
17515+
"format": "null",
17516+
"nullable": true
17517+
}
17518+
],
17519+
"nullable": true
17520+
}
17521+
},
17522+
{}
17523+
],
17524+
"nullable": true
17525+
},
1744617526
"agent_id": {
1744717527
"type": "string"
1744817528
}
@@ -21561,6 +21641,20 @@
2156121641
"title": "Description",
2156221642
"description": "An optional description of the environment variable."
2156321643
},
21644+
"value_enc": {
21645+
"anyOf": [
21646+
{
21647+
"type": "string",
21648+
"description": "Encrypted secret value (stored as encrypted string)",
21649+
"nullable": true
21650+
},
21651+
{
21652+
"type": "null"
21653+
}
21654+
],
21655+
"title": "Value Enc",
21656+
"description": "Encrypted value as Secret object"
21657+
},
2156421658
"agent_id": {
2156521659
"type": "string",
2156621660
"title": "Agent Id",
@@ -30834,6 +30928,34 @@
3083430928
],
3083530929
"title": "Updated At",
3083630930
"description": "The last update timestamp of the provider."
30931+
},
30932+
"api_key_enc": {
30933+
"anyOf": [
30934+
{
30935+
"type": "string",
30936+
"description": "Encrypted secret value (stored as encrypted string)",
30937+
"nullable": true
30938+
},
30939+
{
30940+
"type": "null"
30941+
}
30942+
],
30943+
"title": "Api Key Enc",
30944+
"description": "Encrypted API key as Secret object"
30945+
},
30946+
"access_key_enc": {
30947+
"anyOf": [
30948+
{
30949+
"type": "string",
30950+
"description": "Encrypted secret value (stored as encrypted string)",
30951+
"nullable": true
30952+
},
30953+
{
30954+
"type": "null"
30955+
}
30956+
],
30957+
"title": "Access Key Enc",
30958+
"description": "Encrypted access key as Secret object"
3083730959
}
3083830960
},
3083930961
"additionalProperties": false,
@@ -32021,6 +32143,20 @@
3202132143
"title": "Description",
3202232144
"description": "An optional description of the environment variable."
3202332145
},
32146+
"value_enc": {
32147+
"anyOf": [
32148+
{
32149+
"type": "string",
32150+
"description": "Encrypted secret value (stored as encrypted string)",
32151+
"nullable": true
32152+
},
32153+
{
32154+
"type": "null"
32155+
}
32156+
],
32157+
"title": "Value Enc",
32158+
"description": "Encrypted value as Secret object"
32159+
},
3202432160
"sandbox_config_id": {
3202532161
"type": "string",
3202632162
"title": "Sandbox Config Id",

letta/adapters/simple_llm_stream_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from letta.adapters.letta_llm_stream_adapter import LettaLLMStreamAdapter
44
from letta.helpers.datetime_helpers import get_utc_timestamp_ns
5-
from letta.interfaces.anthropic_streaming_interface import SimpleAnthropicStreamingInterface
5+
from letta.interfaces.anthropic_parallel_tool_call_streaming_interface import SimpleAnthropicStreamingInterface
66
from letta.interfaces.gemini_streaming_interface import SimpleGeminiStreamingInterface
77
from letta.interfaces.openai_streaming_interface import SimpleOpenAIResponsesStreamingInterface, SimpleOpenAIStreamingInterface
88
from letta.schemas.enums import ProviderType

letta/agents/letta_agent_v2.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,16 @@ def __init__(
9999
self.step_manager = StepManager()
100100
self.telemetry_manager = TelemetryManager()
101101

102-
# TODO: Expand to more
103-
if summarizer_settings.enable_summarization and model_settings.openai_api_key:
104-
self.summarization_agent = EphemeralSummaryAgent(
105-
target_block_label="conversation_summary",
106-
agent_id=self.agent_state.id,
107-
block_manager=self.block_manager,
108-
message_manager=self.message_manager,
109-
agent_manager=self.agent_manager,
110-
actor=self.actor,
111-
)
102+
## TODO: Expand to more
103+
# if summarizer_settings.enable_summarization and model_settings.openai_api_key:
104+
# self.summarization_agent = EphemeralSummaryAgent(
105+
# target_block_label="conversation_summary",
106+
# agent_id=self.agent_state.id,
107+
# block_manager=self.block_manager,
108+
# message_manager=self.message_manager,
109+
# agent_manager=self.agent_manager,
110+
# actor=self.actor,
111+
# )
112112

113113
# Initialize summarizer for context window management
114114
self.summarizer = Summarizer(
@@ -117,7 +117,7 @@ def __init__(
117117
if self.agent_state.agent_type == AgentType.voice_convo_agent
118118
else summarizer_settings.mode
119119
),
120-
summarizer_agent=self.summarization_agent,
120+
summarizer_agent=None, # self.summarization_agent,
121121
message_buffer_limit=summarizer_settings.message_buffer_limit,
122122
message_buffer_min=summarizer_settings.message_buffer_min,
123123
partial_evict_summarizer_percentage=summarizer_settings.partial_evict_summarizer_percentage,

0 commit comments

Comments
 (0)