Interface IGatekeeperAPIService
- Namespace
- FoundationaLLM.Core.Interfaces
- Assembly
- FoundationaLLM.Core.dll
Contains methods for interacting with the Gatekeeper API.
public interface IGatekeeperAPIService
- Extension Methods
Methods
AddMemory(object, string, Action<object, float[]>)
Adds the entity to the orchestrator's memory used by the RAG service.
Task AddMemory(object item, string itemName, Action<object, float[]> vectorizer)
Parameters
item
objectThe entity to add to memory.
itemName
stringThe type name of the entity.
vectorizer
Action<object, float[]>The embedded entity and its vector.
Returns
GetCompletion(string, CompletionRequest)
Requests a completion from the downstream APIs via the Gatekeeper API.
Task<CompletionResponse> GetCompletion(string instanceId, CompletionRequest completionRequest)
Parameters
instanceId
stringThe FoundationaLLM instance id.
completionRequest
CompletionRequestThe completion request object.
Returns
RemoveMemory(object)
Removes the entity from the orchestrator's memory used by the RAG service.
Task RemoveMemory(object item)
Parameters
item
objectThe entity to remove from memory.