Record
public record AiQuickAction : System.IEquatable<Moka.Blazor.AI.Models.AiQuickAction>
Namespace: Moka.Blazor.AI.Models
A configurable quick action button for the AI chat panel.
Inheritance
Implements: System.IEquatable<Moka.Blazor.AI.Models.AiQuickAction>
Constructors
| Name | Description |
|---|---|
AiQuickAction(…) |
A configurable quick action button for the AI chat panel. |
AiQuickAction(string Label, string Prompt, string? Tooltip)
AiQuickAction.AiQuickAction(string Label, string Prompt, string? Tooltip = null)
A configurable quick action button for the AI chat panel.
Parameters
| Name | Type | Description |
|---|---|---|
Label | string | Button display text (e.g., "Summarize"). |
Prompt | string | The prompt to send when clicked. |
Tooltip | string? | Optional tooltip text. |
Properties
| Name | Description |
|---|---|
Label |
Button display text (e.g., "Summarize"). |
Prompt |
The prompt to send when clicked. |
Tooltip |
Optional tooltip text. |
Label
string AiQuickAction.Label { get; init; }
Button display text (e.g., "Summarize").
Prompt
string AiQuickAction.Prompt { get; init; }
The prompt to send when clicked.
Tooltip
string? AiQuickAction.Tooltip { get; init; }
Optional tooltip text.
Type Relationships
classDiagram
style AiQuickAction fill:#f9f,stroke:#333,stroke-width:2px
AiQuickAction ..|> AiQuickAction~ : implements
View Source
/// <summary>
/// A configurable quick action button for the AI chat panel.
/// </summary>
/// <param name = "Label">Button display text (e.g., "Summarize").</param>
/// <param name = "Prompt">The prompt to send when clicked.</param>
/// <param name = "Tooltip">Optional tooltip text.</param>
public sealed record AiQuickAction(string Label, string Prompt, string? Tooltip = null);