<turbo-stream action="replace" target="anonymous-search-thread"><template><div id="anonymous-search-thread" class="flex flex-col flex-1 min-h-0 pub-agent-panel"
     data-controller="ai--chat-stream"
     data-ai--chat-stream-snapshot-path-value="/ai/legend/messages">
  <template id="ap-reasoning-panel-template"><div class="chat-bubble tool-chat-bubble flex flex-col group border border-primary-border rounded-lg cursor-pointer hover:border-secondary-border dark:border-white/10 dark:hover:border-white/20"
     data-action="click->ai--reasoning-panel#togglePill"
     data-controller="ai--reasoning-panel"
     data-copy-exclude
     data-ai--reasoning-panel-message-id-value=""
     data-ai--reasoning-panel-state-value="streaming"
     data-ai--reasoning-panel-reasoning-duration-ms-value="0"
     data-test="reasoning-panel">

  <button type="button"
          class="w-full px-4 py-1.5 flex items-center gap-2 min-w-0 text-quaternary-text text-sm cursor-pointer text-left bg-transparent rounded-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-1"
          data-ai--reasoning-panel-target="pill"
          aria-controls=""
          aria-expanded="false"
          aria-label="Toggle reasoning">
    <i class="ph-brain text-base shrink-0"></i>
    <span data-ai--reasoning-panel-target="label" class="font-medium text-tertiary-text dark:text-gray-500 truncate">
      Thinking…
    </span>
    <i class="ph-caret-down text-xs ml-auto" data-ai--reasoning-panel-target="caret"></i>
  </button>

  <div id=""
       class="motion-safe:transition-all motion-safe:duration-200 motion-safe:ease-in-out"
       data-ai--reasoning-panel-target="bodyContainer">
    <div class="px-4 pb-2 pt-0 min-w-0">
      <div class="flex flex-col justify-end overflow-hidden text-xs text-disabled-text min-w-0 dark:text-gray-500"
           data-ai--reasoning-panel-target="body"
           aria-live="off">
        <div class="flex flex-col gap-1 min-w-0 overflow-x-auto"
             data-target="reasoning-body"></div>
      </div>
    </div>
  </div>
