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

Function asRecord

projects/runtime-node/src/agents.ts:198–200  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

196}
197
198function asRecord(value: unknown): Record<string, unknown> {
199 return typeof value === "object" && value !== null ? (value as Record<string, unknown>) : {}
200}
201
202function paramsError(path: string, message: string): RuntimeValidationResult<never> {
203 return { ok: false, error: { code: "invalid_params", message, path } }

Callers 9

requireRequestIdFunction · 0.70
approvalResponseFunction · 0.70
optionalThreadIdFunction · 0.70
threadGoalSetParamsFunction · 0.70
requiredStringFunction · 0.70
turnIdFromValueFunction · 0.70
threadIdFromValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected