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

Function paramsError

projects/runtime-node/src/agents.ts:202–204  ·  view source on GitHub ↗
(path: string, message: string)

Source from the content-addressed store, hash-verified

200}
201
202function paramsError(path: string, message: string): RuntimeValidationResult<never> {
203 return { ok: false, error: { code: "invalid_params", message, path } }
204}
205
206function validateRecordParams(params: unknown): RuntimeValidationResult<Record<string, unknown>> {
207 if (typeof params !== "object" || params === null || Array.isArray(params)) return paramsError("$", "Runtime params must be an object")

Callers 5

validateRecordParamsFunction · 0.70
validateStringParamsFunction · 0.70
validateRequestIdParamsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected