- Runde {ls.loopIndex + 1}
- {ls.toolName}({JSON.stringify(ls.params)})
+ {m.role}
+ {#if m.toolCalls && m.toolCalls.length > 0}
+ tool_calls: {m.toolCalls.map((c) => c.name).join(', ')}
+ {:else if m.toolCallId}
+ tool_result (id: {m.toolCallId})
+ {:else}
+ {typeof m.content === 'string' ? m.content.slice(0, 100) : ''}
+ {/if}
- {ls.outputPreview}
+ {#if m.content}
+ {m.content}
+ {/if}
+ {#if m.toolCalls && m.toolCalls.length > 0}
+ {#each m.toolCalls as call (call.id)}
+ {call.name}({JSON.stringify(call.arguments, null, 2)})
+ {/each}
+ {/if}
{/each}