Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: fix attribute error in `_repr_html_` method for `LettaResponse` (#2313)
dboyliao644fff77c3dc
diff --git a/letta/schemas/letta_response.py b/letta/schemas/letta_response.pyindex c6a1e8be5..5c6002724 100644--- a/letta/schemas/letta_response.py+++ b/letta/schemas/letta_response.py@@ -47,7 +47,7 @@ class LettaResponse(BaseModel):return f'<div class="content"><span class="function-name">{html.escape(msg.function_call.name)}</span>({args})</div>'elif msg.message_type == "tool_call_message":args = format_json(msg.tool_call.arguments)- return f'<div class="content"><span class="function-name">{html.escape(msg.function_call.name)}</span>({args})</div>'+ return f'<div class="content"><span class="function-name">{html.escape(msg.tool_call.name)}</span>({args})</div>'elif msg.message_type == "function_return":return_value = format_json(msg.function_return)# return f'<div class="status-line">Status: {html.escape(msg.status)}</div><div class="content">{return_value}</div>'