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

Function isRecord

apps/sim/providers/openai/utils.ts:155–157  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

153}
154
155function isRecord(value: unknown): value is Record<string, unknown> {
156 return typeof value === 'object' && value !== null
157}
158
159function extractTextFromMessageItem(item: unknown): string {
160 if (!isRecord(item)) {

Callers 3

extractResponseToolCallsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected