File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -651,11 +651,11 @@ def _run_regular_tool(
651651 raise
652652 except Exception as e : # noqa: BLE001
653653 error_message = getattr (e , "message" , str (e ))
654- logger .warning (
654+ logger .info (
655655 "Tool failed" ,
656656 extra = {"tool_name" : tool_use_block_param .name , "error" : error_message },
657657 )
658- logger .warning ("%s - %s" , tool_use_block_param .name , error_message )
658+ logger .info ("%s - %s" , tool_use_block_param .name , error_message )
659659 return ToolResultBlockParam (
660660 content = f"Tool raised an unexpected error: { error_message } " ,
661661 is_error = True ,
Original file line number Diff line number Diff line change @@ -1009,8 +1009,11 @@ def generate(self) -> None:
10091009 Conversation #{{ conversation_usage.conversation_index }}
10101010 </span>
10111011 <span class="usage-breakdown-meta">
1012+ {{ conversation_usage.step_summaries | length }} step(s),
10121013 Input {{ "{:,}".format(conversation_usage.input_tokens or 0) }},
1013- Output {{ "{:,}".format(conversation_usage.output_tokens or 0) }}
1014+ Output {{ "{:,}".format(conversation_usage.output_tokens or 0) }},
1015+ Cache Create {{ "{:,}".format(conversation_usage.cache_creation_input_tokens or 0) }},
1016+ Cache Read {{ "{:,}".format(conversation_usage.cache_read_input_tokens or 0) }}
10141017 {% if conversation_usage.total_cost is not none and conversation_usage.total_cost > 0 %}
10151018 , Cost:
10161019 ${{ "%.6f"|format(conversation_usage.total_cost) }}
You can’t perform that action at this time.
0 commit comments