</div></template>
<template id="ap-suspend-card-template"><div class="chat-bubble assistant-chat-bubble ring-1 ring-amber-200 rounded-lg bg-primary-bg px-4 py-3 flex flex-col gap-3 dark:ring-amber-500/40 dark:bg-amber-500/[0.06]"
     data-controller="ai--chat-workflow-suspend"
     data-copy-exclude
     data-ai--chat-workflow-suspend-run-id-value=""
     data-ai--chat-workflow-suspend-tool-call-id-value=""
     data-ai--chat-workflow-suspend-expires-at-value=""
     data-ai--chat-workflow-suspend-status-value=""
     data-ai--chat-workflow-suspend-silent-announcement-value="false"
     data-ai--chat-workflow-suspend-suspension-key-value=""
     data-ai--chat-workflow-suspend-step-value="[]"
     data-ai--chat-workflow-suspend-suspension-kind-value="approval"
     data-ai--chat-workflow-suspend-restart-url-value=""
     data-tool-call-id=""
     data-suspension-key="">
  <div class="flex items-center gap-2 text-sm">
    <i data-target="suspend-card-icon" class="ph-pause-circle text-amber-600 text-base dark:text-amber-300"></i>
    <span data-target="suspend-card-friendly-label" class="font-medium text-primary-text">Tool</span>
    <span data-target="suspend-card-tool-name" class="text-quaternary-text text-xxs ml-1"></span>
    <span data-target="suspend-card-agent" class="text-quaternary-text text-xxs ml-auto"></span>
  </div>

  <div class="flex flex-col gap-1">
    <span data-target="suspend-card-prefix" class="text-quaternary-text text-xxs hidden"></span>
    <div class="panel-text-block bg-primary-bg border border-amber-200 p-3 rounded-md dark:border-amber-500/30 dark:bg-white/[0.03]">
      <div class="panel-text-block-body">
        <div data-target="suspend-card-plan-summary" class="text-sm text-secondary-text format-markdown"></div>
      </div>
    </div>
  </div>

  <div class="flex flex-wrap items-center gap-x-3 gap-y-2 motion-safe:transition-opacity motion-safe:duration-200 motion-safe:ease-in-out" data-target="suspend-card-actions">
    <button type="button"
            class="btn btn-primary-light"
            data-target="suspend-card-approve"
            data-action="click->ai--chat-workflow-suspend#approve"
            aria-label="Approve plan and execute">
      Approve
    </button>
    <button type="button"
            class="btn btn-white" aria-haspopup="dialog"
            data-target="suspend-card-decline"
            data-controller="stimulus-confirm"
            data-stimulus-confirm-message-value="Decline this change? This ends the request and discards the draft. You can start a new one anytime."
            data-stimulus-confirm-description-value="This ends the request and discards the draft."
            data-stimulus-confirm-destructive-value="true"
            data-stimulus-confirm-icon-value="ph-x-circle"
            data-stimulus-confirm-btn-text-value="Decline"
            data-action="click->stimulus-confirm#openModal confirm:confirmed->ai--chat-workflow-suspend#decline"
            aria-label="Decline plan and end workflow">
      Decline
    </button>
    <button type="button"
            class="btn btn-white hidden" aria-haspopup="dialog"
            data-target="suspend-card-dismiss"
            data-controller="stimulus-confirm"
            data-stimulus-confirm-message-value="Dismiss this request?"
            data-stimulus-confirm-description-value="The agent stops waiting and won't make this change. Send a new message to continue."
            data-stimulus-confirm-destructive-value="true"
            data-stimulus-confirm-icon-value="ph-x-circle"
            data-stimulus-confirm-btn-text-value="Dismiss"
            data-action="click->stimulus-confirm#openModal confirm:confirmed->ai--chat-workflow-suspend#dismiss"
            aria-label="Dismiss this request and stop the agent">
      Dismiss
    </button>
    <span data-target="suspend-card-countdown"
          class="ml-auto text-xs text-quaternary-text whitespace-nowrap"
          data-controller="tooltip"
          data-tippy-content="">
    </span>
  </div>

  <p data-target="suspend-card-inline-error" class="text-xs text-red-600 hidden dark:text-red-300" role="alert"></p>
  <p data-target="suspend-card-reconnecting" class="text-xs text-quaternary-text hidden">Reconnecting&hellip;</p>

  <div data-target="suspend-card-executing" class="hidden flex-col gap-2 motion-safe:transition-opacity motion-safe:duration-200 motion-safe:ease-in-out">
    <div class="flex items-center gap-2">
      <div class="spin-loop">
        <svg class="ai-chat-ico--star shrink-0" xmlns="http://www.w3.org/2000/svg" width="24" height="24"
      viewBox="0 0 24 24" fill="none" aria-hidden="true">
  <path d="M19.6364 22.9091C19.6364 23.5116 19.1479 24 18.5455 24C17.943 24 17.4545 23.5116 17.4545 22.9091C17.4545 22.3066 17.943 21.8182 18.5455 21.8182C19.1479 21.8182 19.6364 22.3066 19.6364 22.9091Z" fill="url(#paint0_linear_3091_8257)"/>
  <path d="M24 18.5455C24 19.1479 23.5116 19.6364 22.9091 19.6364C22.3066 19.6364 21.8182 19.1479 21.8182 18.5455C21.8182 17.943 22.3066 17.4545 22.9091 17.4545C23.5116 17.4545 24 17.943 24 18.5455Z" fill="url(#paint1_linear_3091_8257)"/>
  <path d="M2.18182 5.45455C2.18182 6.05704 1.6934 6.54545 1.09091 6.54545C0.488417 6.54545 0 6.05704 0 5.45455C0 4.85205 0.488417 4.36364 1.09091 4.36364C1.6934 4.36364 2.18182 4.85205 2.18182 5.45455Z" fill="url(#paint2_linear_3091_8257)"/>
  <path d="M6.54545 1.09091C6.54545 1.6934 6.05704 2.18182 5.45455 2.18182C4.85205 2.18182 4.36364 1.6934 4.36364 1.09091C4.36364 0.488417 4.85205 0 5.45455 0C6.05704 0 6.54545 0.488417 6.54545 1.09091Z" fill="url(#paint3_linear_3091_8257)"/>
  <g class="star">
    <path fill-rule="evenodd" clip-rule="evenodd" d="M12 5.98136L11.2885 8.91553C11.0041 10.0884 10.0884 11.0041 8.91553 11.2885L5.98136 12L8.91553 12.7115C10.0884 12.9959 11.0041 13.9116 11.2885 15.0845L12 18.0186L12.7115 15.0845C12.9959 13.9116 13.9116 12.9959 15.0845 12.7115L18.0186 12L15.0845 11.2885C13.9116 11.0041 12.9959 10.0884 12.7115 8.91553L12 5.98136ZM13.4239 4.39261C13.0618 2.89943 10.9382 2.89943 10.5761 4.39262L9.57983 8.50121C9.45056 9.03432 9.03432 9.45056 8.50121 9.57983L4.39261 10.5761C2.89943 10.9382 2.89943 13.0618 4.39262 13.4239L8.50121 14.4202C9.03432 14.5494 9.45056 14.9657 9.57983 15.4988L10.5761 19.6074C10.9382 21.1006 13.0618 21.1006 13.4239 19.6074L14.4202 15.4988C14.5494 14.9657 14.9657 14.5494 15.4988 14.4202L19.6074 13.4239C21.1006 13.0618 21.1006 10.9382 19.6074 10.5761L15.4988 9.57983C14.9657 9.45056 14.5494 9.03432 14.4202 8.50121L13.4239 4.39261Z" fill="url(#paint4_linear_3091_8257)"/>
  </g>
  <path fill-rule="evenodd" clip-rule="evenodd" d="M8.73232 23.2524C8.54271 23.7604 7.97717 24.0185 7.46916 23.8289C4.17851 22.6007 1.53526 20.051 0.185165 16.8249C-0.0241665 16.3247 0.211637 15.7495 0.711845 15.5402C1.21205 15.3308 1.78725 15.5667 1.99658 16.0669C3.13768 18.7936 5.37441 20.9511 8.1558 21.9892C8.66381 22.1789 8.92193 22.7444 8.73232 23.2524Z" fill="url(#paint5_linear_3091_8257)"/>
  <path fill-rule="evenodd" clip-rule="evenodd" d="M23.2531 8.74993C22.7452 8.93993 22.1795 8.68225 21.9895 8.17439C20.9432 5.37768 18.7604 3.13169 16.0029 1.9991C15.5013 1.79308 15.2617 1.21946 15.4677 0.717879C15.6737 0.216296 16.2474 -0.0233107 16.7489 0.182703C20.0102 1.52218 22.5902 4.17597 23.8286 7.48633C24.0186 7.99419 23.761 8.55992 23.2531 8.74993Z" fill="url(#paint6_linear_3091_8257)"/>
  <defs>
    <linearGradient id="paint0_linear_3091_8257" x1="0" y1="12" x2="24" y2="12" gradientUnits="userSpaceOnUse">
      <stop stop-color="#7A28E2"/><stop offset="0.668269" stop-color="#C100B6"/><stop offset="1" stop-color="#FE4FF4"/>
    </linearGradient>
    <linearGradient id="paint1_linear_3091_8257" x1="0" y1="12" x2="24" y2="12" gradientUnits="userSpaceOnUse">
      <stop stop-color="#7A28E2"/><stop offset="0.668269" stop-color="#C100B6"/><stop offset="1" stop-color="#FE4FF4"/>
    </linearGradient>
    <linearGradient id="paint2_linear_3091_8257" x1="0" y1="12" x2="24" y2="12" gradientUnits="userSpaceOnUse">
      <stop stop-color="#7A28E2"/><stop offset="0.668269" stop-color="#C100B6"/><stop offset="1" stop-color="#FE4FF4"/>
    </linearGradient>
    <linearGradient id="paint3_linear_3091_8257" x1="0" y1="12" x2="24" y2="12" gradientUnits="userSpaceOnUse">
      <stop stop-color="#7A28E2"/><stop offset="0.668269" stop-color="#C100B6"/><stop offset="1" stop-color="#FE4FF4"/>
    </linearGradient>
    <linearGradient id="paint4_linear_3091_8257" x1="0" y1="12" x2="24" y2="12" gradientUnits="userSpaceOnUse">
      <stop stop-color="#7A28E2"/><stop offset="0.668269" stop-color="#C100B6"/><stop offset="1" stop-color="#FE4FF4"/>
    </linearGradient>
    <linearGradient id="paint5_linear_3091_8257" x1="0" y1="12" x2="24" y2="12" gradientUnits="userSpaceOnUse">
      <stop stop-color="#7A28E2"/><stop offset="0.668269" stop-color="#C100B6"/><stop offset="1" stop-color="#FE4FF4"/>
    </linearGradient>
    <linearGradient id="paint6_linear_3091_8257" x1="0" y1="12" x2="24" y2="12" gradientUnits="userSpaceOnUse">
      <stop stop-color="#7A28E2"/><stop offset="0.668269" stop-color="#C100B6"/><stop offset="1" stop-color="#FE4FF4"/>
    </linearGradient>
  </defs>
