Interface IAIConsentService
- Namespace
- TabularEditor.Shared.Contracts.AI
- Assembly
- TabularEditor3.Shared.dll
Service for managing user consent for AI data sharing.
public interface IAIConsentService
- Extension Methods
Methods
CheckOrRequestConsentAsync(ConsentType, string)
Checks if consent is already granted for the specified type, or requests it from the user.
Task<ConsentResult> CheckOrRequestConsentAsync(ConsentType consentType, string context)
Parameters
| Type | Name | Description |
|---|---|---|
| ConsentType | consentType | The type of data being shared. |
| string | context | A description of what data will be shared (for the consent dialog). |
Returns
| Type | Description |
|---|---|
| Task<ConsentResult> | The consent result. |
ClearTurnConsent()
Clears turn-scoped consents. Call this when a turn completes so that one-time ("Allow") consents do not carry over to the next turn.
void ClearTurnConsent()