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

Function normalizeRetryRunRequest

internal/task/force_ops.go:578–584  ·  view source on GitHub ↗
(req RetryRunRequest)

Source from the content-addressed store, hash-verified

576}
577
578func normalizeRetryRunRequest(req RetryRunRequest) (RetryRunRequest, error) {
579 req.Metadata = normalizeRawJSON(req.Metadata)
580 if err := ValidateMetadataSize(req.Metadata, "retry_run.metadata"); err != nil {
581 return RetryRunRequest{}, err
582 }
583 return req, nil
584}
585
586func normalizeRecoverRunRequest(req RecoverRunRequest) (RecoverRunRequest, error) {
587 req.Reason = strings.TrimSpace(req.Reason)

Callers 1

RetryRunMethod · 0.85

Calls 2

ValidateMetadataSizeFunction · 0.85
normalizeRawJSONFunction · 0.70

Tested by

no test coverage detected