</svg>

      </div>
      <span class="text-base text-tertiary-text animate-pulse">Executing&hellip;</span>
    </div>
  </div>

  <div data-target="suspend-card-expired" class="hidden motion-safe:transition-opacity motion-safe:duration-200 motion-safe:ease-in-out">
    <div class="alert-message alert-orange items-start !py-3">
      <div class="alert-icon"><i class="ph-clock"></i></div>
      <div class="alert-content">
        <h4 data-target="suspend-card-expired-heading">Approval timed out</h4>
        <p data-target="suspend-card-expired-body" class="text-sm"></p>
        <button type="button"
                class="btn btn-primary-light mt-2 hidden"
                data-target="suspend-card-retry"
                data-action="click->ai--chat-workflow-suspend#restart">
          Retry
        </button>
      </div>
    </div>
  </div>

  <div data-target="suspend-card-superseded" class="hidden">
    <div class="alert-message alert-blue items-start !py-3">
      <div class="alert-icon"><i class="ph-info"></i></div>
      <div class="alert-content">
        <h4>This plan was replaced</h4>
        <p class="text-sm">This plan was replaced by a newer one. Open the current plan to continue.</p>
        <a data-target="suspend-card-superseded-link" class="btn btn-white mt-2 hidden" href="#">Open the current plan</a>
      </div>
    </div>
  </div>

  <div data-target="suspend-card-dismissed" class="hidden">
    <div class="alert-message alert-gray items-start !py-3">
      <div class="alert-icon"><i class="ph-prohibit-inset"></i></div>
      <div class="alert-content">
        <h4>Request dismissed</h4>
        <p class="text-sm">The agent stopped waiting and didn't make this change. Send a message to continue.</p>
      </div>
    </div>
  </div>


</div></template>
<template id="ap-typing-indicator-template"><div class="flex items-center gap-1.5 py-1"
     data-copy-exclude
     data-test="typing-indicator"
     role="status"
     aria-live="polite">
  <div class="spin-loop shrink-0 text-purple-500 dark:text-purple-400">
    <svg class="ai-chat-ico--star shrink-0" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" aria-hidden="true">
  <path d="M19.6364 22.9091C19.6364 23.5116 19.1479 24 18.5455 24C17.943 24 17.4545 23.5116 17.4545 22.9091C17.4545 22.3066 17.943 21.8182 18.5455 21.8182C19.1479 21.8182 19.6364 22.3066 19.6364 22.9091Z" fill="currentColor"/>
  <path d="M24 18.5455C24 19.1479 23.5116 19.6364 22.9091 19.6364C22.3066 19.6364 21.8182 19.1479 21.8182 18.5455C21.8182 17.943 22.3066 17.4545 22.9091 17.4545C23.5116 17.4545 24 17.943 24 18.5455Z" fill="currentColor"/>
  <path d="M2.18182 5.45455C2.18182 6.05704 1.6934 6.54545 1.09091 6.54545C0.488417 6.54545 0 6.05704 0 5.45455C0 4.85205 0.488417 4.36364 1.09091 4.36364C1.6934 4.36364 2.18182 4.85205 2.18182 5.45455Z" fill="currentColor"/>
  <path d="M6.54545 1.09091C6.54545 1.6934 6.05704 2.18182 5.45455 2.18182C4.85205 2.18182 4.36364 1.6934 4.36364 1.09091C4.36364 0.488417 4.85205 0 5.45455 0C6.05704 0 6.54545 0.488417 6.54545 1.09091Z" fill="currentColor"/>
  <g class="star">
    <path fill-rule="evenodd" clip-rule="evenodd" d="M12 5.98136L11.2885 8.91553C11.0041 10.0884 10.0884 11.0041 8.91553 11.2885L5.98136 12L8.91553 12.7115C10.0884 12.9959 11.0041 13.9116 11.2885 15.0845L12 18.0186L12.7115 15.0845C12.9959 13.9116 13.9116 12.9959 15.0845 12.7115L18.0186 12L15.0845 11.2885C13.9116 11.0041 12.9959 10.0884 12.7115 8.91553L12 5.98136ZM13.4239 4.39261C13.0618 2.89943 10.9382 2.89943 10.5761 4.39262L9.57983 8.50121C9.45056 9.03432 9.03432 9.45056 8.50121 9.57983L4.39261 10.5761C2.89943 10.9382 2.89943 13.0618 4.39262 13.4239L8.50121 14.4202C9.03432 14.5494 9.45056 14.9657 9.57983 15.4988L10.5761 19.6074C10.9382 21.1006 13.0618 21.1006 13.4239 19.6074L14.4202 15.4988C14.5494 14.9657 14.9657 14.5494 15.4988 14.4202L19.6074 13.4239C21.1006 13.0618 21.1006 10.9382 19.6074 10.5761L15.4988 9.57983C14.9657 9.45056 14.5494 9.03432 14.4202 8.50121L13.4239 4.39261Z" fill="currentColor"/>
  </g>
  <path fill-rule="evenodd" clip-rule="evenodd" d="M8.73232 23.2524C8.54271 23.7604 7.97717 24.0185 7.46916 23.8289C4.17851 22.6007 1.53526 20.051 0.185165 16.8249C-0.0241665 16.3247 0.211637 15.7495 0.711845 15.5402C1.21205 15.3308 1.78725 15.5667 1.99658 16.0669C3.13768 18.7936 5.37441 20.9511 8.1558 21.9892C8.66381 22.1789 8.92193 22.7444 8.73232 23.2524Z" fill="currentColor"/>
  <path fill-rule="evenodd" clip-rule="evenodd" d="M23.2531 8.74993C22.7452 8.93993 22.1795 8.68225 21.9895 8.17439C20.9432 5.37768 18.7604 3.13169 16.0029 1.9991C15.5013 1.79308 15.2617 1.21946 15.4677 0.717879C15.6737 0.216296 16.2474 -0.0233107 16.7489 0.182703C20.0102 1.52218 22.5902 4.17597 23.8286 7.48633C24.0186 7.99419 23.761 8.55992 23.2531 8.74993Z" fill="currentColor"/>
