Blazor AIPrompt - Overview
- EXAMPLE
- VIEW SOURCE
- EDIT IN TELERIK REPL
- Change Theme
default
New E-mail
- Overview.razor
- AIPromptConstants.cs
The AIPrompt component is part of Telerik UI for Blazor, a professional grade UI library with 110+ native components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.
Description
Explore the Telerik UI for Blazor AI Prompt component demo page. This component helps integrating Large Language Model (LLM) technology into your application, adding artificial intelligence features.
The AI Prompt component includes three built-in views for interaction:
- Prompt View: A key area for user input, with a main input field for entering prompts, suggestions, and a button to submit requests to the LLM.
- Output View: Logs all previous interactions, showing prompts/commands, their results, and options to retry, copy, or rate each.
- Command View: Lets you create custom commands for use in your specific context or as independent queries to the AI.
The core of the AI Prompt component is its adaptability. Each view, including Prompt View, Output View, Command View, and Custom View, is highly customizable. You can change everything from button designs to the layout and footer template. While default settings offer a straightforward beginning, you can adjust any feature to suit your needs.
This current example demonstrates how the Telerik AI Prompt component can be combined with a text area, allowing for the direct transfer of output to the input field. This functionality enables dynamic execution of commands on selected text within the TextArea, customizing results for your requirements.