MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / validateRuntimeIdParams

Function validateRuntimeIdParams

projects/runtime-protocol/src/protocol.ts:626–632  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

624}
625
626export function validateRuntimeIdParams(value: unknown): RuntimeValidationResult<RuntimeIdParams> {
627 const record = paramsRecord(value)
628 if (!record.ok) return record
629 const runtimeId = requiredString(record.value, "runtimeId")
630 if (!runtimeId.ok) return runtimeId
631 return { ok: true, value: { runtimeId: runtimeId.value } }
632}
633
634export function validateRuntimeStopParams(value: unknown): RuntimeValidationResult<RuntimeStopParams> {
635 const record = paramsRecord(value)

Callers

nothing calls this directly

Calls 2

paramsRecordFunction · 0.70
requiredStringFunction · 0.70

Tested by

no test coverage detected