2026-04-09 10:01:23 +08:00
|
|
|
package chunk
|
|
|
|
|
|
|
|
|
|
import (
|
2026-05-31 18:43:48 +08:00
|
|
|
"agent-desk/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)
|
|
|
|
|
}
|