MCPcopy Index your code
hub / github.com/simstudioai/sim / parseResources

Function parseResources

apps/sim/hooks/queries/mothership-chats.ts:135–139  ·  view source on GitHub ↗
(value: unknown, context: string)

Source from the content-addressed store, hash-verified

133}
134
135function parseResources(value: unknown, context: string): MothershipResource[] {
136 assertValid(Array.isArray(value), `${context} must be an array`)
137
138 return value.map((resource, index) => parseResource(resource, `${context}[${index}]`))
139}
140
141function parseStrictStreamSnapshot(
142 value: unknown,

Callers 2

parseChatHistoryFunction · 0.85

Calls 2

assertValidFunction · 0.85
parseResourceFunction · 0.85

Tested by

no test coverage detected