New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI messages TagHelper AIPromptMessagesSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("messages", ParentTag = "kendo-aiprompt", TagStructure = TagStructure.WithoutEndTag)]
[HtmlTargetElement("messages", ParentTag = "ai-assistant", TagStructure = TagStructure.WithoutEndTag)]
[SuppressTagRendering]
public class AIPromptMessagesSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperChildBaseAIPromptMessagesSettingsTagHelper

Implements: ITagHelperITagHelperComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@addTagHelper *, Kendo.Mvc

<kendo-aiprompt name="aiprompt">
    <messages commands-view="View Commands" />
</kendo-aiprompt>

Constructors

Initializes a new instance of the AIPromptMessagesSettingsTagHelper class.

C#
public AIPromptMessagesSettingsTagHelper()

Properties

The text of the commands view button in the ToolBar.

C#
public string CommandsView { get; set; }

The text of the copy output button in the output element.

C#
public string CopyOutput { get; set; }

The text of the custom view button in the ToolBar.

C#
public string CustomView { get; set; }

The text of the generate output button in the prompt view footer.

C#
public string GenerateOutput { get; set; }

The title of the output card when the output is generated after clicking the retry button of an output.

C#
public string OutputRetryTitle { get; set; }

The title of the output card when the output is generated.

C#
public string OutputTitle { get; set; }

The text of the output view button in the ToolBar.

C#
public string OutputView { get; set; }

The placeholder text of the textarea input of the prompt view.

C#
public string PromptPlaceholder { get; set; }

The text of the prompt suggestions toggle button in the prompt view.

C#
public string PromptSuggestions { get; set; }

The text of the prompt view button in the ToolBar.

C#
public string PromptView { get; set; }

The text of the negative rating button in the output card.

C#
public string RateNegative { get; set; }

The text of the positive rating button in the output card.

C#
public string RatePositive { get; set; }

The text of the retry generation button in the output card.

C#
public string RetryGeneration { get; set; }

The aria-label and title of the stop generation button that appears during streaming operations.

C#
public string StopGeneration { get; set; }

Methods

Adds the current TagHelper instance to its parent TagHelper.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

The TagHelper context.

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>