{#if embeds && Array.isArray(embeds) && embeds.length > 0}
{attributes.name}
{#each embeds as embed, idx}
{/each}
{:else}
{ open = !open; }} >
{#if isExecuting}
{/if}
{#if isDone} {:else} {/if}
{#if open} {:else} {/if}
{#if open}
{#if isDone} \`\`\`json > ${formatJSONString(args)} > ${formatJSONString(result)} > \`\`\``} /> {:else} \`\`\`json > ${formatJSONString(args)} > \`\`\``} /> {/if}
{/if} {/if} {#if isDone} {#if typeof files === 'object'} {#each files ?? [] as file, idx} {#if typeof file === 'string'} {#if file.startsWith('data:image/')} Image {/if} {:else if typeof file === 'object'} {#if (file.type === 'image' || (file?.content_type ?? '').startsWith('image/')) && file.url} Image {/if} {/if} {/each} {/if} {/if}