Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

778 B
Raw Blame
<%# locals: (message:) %>

<details class="my-2 group mb-4">
  <summary class="text-secondary text-xs cursor-pointer flex items-center gap-2">
    <%= icon("chevron-right", class: "group-open:transform group-open:rotate-90") %>
    <p>Tool Calls</p>
  </summary>

  <div class="mt-2">
    <% message.tool_calls.each do |tool_call| %>
      <div class="bg-blue-50 border-blue-200 px-3 py-2 rounded-lg border mb-2">
        <p class="text-secondary text-xs">Function:</p>
        <p class="text-primary text-sm font-mono"><%= tool_call.function_name %></p>
        <p class="text-secondary text-xs mt-2">Arguments:</p>
        <pre class="text-primary text-sm font-mono whitespace-pre-wrap"><%= tool_call.function_arguments %></pre>
      </div>
    <% end %>
  </div>
</details>