Skip to content

IVoiceSessionStore

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

Stores the summary record of real-time voice connections.

public interface IVoiceSessionStore

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.

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)

tenantId string

The tenant.

query VoiceSessionQuery

The filter.

cancellationToken CancellationToken

The cancellation token.

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)

record VoiceSessionRecord

The record.

cancellationToken CancellationToken

The cancellation token.

ValueTask

The completion task.