File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1156,8 +1156,13 @@ def serialize_content_blocks(content_blocks, raw=False):
11561156 if not raw :
11571157 content = f'{ content } \n <details type="tool_calls" done="true" content="{ html .escape (json .dumps (block_content ))} " results="{ html .escape (json .dumps (results ))} ">\n <summary>Tool Executed</summary>\n { result_display_content } \n </details>\n '
11581158 else :
1159+ tool_calls_display_content = ""
1160+
1161+ for tool_call in block_content :
1162+ tool_calls_display_content = f"{ tool_calls_display_content } \n > Executing { tool_call .get ('function' , {}).get ('name' , '' )} "
1163+
11591164 if not raw :
1160- content = f'{ content } \n <details type="tool_calls" done="false" content="{ html .escape (json .dumps (block_content ))} ">\n <summary>Tool Executing...</summary>\n </details>\n '
1165+ content = f'{ content } \n <details type="tool_calls" done="false" content="{ html .escape (json .dumps (block_content ))} ">\n <summary>Tool Executing...</summary>\n { tool_calls_display_content } \n </details>\n '
11611166
11621167 elif block ["type" ] == "reasoning" :
11631168 reasoning_display_content = "\n " .join (
You can’t perform that action at this time.
0 commit comments