New to Telerik UI for Blazor? Download Free 30-day trial
LLM Kit - Tool Call Error
- EXAMPLE
- VIEW SOURCE
- EDIT IN TELERIK REPL
- Change Theme
meridian
- Tool-call-error.razor
Loading the demo source code...please wait.
Description
This demo shows how the TelerikToolCall component handles tool execution failures. When an agent tool returns an error — such as a network timeout, a missing resource, or an invalid response — the component transitions to the error state and surfaces a diagnostic message inline, keeping the agent workflow visible and debuggable.
Set State to ToolCallState.Error and provide an ErrorText string to display the default error card. Use ErrorTemplate to replace the default error rendering with custom markup, for example to add retry actions or structured error details.
This Blazor LLM Kit Tool Call Error example is part of a unique collection of hundreds of Blazor demos, with which you can see all Telerik UI for Blazor components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for Blazor or ThemeBuilder.