</svg>

  </div>
  <span data-target="typing-indicator-text"
        class="typing-indicator-text text-base">Thinking</span>
</div></template>
<template id="ap-a2ui-surface-template"><div
  class="a2ui-isolation-root"
  data-controller="ai--a2ui-renderer"
  data-ai--a2ui-renderer-surface-id-value=""
  data-ai--a2ui-renderer-surface-value="null"
  data-ai--a2ui-renderer-spec-version-value=""
  data-ai--a2ui-renderer-conversation-id-value=""
  data-ai--a2ui-renderer-actions-locked-value="false"
  data-ai--a2ui-renderer-actions-url-value="/ai/a2ui_actions"
  data-ai--a2ui-renderer-resume-url-value=""
  data-ai--a2ui-renderer-resume-tool-call-id-value=""
>
  <div data-ai--a2ui-renderer-target="mount"
       class="panel text-primary-text dark:text-gray-100 !bg-primary-bg dark:!bg-white/[0.02] border border-primary-border"
       role="region"
       aria-label="Interactive UI from agent"></div>
  <noscript class="text-xs text-quaternary-text">
    Interactive A2UI surface (requires JavaScript).
  </noscript>
</div>
</template>
<template id="ap-tool-card-enduser-template"><div class="chat-bubble tool-chat-bubble flex flex-col gap-2 group border border-primary-border rounded-lg dark:border-white/10 hover:border-secondary-border dark:hover:border-white/20"
     data-controller="collapsible"
     data-copy-exclude
     data-collapsible-show-value="true"
     data-collapsible-open-icon-value="ph-minus-circle"
     data-collapsible-closed-icon-value="ph-plus-circle"
     data-tool-call-id=""
     data-tool-card-status="running"
     
     data-test="tool-card-enduser">
  <button type="button"
          class="w-full px-2 py-1.5 flex flex-wrap items-center gap-2 min-w-0 text-quaternary-text text-sm cursor-pointer before:text-icon-default text-left before:!text-md bg-transparent rounded-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-1 dark:before:text-icon-dark"
          data-collapsible-target="arrow"
          aria-expanded="true"
          aria-controls="tool-card-body-">
    <i data-target="tool-card-icon" class="ph-wrench text-base shrink-0 text-purple-500"></i>
    <span data-target="tool-card-name" class="font-medium text-tertiary-text truncate min-w-0">Tool</span>
    <span class="ml-auto flex items-center gap-2 shrink-0">
        <span data-target="tool-card-verb" class="text-quaternary-text text-xs truncate hidden md:inline">Running tool</span>
      <span data-target="tool-card-status"
            role="status"
            aria-live="polite"
            class="badge badge-blue animate-pulse">running...</span>
    </span>
  </button>

  <div class="px-4 pb-2 pt-0 flex flex-col gap-1.5 text-sm text-tertiary-text motion-safe:transition-opacity motion-safe:duration-200 motion-safe:ease-in-out min-w-0"
       data-collapsible-target="child"
       id="tool-card-body-">

    <p data-target="tool-card-summary"
       class="text-sm text-secondary-text leading-relaxed hidden">
      
    </p>

    <p data-target="tool-card-progress"
       class="text-xs text-quaternary-text italic hidden"></p>

    <p data-target="tool-card-queued"
       class="text-xs text-quaternary-text italic dark:text-gray-500 hidden">
      Waits until the pending approval is answered.
    </p>

      <p data-target="tool-card-empty"
         class="text-xs text-quaternary-text italic dark:text-gray-500">No details available.</p>

    <div data-target="tool-card-result-list"
         data-renderer-type=""
         class="relative hidden">
      <div class="absolute top-1 right-1"
           data-controller="clipboard-rich-html">
        <span class="hidden"
              data-clipboard-rich-html-target="source"
              data-target="tool-card-clipboard-source"></span>
        <button type="button"
                class="btn-chat-bubble"
                data-controller="tooltip"
                data-tippy-content="Copy result"
                data-action="click->clipboard-rich-html#copy"
                aria-label="Copy tool result">
          <i class="ph-copy"></i>
        </button>
      </div>
    </div>

    <div data-target="tool-card-error"
         role="alert"
         class="alert-message alert-red items-start hidden">
      <div class="alert-icon"><i class="ph-warning-circle"></i></div>
      <div class="alert-content">
        <h4 class="text-sm font-semibold">Tool failed</h4>
        <p data-target="tool-card-error-body" class="text-xs"></p>
      </div>
    </div>




  </div>
