mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-11-10 21:32:43 +08:00
23 lines
460 B
Go
23 lines
460 B
Go
//go:build !ee
|
|
|
|
package task
|
|
|
|
import "context"
|
|
|
|
type kcLLMProgressReporter interface {
|
|
begin(ctx context.Context) func()
|
|
report(ctx context.Context, message string)
|
|
}
|
|
|
|
type noopKCLLMProgressReporter struct{}
|
|
|
|
func newKCLLMProgressReporter() kcLLMProgressReporter {
|
|
return noopKCLLMProgressReporter{}
|
|
}
|
|
|
|
func (noopKCLLMProgressReporter) begin(context.Context) func() {
|
|
return func() {}
|
|
}
|
|
|
|
func (noopKCLLMProgressReporter) report(context.Context, string) {}
|