Documentation
¶
Overview ¶
Package voicemail detects whether an outbound call reached a person or a voicemail system. The Processor watches the LLM's classification output for a decision tag — <voicemail></voicemail> or <human></human> — and fires the matching callback, so the app can leave a message and hang up, or start the conversation. Drive it with an LLM prompted to emit one of those tags after hearing the first utterance. The decision tags are stripped from the output.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// OnVoicemailDetected is called when the classifier decides the call reached
// voicemail. It fires after VoicemailDelay.
OnVoicemailDetected func()
// OnConversationDetected is called when the classifier decides a person
// answered.
OnConversationDetected func()
// VoicemailDelay delays the voicemail callback — for example to let the
// greeting finish before leaving a message; 0 fires immediately.
VoicemailDelay time.Duration
}
Config configures a voicemail Processor.
Click to show internal directories.
Click to hide internal directories.