Files
sub2api/backend/internal/pkg/websearch/provider.go
T

12 lines
337 B
Go
Raw Normal View History

package websearch
import "context"
// Provider is the interface every search backend must implement.
type Provider interface {
// Name returns the provider identifier ("brave" or "tavily").
Name() string
// Search executes a web search and returns results.
Search(ctx context.Context, req SearchRequest) (*SearchResponse, error)
}