MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / isRequestOptions

Function isRequestOptions

integrations/openai/src/taskUtils.ts:298–305  ·  view source on GitHub ↗
(obj: unknown)

Source from the content-addressed store, hash-verified

296};
297
298export const isRequestOptions = (obj: unknown): obj is OpenAIRequestOptions => {
299 return (
300 typeof obj === "object" &&
301 obj !== null &&
302 !isEmptyObj(obj) &&
303 Object.keys(obj).every((k) => hasOwn(requestOptionsKeys, k))
304 );
305};
306
307function isEmptyObj(obj: Object | null | undefined): boolean {
308 if (!obj) return true;

Callers 2

listMethod · 0.90
listMethod · 0.90

Calls 3

isEmptyObjFunction · 0.85
hasOwnFunction · 0.85
keysMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…