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

Function normalizeRunResult

internal/task/manager.go:2711–2718  ·  view source on GitHub ↗
(result RunResult)

Source from the content-addressed store, hash-verified

2709}
2710
2711func normalizeRunResult(result RunResult) (RunResult, error) {
2712 normalized := result
2713 normalized.Value = normalizeRawJSON(normalized.Value)
2714 if err := normalized.Validate("run_result"); err != nil {
2715 return RunResult{}, err
2716 }
2717 return normalized, nil
2718}
2719
2720func normalizeRunFailure(failure RunFailure) (RunFailure, error) {
2721 normalized := failure

Callers 1

CompleteRunMethod · 0.85

Calls 2

normalizeRawJSONFunction · 0.70
ValidateMethod · 0.65

Tested by

no test coverage detected