From 644fff77c3dcda9ea97cb2b589e1c9ba5846f316 Mon Sep 17 00:00:00 2001 From: dboyliao Date: Mon, 23 Dec 2024 18:29:02 +0800 Subject: [PATCH] fix: fix attribute error in `_repr_html_` method for `LettaResponse` (#2313) --- letta/schemas/letta_response.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/letta/schemas/letta_response.py b/letta/schemas/letta_response.py index c6a1e8be..5c600272 100644 --- a/letta/schemas/letta_response.py +++ b/letta/schemas/letta_response.py @@ -47,7 +47,7 @@ class LettaResponse(BaseModel): return f'
{html.escape(msg.function_call.name)}({args})
' elif msg.message_type == "tool_call_message": args = format_json(msg.tool_call.arguments) - return f'
{html.escape(msg.function_call.name)}({args})
' + return f'
{html.escape(msg.tool_call.name)}({args})
' elif msg.message_type == "function_return": return_value = format_json(msg.function_return) # return f'
Status: {html.escape(msg.status)}
{return_value}
'