Class AISelectionControl
Replicates Delphi's TFRpAISelectionVCL: 3-column grid with Provider/Mode combos
and credit gauge, plus an inference progress mode with Stop/Tokens/Spinner.
Inheritance
AISelectionControl
Assembly: Reportman.Designer.dll
Syntax
public class AISelectionControl : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
Constructors
View Source
AISelectionControl()
Declaration
public AISelectionControl()
Properties
View Source
AgentAiId
Declaration
public long AgentAiId { get; }
Property Value
View Source
AgentEndpointCount
Declaration
public int AgentEndpointCount { get; }
Property Value
View Source
AgentSecret
Declaration
public string AgentSecret { get; }
Property Value
View Source
SelectedMode
Declaration
public string SelectedMode { get; }
Property Value
View Source
SelectedTier
Declaration
public string SelectedTier { get; }
Property Value
View Source
ShowGauge
Declaration
[Browsable(false)]
public bool ShowGauge { get; set; }
Property Value
Methods
View Source
AddAgentEndpoint(long, string, string, bool)
Add an agent endpoint to the Provider combo (only if online).
Declaration
public void AddAgentEndpoint(long agentAiId, string agentSecret, string displayName, bool isOnline)
Parameters
View Source
ClearAgentEndpoints()
Clear all agent endpoints from the Provider combo, keeping only Standard/Precision.
Declaration
public void ClearAgentEndpoints()
View Source
Dispose(bool)
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type |
Name |
Description |
| bool |
disposing |
|
Overrides
View Source
FinishProgressToken(string)
Declaration
public void FinishProgressToken(string progressId)
Parameters
| Type |
Name |
Description |
| string |
progressId |
|
View Source
RefreshCreditsFromAuth()
Refresh the credit gauge from RpAuthManager.
Declaration
public void RefreshCreditsFromAuth()
View Source
RefreshState()
Refresh auth state (credits gauge, etc).
Declaration
public void RefreshState()
View Source
RestoreProviderSelection(string, long)
Restore previous provider selection after reloading agents.
Declaration
public void RestoreProviderSelection(string selectedTier, long selectedAgentAiId)
Parameters
| Type |
Name |
Description |
| string |
selectedTier |
|
| long |
selectedAgentAiId |
|
View Source
SetCreditPercent(int)
Set credit gauge percentage (0-100).
Declaration
public void SetCreditPercent(int percent)
Parameters
| Type |
Name |
Description |
| int |
percent |
|
View Source
SetInferenceProgress(bool)
Switch between normal and inference-progress mode.
Declaration
public void SetInferenceProgress(bool inferring)
Parameters
| Type |
Name |
Description |
| bool |
inferring |
|
View Source
TouchProgressToken(string)
Declaration
public void TouchProgressToken(string progressId)
Parameters
| Type |
Name |
Description |
| string |
progressId |
|
View Source
UpdateTokens(int, int)
Update token counters during inference.
Declaration
public void UpdateTokens(int tokensIn, int tokensOut)
Parameters
| Type |
Name |
Description |
| int |
tokensIn |
|
| int |
tokensOut |
|
View Source
UpdateTokens(int, int, string, int)
Declaration
public void UpdateTokens(int tokensIn, int tokensOut, string progressId, int prefillPercent = 0)
Parameters
| Type |
Name |
Description |
| int |
tokensIn |
|
| int |
tokensOut |
|
| string |
progressId |
|
| int |
prefillPercent |
|
Events
View Source
StopRequested
Declaration
public event EventHandler StopRequested
Event Type
Implements