This commit is contained in:
Timothy Jaeryang Baek
2026-02-27 15:53:03 -06:00
parent 758d8fcf31
commit 965f242d16

View File

@@ -895,6 +895,7 @@ def process_tool_result(
user=None,
):
tool_result_embeds = []
EXTERNAL_TOOL_TYPES = ("external", "action", "terminal")
if isinstance(tool_result, HTMLResponse):
content_disposition = tool_result.headers.get("Content-Disposition", "")
@@ -929,7 +930,6 @@ def process_tool_result(
else:
tool_result = tool_result.body.decode("utf-8", "replace")
EXTERNAL_TOOL_TYPES = ("external", "action", "terminal")
elif (
tool_type in EXTERNAL_TOOL_TYPES
and isinstance(tool_result, tuple)