2026-04-09 10:01:23 +08:00
|
|
|
package chunk
|
|
|
|
|
|
|
|
|
|
import (
|
2026-08-21 00:41:07 +08:00
|
|
|
"code.tczkiot.com/wlw/ai-agent/internal/pkg/enums"
|
2026-04-09 10:01:23 +08:00
|
|
|
"context"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Provider interface {
|
|
|
|
|
Name() string
|
|
|
|
|
Supports(contentType enums.KnowledgeDocumentContentType) bool
|
|
|
|
|
Chunk(ctx context.Context, req *ChunkRequest) ([]ChunkResult, error)
|
|
|
|
|
}
|