IVoiceSessionStore
Namespace AgentPrism · Assembly
AgentPrism.Abstractions.dllStores the summary record of real-time voice connections.
public interface IVoiceSessionStoreRemarks
Section titled “Remarks”The store is for observability and does not break functionality: a write error does not interrupt the conversation, it is only logged.
The contract lives in AgentPrism.Abstractions because the HTTP
layer sees these types while serving the voice endpoints.
Methods
Section titled “Methods”QueryAsync(string, VoiceSessionQuery, CancellationToken)
Section titled “ QueryAsync(string, VoiceSessionQuery, CancellationToken)”Lists a tenant’s voice session records, newest first.
ValueTask<IReadOnlyList<VoiceSessionRecord>> QueryAsync(string tenantId, VoiceSessionQuery query, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”tenantId string
The tenant.
query VoiceSessionQuery
The filter.
cancellationToken CancellationToken
The cancellation token.
Returns
Section titled “Returns”ValueTask<IReadOnlyList<VoiceSessionRecord>>
The records.
SaveAsync(VoiceSessionRecord, CancellationToken)
Section titled “ SaveAsync(VoiceSessionRecord, CancellationToken)”Adds or updates a voice session record.
ValueTask SaveAsync(VoiceSessionRecord record, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”record VoiceSessionRecord
The record.
cancellationToken CancellationToken
The cancellation token.
Returns
Section titled “Returns”The completion task.