Documentation
¶
Overview ¶
Package callmanager orchestrates voice calls using the omnivoice stack.
Index ¶
- type CallState
- type ConversationTurn
- type Manager
- func (m *Manager) Close() error
- func (m *Manager) ContinueCall(ctx context.Context, callID, message string) (string, error)
- func (m *Manager) EndCall(ctx context.Context, callID, message string) (time.Duration, error)
- func (m *Manager) GetCall(callID string) *CallState
- func (m *Manager) Initialize(publicURL string) error
- func (m *Manager) InitiateCall(ctx context.Context, message string) (*CallState, string, error)
- func (m *Manager) SpeakToUser(ctx context.Context, callID, message string) error
- func (m *Manager) Transport() interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallState ¶
type CallState struct {
ID string
Call callsystem.Call
StartTime time.Time
Conversation []ConversationTurn
LastUserMessage string
// contains filtered or unexported fields
}
CallState represents the state of an active call.
type ConversationTurn ¶
type ConversationTurn struct {
Role string // "assistant" or "user"
Content string
Timestamp time.Time
}
ConversationTurn represents a single turn in the conversation.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager orchestrates voice calls using the omnivoice stack.
func (*Manager) ContinueCall ¶
ContinueCall continues an existing call with a new message.
func (*Manager) Initialize ¶
Initialize sets up the omnivoice providers. Call this after ngrok is started and publicURL is known.
func (*Manager) InitiateCall ¶
InitiateCall starts a new call to the user and speaks a message.
func (*Manager) SpeakToUser ¶
SpeakToUser speaks to the user without waiting for a response.
Click to show internal directories.
Click to hide internal directories.