</div>
</template>
<template id="ap-tool-activity-template"><div class="chat-bubble tool-chat-bubble tool-activity flex flex-col gap-2 group border border-primary-border rounded-lg dark:border-white/10 hover:border-secondary-border dark:hover:border-white/20"
     data-controller="collapsible"
     data-collapsible-show-value="false"
     data-collapsible-open-icon-value="ph-minus-circle"
     data-collapsible-closed-icon-value="ph-plus-circle"
     data-target="tool-activity"
     data-copy-exclude
     data-tool-count="0"
     data-tools-failed="0"
     data-test="tool-activity">
  <button type="button"
          class="ph-plus-circle w-full px-2 py-1.5 flex flex-wrap items-center gap-2 min-w-0 text-quaternary-text text-sm cursor-pointer before:text-icon-default text-left before:!text-md bg-transparent rounded-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-1 dark:before:text-icon-dark"
          data-collapsible-target="arrow"
          aria-expanded="false">
    <i data-target="tool-activity-icon" class="ph-check-circle text-base shrink-0 text-purple-500" aria-hidden="true"></i>
    <span data-target="tool-activity-label" role="status" aria-live="polite" class="font-medium text-tertiary-text truncate min-w-0">0 actions</span>
    <span class="ml-auto flex items-center gap-2 shrink-0">
      <span data-target="tool-activity-detail" class="text-quaternary-text text-xs truncate hidden md:inline"></span>
      <span data-target="tool-activity-status" class="badge badge-green">done</span>
    </span>
  </button>
  <div class="px-4 pb-2 pt-0 flex flex-col gap-2 min-w-0 !hidden" data-collapsible-target="child">
    <ul role="list"
        data-target="tool-activity-list"
        class="flex flex-col gap-2 !list-none !p-0 !m-0 all-children:!mb-0"></ul>
  </div>
</div></template>
<template id="ap-error-message-enduser-template">  <div class="alert-message alert-red items-start !py-3"
       role="alert"
       aria-live="polite"
       data-error-audience="end_user"
       data-test="error-message-end-user">
    <div class="alert-icon"><i class="ph-warning-circle"></i></div>
    <div class="alert-content flex flex-col gap-1">
      <h4 data-target="error-label" class="text-sm"></h4>
      <p data-target="error-body" class="text-xs leading-relaxed"></p>
      <div class="flex flex-col items-start gap-1"
     data-controller="support-error-report"
     data-support-error-report-url-value="/support_requests/error_reports"
     data-support-error-report-source-value="agent_run"
     data-support-error-report-reference-value=""
     data-test="support-error-report">
  <button type="button"
          class="btn btn-white btn-sm"
          data-support-error-report-target="button"
          data-action="support-error-report#submit"
          hidden>
    <i class="ph-paper-plane-tilt"></i>
    Send this to support
  </button>
  <p class="text-xs" data-support-error-report-target="status" role="status" aria-live="polite" hidden></p>
</div>
        <button type="button"
                data-target="error-retry-button"
                hidden
                class="btn btn-primary-light btn-sm self-start"></button>
    </div>
  </div>
