feat: integrate simple adapter for non-streaming letta v1 agent (#5017)

This commit is contained in:
cthomas
2025-09-30 12:07:31 -07:00
committed by Caren Thomas
parent 74cf625f39
commit 4304a2e2ef
2 changed files with 5 additions and 2 deletions

View File

@@ -66,6 +66,10 @@ class SimpleLLMRequestAdapter(LettaLLMRequestAdapter):
else:
self.content = None
if self.reasoning_content and len(self.reasoning_content) > 0:
# Temp workaround to consolidate parts to persist reasoning content, this should be integrated better
self.content = self.reasoning_content + (self.content or [])
# Extract tool call
if self.chat_completions_response.choices[0].message.tool_calls:
self.tool_call = self.chat_completions_response.choices[0].message.tool_calls[0]