(value: unknown)
| 632 | } |
| 633 | |
| 634 | export function validateRuntimeStopParams(value: unknown): RuntimeValidationResult<RuntimeStopParams> { |
| 635 | const record = paramsRecord(value) |
| 636 | if (!record.ok) return record |
| 637 | const runtimeId = requiredString(record.value, "runtimeId") |
| 638 | if (!runtimeId.ok) return runtimeId |
| 639 | const reason = optionalString(record.value, "reason") |
| 640 | if (!reason.ok) return reason |
| 641 | return { |
| 642 | ok: true, |
| 643 | value: { |
| 644 | runtimeId: runtimeId.value, |
| 645 | ...(reason.value !== undefined ? { reason: reason.value } : {}), |
| 646 | }, |
| 647 | } |
| 648 | } |
| 649 | |
| 650 | export function validateAgentProviderIdParams(value: unknown): RuntimeValidationResult<AgentProviderIdParams> { |
| 651 | const record = paramsRecord(value) |
nothing calls this directly
no test coverage detected