</template>
<script type="application/json" id="ap-error-copy-enduser">{"support_url":"https://www.decilehub.com/support_requests/new","support_text":"contact support","states":{"provider_overloaded":{"label":"The agent is busy","body_terminal":"The agent is currently unavailable. Please try again in a few minutes.","body_retryable":"The agent is handling high demand right now. Wait a moment and click Retry.","retry_button":"Retry"},"rate_limited":{"label":"Too many requests","body_terminal":"The agent is temporarily at capacity. Please wait a minute and try again.","body_retryable":"The agent is receiving too many requests at the moment. Wait a few seconds, then click Retry.","retry_button":"Retry"},"tool_failed":{"label":"A lookup step failed","body_terminal":"The agent could not complete one of its steps. Please try again."},"dispatch_failed":{"label":"Could not start agent","body_terminal":"The agent could not be started and did not recover. Please refresh the page and try again.","body_retryable":"The agent could not be started. This is usually temporary. Click Retry and it should pick up normally.","retry_button":"Retry"},"jwt_expired":{"label":"Session expired","body_terminal":"Your session expired while the agent was running. Refresh the page to continue."},"sidecar_disconnect":{"label":"Connection interrupted","body_terminal":"The connection to the agent was lost and could not be re-established. Refresh the page and try again.","body_retryable":"The connection to the agent dropped mid-run. Click Retry to reconnect and resume.","retry_button":"Retry"},"retries_exhausted":{"label":"Agent could not complete","body_terminal":"The agent tried several times and was unable to finish. Please try again in a few minutes.","body_retryable":"The agent tried several times and was unable to finish. You can try again, though the issue may not resolve immediately.","retry_button":"Retry"},"stream_stall":{"label":"The agent is taking longer than expected","body_terminal":"The agent did not respond in time. Please try again.","body_retryable":"The agent did not respond in time. Click Retry to try again.","retry_button":"Retry"},"tripwire_context_exceeded":{"label":"Your message is too long for this agent","body_terminal":"Your message exceeded the agent's context budget. Try shortening your input or splitting it across multiple turns."},"step_limit_exceeded":{"label":"The agent got stuck","body_terminal":"The agent kept working but did not reach an answer. Try asking again with a clearer, more specific request."},"unknown":{"label":"Something went wrong","body_terminal":"An unexpected error occurred. Please refresh the page and try again."}}}</script>

  <div data-ai--chat-stream-target="scrollContainer" class="flex-1 min-h-0 overflow-y-auto">
    <div class="dg-agent-chat pub-agent-panel__body" data-toolkit-slug="legend">
      <div class="pub-agent-panel__head">
        <span class="pub-agent__av" aria-hidden="true"><i class="ph-user"></i></span>
        <div>
          <h2>Venture Legend</h2>
          <p>Get venture capital advice from VC Legends, like Marc Andreessen, Paul Graham, Bill Gurley, and Reid Hoffman</p>
        </div>
      </div>
        <div class="dg-agent-first-surface"
       data-controller="dg-first-surface"
       data-dg-first-surface-surface-id-value="first_surface_legend"
       data-dg-first-surface-placeholder-value="e.g. I&#39;m raising a $10M pre-seed fund focused on AI infrastructure — how do I stand out to LPs?"
       data-dg-first-surface-placeholders-value="{}"
       data-dg-first-surface-required-keys-value="[&quot;investors&quot;,&quot;question&quot;]">
    <div class="dg-agent-intro">
      <p>Welcome! Pick one or more venture legends and share your problem, opportunity, or question — you will get an answer in each of their voices, plus a consolidated take.</p>

    </div>
    <div
  class="a2ui-isolation-root"
  data-controller="ai--a2ui-renderer"
  data-ai--a2ui-renderer-surface-id-value="first_surface_legend"
  data-ai--a2ui-renderer-surface-value="{&quot;root&quot;:&quot;intake&quot;,&quot;dataModel&quot;:{&quot;question&quot;:&quot;&quot;,&quot;investors&quot;:{&quot;Brad Feld&quot;:false,&quot;Adeo Ressi&quot;:false,&quot;John Doerr&quot;:false,&quot;Bill Gurley&quot;:false,&quot;Paul Graham&quot;:false,&quot;Reid Hoffman&quot;:false,&quot;Vinod Khosla&quot;:false,&quot;Masayoshi Son&quot;:false,&quot;Naval Ravikant&quot;:false,&quot;Marc Andreessen&quot;:false}},&quot;components&quot;:[{&quot;id&quot;:&quot;intake&quot;,&quot;component&quot;:{&quot;Column&quot;:{&quot;children&quot;:{&quot;explicitList&quot;:[&quot;heading&quot;,&quot;investors_label&quot;,&quot;investors_select&quot;,&quot;question_field&quot;,&quot;submit_btn&quot;]}}}},{&quot;id&quot;:&quot;heading&quot;,&quot;component&quot;:{&quot;Text&quot;:{&quot;text&quot;:{&quot;literalString&quot;:&quot;Choose investors and share your problem, opportunity, or question.&quot;},&quot;usageHint&quot;:&quot;h3&quot;}}},{&quot;id&quot;:&quot;investors_label&quot;,&quot;component&quot;:{&quot;Text&quot;:{&quot;text&quot;:{&quot;literalString&quot;:&quot;Select investors — pick one or more perspectives&quot;},&quot;usageHint&quot;:&quot;caption&quot;}}},{&quot;id&quot;:&quot;investors_select&quot;,&quot;component&quot;:{&quot;Column&quot;:{&quot;children&quot;:{&quot;explicitList&quot;:[&quot;investor_0&quot;,&quot;investor_1&quot;,&quot;investor_2&quot;,&quot;investor_3&quot;,&quot;investor_4&quot;,&quot;investor_5&quot;,&quot;investor_6&quot;,&quot;investor_7&quot;,&quot;investor_8&quot;,&quot;investor_9&quot;]}}}},{&quot;id&quot;:&quot;investor_0&quot;,&quot;component&quot;:{&quot;CheckBox&quot;:{&quot;label&quot;:{&quot;literalString&quot;:&quot;Adeo Ressi&quot;},&quot;value&quot;:{&quot;path&quot;:&quot;/investors/Adeo Ressi&quot;}}}},{&quot;id&quot;:&quot;investor_1&quot;,&quot;component&quot;:{&quot;CheckBox&quot;:{&quot;label&quot;:{&quot;literalString&quot;:&quot;Marc Andreessen&quot;},&quot;value&quot;:{&quot;path&quot;:&quot;/investors/Marc Andreessen&quot;}}}},{&quot;id&quot;:&quot;investor_2&quot;,&quot;component&quot;:{&quot;CheckBox&quot;:{&quot;label&quot;:{&quot;literalString&quot;:&quot;Paul Graham&quot;},&quot;value&quot;:{&quot;path&quot;:&quot;/investors/Paul Graham&quot;}}}},{&quot;id&quot;:&quot;investor_3&quot;,&quot;component&quot;:{&quot;CheckBox&quot;:{&quot;label&quot;:{&quot;literalString&quot;:&quot;Bill Gurley&quot;},&quot;value&quot;:{&quot;path&quot;:&quot;/investors/Bill Gurley&quot;}}}},{&quot;id&quot;:&quot;investor_4&quot;,&quot;component&quot;:{&quot;CheckBox&quot;:{&quot;label&quot;:{&quot;literalString&quot;:&quot;Reid Hoffman&quot;},&quot;value&quot;:{&quot;path&quot;:&quot;/investors/Reid Hoffman&quot;}}}},{&quot;id&quot;:&quot;investor_5&quot;,&quot;component&quot;:{&quot;CheckBox&quot;:{&quot;label&quot;:{&quot;literalString&quot;:&quot;Brad Feld&quot;},&quot;value&quot;:{&quot;path&quot;:&quot;/investors/Brad Feld&quot;}}}},{&quot;id&quot;:&quot;investor_6&quot;,&quot;component&quot;:{&quot;CheckBox&quot;:{&quot;label&quot;:{&quot;literalString&quot;:&quot;Naval Ravikant&quot;},&quot;value&quot;:{&quot;path&quot;:&quot;/investors/Naval Ravikant&quot;}}}},{&quot;id&quot;:&quot;investor_7&quot;,&quot;component&quot;:{&quot;CheckBox&quot;:{&quot;label&quot;:{&quot;literalString&quot;:&quot;John Doerr&quot;},&quot;value&quot;:{&quot;path&quot;:&quot;/investors/John Doerr&quot;}}}},{&quot;id&quot;:&quot;investor_8&quot;,&quot;component&quot;:{&quot;CheckBox&quot;:{&quot;label&quot;:{&quot;literalString&quot;:&quot;Masayoshi Son&quot;},&quot;value&quot;:{&quot;path&quot;:&quot;/investors/Masayoshi Son&quot;}}}},{&quot;id&quot;:&quot;investor_9&quot;,&quot;component&quot;:{&quot;CheckBox&quot;:{&quot;label&quot;:{&quot;literalString&quot;:&quot;Vinod Khosla&quot;},&quot;value&quot;:{&quot;path&quot;:&quot;/investors/Vinod Khosla&quot;}}}},{&quot;id&quot;:&quot;question_field&quot;,&quot;component&quot;:{&quot;TextField&quot;:{&quot;text&quot;:{&quot;path&quot;:&quot;/question&quot;},&quot;type&quot;:&quot;longText&quot;,&quot;label&quot;:{&quot;literalString&quot;:&quot;What problem, opportunity, or question do you want analyzed?&quot;},&quot;textFieldType&quot;:&quot;longText&quot;}}},{&quot;id&quot;:&quot;submit_btn&quot;,&quot;component&quot;:{&quot;Button&quot;:{&quot;child&quot;:&quot;submit_btn_label&quot;,&quot;action&quot;:{&quot;name&quot;:&quot;submit_intake&quot;,&quot;context&quot;:[{&quot;key&quot;:&quot;Adeo Ressi&quot;,&quot;value&quot;:{&quot;path&quot;:&quot;/investors/Adeo Ressi&quot;}},{&quot;key&quot;:&quot;Marc Andreessen&quot;,&quot;value&quot;:{&quot;path&quot;:&quot;/investors/Marc Andreessen&quot;}},{&quot;key&quot;:&quot;Paul Graham&quot;,&quot;value&quot;:{&quot;path&quot;:&quot;/investors/Paul Graham&quot;}},{&quot;key&quot;:&quot;Bill Gurley&quot;,&quot;value&quot;:{&quot;path&quot;:&quot;/investors/Bill Gurley&quot;}},{&quot;key&quot;:&quot;Reid Hoffman&quot;,&quot;value&quot;:{&quot;path&quot;:&quot;/investors/Reid Hoffman&quot;}},{&quot;key&quot;:&quot;Brad Feld&quot;,&quot;value&quot;:{&quot;path&quot;:&quot;/investors/Brad Feld&quot;}},{&quot;key&quot;:&quot;Naval Ravikant&quot;,&quot;value&quot;:{&quot;path&quot;:&quot;/investors/Naval Ravikant&quot;}},{&quot;key&quot;:&quot;John Doerr&quot;,&quot;value&quot;:{&quot;path&quot;:&quot;/investors/John Doerr&quot;}},{&quot;key&quot;:&quot;Masayoshi Son&quot;,&quot;value&quot;:{&quot;path&quot;:&quot;/investors/Masayoshi Son&quot;}},{&quot;key&quot;:&quot;Vinod Khosla&quot;,&quot;value&quot;:{&quot;path&quot;:&quot;/investors/Vinod Khosla&quot;}},{&quot;key&quot;:&quot;investors&quot;,&quot;value&quot;:{&quot;path&quot;:&quot;/investors&quot;}},{&quot;key&quot;:&quot;question&quot;,&quot;value&quot;:{&quot;path&quot;:&quot;/question&quot;}}]},&quot;primary&quot;:true}}},{&quot;id&quot;:&quot;submit_btn_label&quot;,&quot;component&quot;:{&quot;Text&quot;:{&quot;text&quot;:{&quot;literalString&quot;:&quot;Submit&quot;}}}}]}"
  data-ai--a2ui-renderer-spec-version-value="0.8"
  data-ai--a2ui-renderer-conversation-id-value=""
  data-ai--a2ui-renderer-actions-locked-value="false"
  data-ai--a2ui-renderer-actions-url-value="/ai/legend/actions"
  data-ai--a2ui-renderer-resume-url-value=""
  data-ai--a2ui-renderer-resume-tool-call-id-value=""
