Class GatekeeperIntegrationAPIService
- Namespace
- FoundationaLLM.Gatekeeper.Core.Services
- Assembly
- FoundationaLLM.Gatekeeper.Core.dll
Contains methods for interacting with the Gatekeeper API.
public class GatekeeperIntegrationAPIService : IGatekeeperIntegrationAPIService
- Inheritance
-
GatekeeperIntegrationAPIService
- Implements
- Inherited Members
- Extension Methods
Constructors
GatekeeperIntegrationAPIService(IOrchestrationContext, IHttpClientFactoryService)
Initializes a new instance of the GatekeeperIntegrationAPIService class.
public GatekeeperIntegrationAPIService(IOrchestrationContext callContext, IHttpClientFactoryService httpClientFactoryService)
Parameters
callContextIOrchestrationContextStores context information extracted from the current HTTP request. This information is primarily used to inject HTTP headers into downstream HTTP calls.
httpClientFactoryServiceIHttpClientFactoryServiceThe IHttpClientFactoryService used to retrieve an HttpClient instance that contains required headers for Gatekeeper Integration API requests.
Methods
AnalyzeText(string)
Analyze text to identify PII (personally identifiable information) entities.
public Task<List<PIIResult>> AnalyzeText(string text)
Parameters
textstringThe input text.
Returns
- Task<List<PIIResult>>
A list of PII (personally identifiable information) entities identified in the analyzed text.
AnonymizeText(string)
Anonymize text with identified PII (personally identifiable information) entities.
public Task<string> AnonymizeText(string text)
Parameters
textstringThe input text.