Class ExpressionChatPanelControl
Side panel that lets the user chat with the AI agent to generate, fix or explain a report expression, streaming the response and offering to apply the suggested expression.
Inheritance
ExpressionChatPanelControl
Implements
Inherited Members
Namespace: Reportman.Designer
Assembly: Reportman.Designer.dll
Syntax
public class ExpressionChatPanelControl : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
Constructors
View SourceExpressionChatPanelControl()
Declaration
public ExpressionChatPanelControl()
Properties
View SourceCurrentExpressionProvider
Declaration
[Browsable(false)]
public Func<string> CurrentExpressionProvider { get; set; }
Property Value
| Type | Description |
|---|---|
| Func<string> |
CursorPositionProvider
Declaration
[Browsable(false)]
public Func<int> CursorPositionProvider { get; set; }
Property Value
| Type | Description |
|---|---|
| Func<int> |
SemanticContextProvider
Declaration
[Browsable(false)]
public Func<string> SemanticContextProvider { get; set; }
Property Value
| Type | Description |
|---|---|
| Func<string> |
ValidateExpression
Declaration
[Browsable(false)]
public ExpressionChatPanelControl.ValidateExpressionHandler ValidateExpression { get; set; }
Property Value
| Type | Description |
|---|---|
| ExpressionChatPanelControl.ValidateExpressionHandler |
Methods
View SourceDispose(bool)
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
Overrides
View SourceInitialize(string, string)
Declaration
public void Initialize(string currentExpression, string initialAssistantMessage)
Parameters
| Type | Name | Description |
|---|---|---|
| string | currentExpression | |
| string | initialAssistantMessage |
SetCurrentExpression(string)
Declaration
public void SetCurrentExpression(string expression)
Parameters
| Type | Name | Description |
|---|---|---|
| string | expression |
Events
View SourceApplySuggestion
Declaration
public event EventHandler<string> ApplySuggestion
Event Type
| Type | Description |
|---|---|
| EventHandler<string> |