>
  <div data-ai--a2ui-renderer-target="mount"
       class="panel text-primary-text dark:text-gray-100 !bg-primary-bg dark:!bg-white/[0.02] border border-primary-border"
       role="region"
       aria-label="Interactive UI from agent"></div>
  <noscript class="text-xs text-quaternary-text">
    Interactive A2UI surface (requires JavaScript).
  </noscript>
</div>

  </div>

      <div id="dg-agent-conversation" class="contents" data-controller="dg-agent-conversation"></div>
    </div>
  </div>
  <div id="anonymous-search-notice" role="status" aria-live="polite"></div>
  <form id="dg-agent-composer" class="pub-composer" data-controller="dg-agent-composer" data-action="submit-&gt;dg-agent-composer#guardSubmit submit-&gt;dg-agent-composer#markBusy turbo:submit-end-&gt;dg-agent-composer#clearBusy" action="/ai/legend/messages" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="-Yi8X6IuOQyanzwgpcIQBbuVxO-PuxfnCarJhYzLAApayfHp4OIAgJcW7cXM3vZ0l8WvDGI1k292peudfySlrw" autocomplete="off" />
  <input type="hidden" name="conversation_id" autocomplete="off" />
  <div class="pub-composer__card" data-action="click->hub-public--hero#focusComposer">
    <div class="pub-composer__field">
      <svg class="ai-chat-ico--star shrink-0" xmlns="http://www.w3.org/2000/svg" width="24" height="24"
      viewBox="0 0 24 24" fill="none" aria-hidden="true">
  <path d="M19.6364 22.9091C19.6364 23.5116 19.1479 24 18.5455 24C17.943 24 17.4545 23.5116 17.4545 22.9091C17.4545 22.3066 17.943 21.8182 18.5455 21.8182C19.1479 21.8182 19.6364 22.3066 19.6364 22.9091Z" fill="url(#paint0_linear_3091_8257)"/>
  <path d="M24 18.5455C24 19.1479 23.5116 19.6364 22.9091 19.6364C22.3066 19.6364 21.8182 19.1479 21.8182 18.5455C21.8182 17.943 22.3066 17.4545 22.9091 17.4545C23.5116 17.4545 24 17.943 24 18.5455Z" fill="url(#paint1_linear_3091_8257)"/>
  <path d="M2.18182 5.45455C2.18182 6.05704 1.6934 6.54545 1.09091 6.54545C0.488417 6.54545 0 6.05704 0 5.45455C0 4.85205 0.488417 4.36364 1.09091 4.36364C1.6934 4.36364 2.18182 4.85205 2.18182 5.45455Z" fill="url(#paint2_linear_3091_8257)"/>
  <path d="M6.54545 1.09091C6.54545 1.6934 6.05704 2.18182 5.45455 2.18182C4.85205 2.18182 4.36364 1.6934 4.36364 1.09091C4.36364 0.488417 4.85205 0 5.45455 0C6.05704 0 6.54545 0.488417 6.54545 1.09091Z" fill="url(#paint3_linear_3091_8257)"/>
  <g class="star">
    <path fill-rule="evenodd" clip-rule="evenodd" d="M12 5.98136L11.2885 8.91553C11.0041 10.0884 10.0884 11.0041 8.91553 11.2885L5.98136 12L8.91553 12.7115C10.0884 12.9959 11.0041 13.9116 11.2885 15.0845L12 18.0186L12.7115 15.0845C12.9959 13.9116 13.9116 12.9959 15.0845 12.7115L18.0186 12L15.0845 11.2885C13.9116 11.0041 12.9959 10.0884 12.7115 8.91553L12 5.98136ZM13.4239 4.39261C13.0618 2.89943 10.9382 2.89943 10.5761 4.39262L9.57983 8.50121C9.45056 9.03432 9.03432 9.45056 8.50121 9.57983L4.39261 10.5761C2.89943 10.9382 2.89943 13.0618 4.39262 13.4239L8.50121 14.4202C9.03432 14.5494 9.45056 14.9657 9.57983 15.4988L10.5761 19.6074C10.9382 21.1006 13.0618 21.1006 13.4239 19.6074L14.4202 15.4988C14.5494 14.9657 14.9657 14.5494 15.4988 14.4202L19.6074 13.4239C21.1006 13.0618 21.1006 10.9382 19.6074 10.5761L15.4988 9.57983C14.9657 9.45056 14.5494 9.03432 14.4202 8.50121L13.4239 4.39261Z" fill="url(#paint4_linear_3091_8257)"/>
  </g>
  <path fill-rule="evenodd" clip-rule="evenodd" d="M8.73232 23.2524C8.54271 23.7604 7.97717 24.0185 7.46916 23.8289C4.17851 22.6007 1.53526 20.051 0.185165 16.8249C-0.0241665 16.3247 0.211637 15.7495 0.711845 15.5402C1.21205 15.3308 1.78725 15.5667 1.99658 16.0669C3.13768 18.7936 5.37441 20.9511 8.1558 21.9892C8.66381 22.1789 8.92193 22.7444 8.73232 23.2524Z" fill="url(#paint5_linear_3091_8257)"/>
  <path fill-rule="evenodd" clip-rule="evenodd" d="M23.2531 8.74993C22.7452 8.93993 22.1795 8.68225 21.9895 8.17439C20.9432 5.37768 18.7604 3.13169 16.0029 1.9991C15.5013 1.79308 15.2617 1.21946 15.4677 0.717879C15.6737 0.216296 16.2474 -0.0233107 16.7489 0.182703C20.0102 1.52218 22.5902 4.17597 23.8286 7.48633C24.0186 7.99419 23.761 8.55992 23.2531 8.74993Z" fill="url(#paint6_linear_3091_8257)"/>
  <defs>
    <linearGradient id="paint0_linear_3091_8257" x1="0" y1="12" x2="24" y2="12" gradientUnits="userSpaceOnUse">
      <stop stop-color="#7A28E2"/><stop offset="0.668269" stop-color="#C100B6"/><stop offset="1" stop-color="#FE4FF4"/>
    </linearGradient>
    <linearGradient id="paint1_linear_3091_8257" x1="0" y1="12" x2="24" y2="12" gradientUnits="userSpaceOnUse">
      <stop stop-color="#7A28E2"/><stop offset="0.668269" stop-color="#C100B6"/><stop offset="1" stop-color="#FE4FF4"/>
    </linearGradient>
    <linearGradient id="paint2_linear_3091_8257" x1="0" y1="12" x2="24" y2="12" gradientUnits="userSpaceOnUse">
      <stop stop-color="#7A28E2"/><stop offset="0.668269" stop-color="#C100B6"/><stop offset="1" stop-color="#FE4FF4"/>
    </linearGradient>
    <linearGradient id="paint3_linear_3091_8257" x1="0" y1="12" x2="24" y2="12" gradientUnits="userSpaceOnUse">
      <stop stop-color="#7A28E2"/><stop offset="0.668269" stop-color="#C100B6"/><stop offset="1" stop-color="#FE4FF4"/>
    </linearGradient>
    <linearGradient id="paint4_linear_3091_8257" x1="0" y1="12" x2="24" y2="12" gradientUnits="userSpaceOnUse">
      <stop stop-color="#7A28E2"/><stop offset="0.668269" stop-color="#C100B6"/><stop offset="1" stop-color="#FE4FF4"/>
    </linearGradient>
    <linearGradient id="paint5_linear_3091_8257" x1="0" y1="12" x2="24" y2="12" gradientUnits="userSpaceOnUse">
      <stop stop-color="#7A28E2"/><stop offset="0.668269" stop-color="#C100B6"/><stop offset="1" stop-color="#FE4FF4"/>
    </linearGradient>
    <linearGradient id="paint6_linear_3091_8257" x1="0" y1="12" x2="24" y2="12" gradientUnits="userSpaceOnUse">
      <stop stop-color="#7A28E2"/><stop offset="0.668269" stop-color="#C100B6"/><stop offset="1" stop-color="#FE4FF4"/>
    </linearGradient>
  </defs>
