(popover.open = false))} {...popover.content} data-test-id={TEST_IDS.checkpoints_menu} >

Checkpoints

{#each projCheckpoints as checkpoint (checkpoint.id)} {@const conversations = checkpoint.conversations} {@const multiple = conversations.length > 1} {#snippet children(tooltip)}
{#if tooltip.open}
{#each conversations as conversation, i} {@const msgs = conversation.messages || []} {@const sliced = msgs.slice(0, 4)}

temp: {conversation.config.temperature} {#if conversation.config.max_tokens} | max tokens: {conversation.config.max_tokens} {/if} {#if conversation.structuredOutput?.enabled} | structured output {/if}

{#each iterate(sliced) as [msg, isLast]}

{msg.role}

{#if msg.content?.trim()}

{msg.content.trim()}

{:else}

No content

{/if}
{#if !isLast}
{/if} {/each}
{/each}
{/if} {/snippet}
{:else}
No checkpoints available
{/each}