{#if toolFnName && toolFnName !== "websearch"}
{#each tool as toolUpdate} {#if toolUpdate.subtype === MessageToolUpdateType.Call}

Parameters

{:else if toolUpdate.subtype === MessageToolUpdateType.Error}

Error

{toolUpdate.message}

{:else if isMessageToolResultUpdate(toolUpdate) && toolUpdate.result.status === ToolResultStatus.Success && toolUpdate.result.display}

Result

    {#each toolUpdate.result.outputs as output} {#each Object.entries(output) as [k, v]} {#if v !== null}
  • {k}: {v}
  • {/if} {/each} {/each}
{/if} {/each}
{/if}