17 lines
364 B
Go
17 lines
364 B
Go
package intent
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type IntentAgent interface {
|
|
Classify(ctx context.Context, message string) (string, error)
|
|
}
|
|
|
|
type passthroughAgent struct{}
|
|
|
|
func NewPassthrough() IntentAgent { return &passthroughAgent{} }
|
|
|
|
func (p *passthroughAgent) Classify(ctx context.Context, message string) (string, error) {
|
|
return "general_inquiry", nil
|
|
} |