Add Seriatim normalize adapter support
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Package seriatim declares the adapter contract for transcript merge/trim execution.
|
||||
// Package seriatim declares the adapter contract for transcript merge/normalize/trim execution.
|
||||
package seriatim
|
||||
|
||||
import (
|
||||
@@ -6,9 +6,10 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// Runner is the adapter boundary for seriatim merge/trim invocations.
|
||||
// Runner is the adapter boundary for seriatim merge/normalize/trim invocations.
|
||||
type Runner interface {
|
||||
Run(ctx context.Context, req MergeRequest) (MergeResult, error)
|
||||
Normalize(ctx context.Context, req NormalizeRequest) (NormalizeResult, error)
|
||||
Trim(ctx context.Context, req TrimRequest) (TrimResult, error)
|
||||
}
|
||||
|
||||
@@ -38,6 +39,33 @@ type MergeResult struct {
|
||||
Metadata map[string]any
|
||||
}
|
||||
|
||||
// NormalizeRequest describes a seriatim normalize invocation.
|
||||
type NormalizeRequest struct {
|
||||
Binary string
|
||||
InputTranscriptPath string
|
||||
OutputNormalizedPath string
|
||||
OutputSchema string
|
||||
ReportPath string
|
||||
StdoutLogPath string
|
||||
StderrLogPath string
|
||||
GeneratedConfigPath string
|
||||
Timeout time.Duration
|
||||
}
|
||||
|
||||
// NormalizeResult describes a normalize output.
|
||||
type NormalizeResult struct {
|
||||
OutputNormalizedPath string
|
||||
ReportPath string
|
||||
StdoutLogPath string
|
||||
StderrLogPath string
|
||||
GeneratedConfigPath string
|
||||
ExitCode int
|
||||
Duration time.Duration
|
||||
InvokedBinary string
|
||||
OutputSchema string
|
||||
Metadata map[string]any
|
||||
}
|
||||
|
||||
// TrimRequest describes a seriatim trim invocation.
|
||||
type TrimRequest struct {
|
||||
Binary string
|
||||
|
||||
Reference in New Issue
Block a user