{#if toolFnName && toolFnName !== "websearch"}
{toolError ? "Error calling" : toolDone ? "Called" : "Calling"} tool {availableTools.find((tool) => tool.name === toolFnName)?.displayName ?? toolFnName}
{#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

{/if} {/each}
{/if}