Partial support for agent dispatch management (#2872)
- Store agent dispaches independently of room agents on rtc.Room - Serialize agent dispatches in rtc.Room - Support for agent dispatch and job serialization in redis The agent Job object references denormalized Room and ParticipantInfo object. When storing Jobs, this sets the Room to nil, and only stores the Participant identity field. When read back, these fields need to be set to their current value.
This commit is contained in:
@@ -95,3 +95,13 @@ type SIPStore interface {
|
||||
ListSIPDispatchRule(ctx context.Context) ([]*livekit.SIPDispatchRuleInfo, error)
|
||||
DeleteSIPDispatchRule(ctx context.Context, info *livekit.SIPDispatchRuleInfo) error
|
||||
}
|
||||
|
||||
//counterfeiter:generate . AgentStore
|
||||
type AgentStore interface {
|
||||
StoreAgentDispatch(ctx context.Context, dispatch *livekit.AgentDispatch) error
|
||||
DeleteAgentDispatch(ctx context.Context, dispatch *livekit.AgentDispatch) error
|
||||
ListAgentDispatches(ctx context.Context, roomName livekit.RoomName) ([]*livekit.AgentDispatch, error)
|
||||
|
||||
StoreAgentJob(ctx context.Context, job *livekit.Job) error
|
||||
DeleteAgentJob(ctx context.Context, job *livekit.Job) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user