Class AICopilotManager
Singleton that tracks the AI copilot's busy ("thinking") state, guards report
modifications while inference is running, and wraps AI-driven changes so they can
be grouped into the designer's undo/redo history.
Inheritance
AICopilotManager
Assembly: Reportman.Designer.dll
Syntax
public class AICopilotManager
Fields
View Source
OnCancelRequested
Declaration
public Action OnCancelRequested
Field Value
Properties
View Source
Instance
Declaration
public static AICopilotManager Instance { get; }
Property Value
View Source
IsThinking
Declaration
public bool IsThinking { get; }
Property Value
Methods
View Source
ApplyAIMacro(string, Action)
Wraps an AI modification so that it can be correctly logged into the Undo/Redo buffer of Reportman.
Declaration
public void ApplyAIMacro(string description, Action modifyAction)
Parameters
| Type |
Name |
Description |
| string |
description |
|
| Action |
modifyAction |
|
View Source
BeginInference()
Declaration
public void BeginInference()
View Source
Checks if a modification to the report is allowed.
If the AI is thinking, prompts the user to cancel the AI task.
Declaration
public bool CheckModificationAllowed(IWin32Window owner)
Parameters
Returns
| Type |
Description |
| bool |
True if the modification can proceed, False if it is blocked.
|
View Source
EndInference()
Declaration
public void EndInference()
Events
View Source
ThinkingStateChanged
Declaration
public event EventHandler ThinkingStateChanged
Event Type