</svg>

      <textarea name="message[content]" id="message_content" rows="1" maxlength="2000" placeholder="Ask Venture Legend a question" class="pub-composer__input" aria-label="Message Ask a Venture Legend" data-controller="textarea-autogrow" data-dg-agent-composer-target="input" data-placeholder="Ask Venture Legend a question" data-action="keydown-&gt;dg-agent-composer#submitOnEnter input-&gt;dg-agent-composer#sync">
</textarea>
    </div>
    <div class="pub-composer__actions">
      <div class="pub-composer__left">
        
        <div data-controller="tooltip" data-tippy-content="No account needed. 25 messages free, then sign up to continue." data-tippy-delay="0" data-tippy-arrow="true" data-tippy-size="regular" data-tippy-animation="fade" data-tippy-touch-hold="false" class="" data-tippy-touch="true" data-tippy-trigger="mouseenter focus click">
          <button type="button" class="pub-composer__info" aria-label="About this conversation"><i class="ph-info"></i></button>
</div>        <button type="button" class="pub-composer__restart" data-action="click->hub-public--hero#exitChat"><i class="ph-arrow-counter-clockwise" aria-hidden="true"></i>Start over</button>
      </div>
      <button name="button" type="submit" class="pub-composer__send" disabled="disabled" aria-label="Send message" data-dg-agent-composer-target="submit">
        <i class="ph-arrow-up-bold" aria-hidden="true"></i>
</button>    </div>
  </div>
</form>
</div>
</template></turbo-stream>