     </button>
                        <div x-show="open" class="border-t">
                          {% for log_part in agent_logs %}
                            <pre class="{% if log_part.chat_prompt %}chat_prompt {% elif log_part.chat_response %}chat_response {% endif %} p-4 rounded-md mb-4 whitespace-pre-wrap break-words">{{ log_part.content }}</pre>
                          {% endfor %}
                        </div>
                      </div>
                    {% endfor %}
                  {% el