{#if toolFnName}
{update.message}
{update.result.message}
{#each tool as update}
{#if update.subtype === MessageToolUpdateType.Call}
Parameters
{#each Object.entries(update.call.parameters ?? {}) as [key, value]}
{#if value != null}
{:else if update.subtype === MessageToolUpdateType.Error}
Error
Result
{#each update.result.outputs as output}
{#each Object.entries(output) as [key, value]}
{#if value != null}
{:else if isMessageToolResultUpdate(update) && update.result.status === ToolResultStatus.Error && update.result.display}
Error