Class SqlChatPanelControl
Designer panel that lets the user chat with the Reportman AI agent to generate SQL from natural language, streaming the response and exposing the suggested SQL for the caller to apply.
Inheritance
SqlChatPanelControl
Implements
Inherited Members
Namespace: Reportman.Designer
Assembly: Reportman.Designer.dll
Syntax
public class SqlChatPanelControl : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
Constructors
View SourceSqlChatPanelControl()
Declaration
public SqlChatPanelControl()
Properties
View SourceCurrentSqlProvider
Declaration
[Browsable(false)]
public Func<Task<string>> CurrentSqlProvider { get; set; }
Property Value
| Type | Description |
|---|---|
| Func<Task<string>> |
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 currentSql, string initialAssistantMessage)
Parameters
| Type | Name | Description |
|---|---|---|
| string | currentSql | |
| string | initialAssistantMessage |
SetBaseConnectionContext(long, long, string, string)
Declaration
public void SetBaseConnectionContext(long hubDatabaseId, long hubSchemaId, string apiKey, string runtimeDb)
Parameters
| Type | Name | Description |
|---|---|---|
| long | hubDatabaseId | |
| long | hubSchemaId | |
| string | apiKey | |
| string | runtimeDb |
SetCurrentSql(string)
Declaration
public void SetCurrentSql(string sql)
Parameters
| Type | Name | Description |
|---|---|---|
| string | sql |
SetHubContext(long, long, string, string)
Declaration
public void SetHubContext(long hubDatabaseId, long hubSchemaId, string apiKey, string runtimeDb)
Parameters
| Type | Name | Description |
|---|---|---|
| long | hubDatabaseId | |
| long | hubSchemaId | |
| string | apiKey | |
| string | runtimeDb |
SetSelectedSchemaContext(long, long, string)
Declaration
public void SetSelectedSchemaContext(long hubDatabaseId, long hubSchemaId, string apiKey)
Parameters
| Type | Name | Description |
|---|---|---|
| long | hubDatabaseId | |
| long | hubSchemaId | |
| string | apiKey |
Events
View SourceApplySuggestion
Declaration
public event EventHandler<string> ApplySuggestion
Event Type
| Type | Description |
|---|---|
| EventHandler<string> |
SchemaContextChanged
Declaration
public event EventHandler<SqlSchemaContextChangedEventArgs> SchemaContextChanged
Event Type
| Type | Description |
|---|---|
| EventHandler<SqlSchemaContextChangedEventArgs> |