MCPcopy Create free account
hub / github.com/compozy/agh / normalizeStartRun

Function normalizeStartRun

internal/task/manager.go:2692–2699  ·  view source on GitHub ↗
(req StartRun)

Source from the content-addressed store, hash-verified

2690}
2691
2692func normalizeStartRun(req StartRun) (StartRun, error) {
2693 normalized := req
2694 normalized.IdempotencyKey = strings.TrimSpace(normalized.IdempotencyKey)
2695 if err := normalized.Validate("start_run"); err != nil {
2696 return StartRun{}, err
2697 }
2698 return normalized, nil
2699}
2700
2701func normalizeCancelRun(req CancelRun) (CancelRun, error) {
2702 normalized := req

Callers 1

StartRunMethod · 0.85

Calls 1

ValidateMethod · 0.65

Tested by

no test coverage detected