14 lines
519 B
Go
14 lines
519 B
Go
// Package summarize turns a transcript + system prompt into a markdown summary.
|
|
package summarize
|
|
|
|
import "context"
|
|
|
|
// Summarizer produces a markdown summary (or other generation) guided by
|
|
// systemPrompt and given the user-message body. The body is passed verbatim:
|
|
// callers are responsible for any framing like "Transcript:", "Producer's
|
|
// notes:", or timestamped segment formatting.
|
|
type Summarizer interface {
|
|
Summarize(ctx context.Context, systemPrompt, userContent string) (string, error)
|
|
Name() string
|
|
}
|