Skip to content

Commit faa4618

Browse files
committed
fix: boolean
1 parent 83ad822 commit faa4618

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/strands/event_loop/_recover_message_on_max_tokens_reached.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def recover_message_on_max_tokens_reached(message: Message) -> Message:
6161
continue
6262

6363
# Replace all tool uses with error messages when max_tokens is reached
64-
display_name = tool_use.get("name", "<unknown>")
64+
display_name = tool_use.get("name") or "<unknown>"
6565
logger.warning("tool_name=<%s> | replacing with error message due to max_tokens truncation.", display_name)
6666

6767
valid_content.append(

0 commit comments

Comments
 (0)