Files

13 lines
417 B
Go

package ai
import "context"
const InvalidCallMarker = "[INVALID_CALL]"
// Pipeline is the single AI turn boundary used by every call mode. The call
// flow does not know whether the implementation is mock, mixed, or real.
type Pipeline interface {
Synthesize(ctx context.Context, snapshot Snapshot, text string) ([]byte, error)
RunTurn(ctx context.Context, snapshot Snapshot, pcm16 []byte) (TurnResult, error)
}