Interface IRequestSourceService
- Namespace
- FoundationaLLM.Vectorization.Interfaces
- Assembly
- FoundationaLLM.Vectorization.Engine.dll
Manages vectorization requests.
public interface IRequestSourceService
- Extension Methods
Properties
SourceName
The name of the vectorization request source.
string SourceName { get; }
Property Value
Methods
DeleteRequest(string, string)
Removes a specified vectorization request from the source. This should happen when the request was successfully processed.
Task DeleteRequest(string messageId, string popReceipt)
Parameters
messageId
stringThe underlying message identifier of the request being removed.
popReceipt
stringThis value is required to delete the request.
Returns
HasRequests()
Indicates whether the source has pending requests.
Task<bool> HasRequests()
Returns
ReceiveRequests(int)
Receives the specified number of requests. The received requests will be invisible for other clients for a default timeout of 30 seconds. They should be removed from the source by calling DeleteRequest(string, string) before the timeout expires.
Task<IEnumerable<VectorizationDequeuedRequest>> ReceiveRequests(int count)
Parameters
count
intThe number of requests to receive.
Returns
- Task<IEnumerable<VectorizationDequeuedRequest>>
A collection of VectorizationDequeuedRequest items.
SubmitRequest(string)
Submits a new vectorization request to the source.
Task SubmitRequest(string requestName)
Parameters
requestName
stringThe name (unique identifier) of the vectorization request.