refactor(ai): rename llm package
This commit is contained in:
parent
b6ccb66610
commit
bb15b16499
238 changed files with 209 additions and 210 deletions
3
packages/ai/src/utils/record.ts
Normal file
3
packages/ai/src/utils/record.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
/** Plain-record narrowing. Excludes arrays so JSON object checks don't accept tuples as key/value bags. */
|
||||
export const isRecord = (value: unknown): value is Record<string, unknown> =>
|
||||
typeof value === "object" && value !== null && !Array.isArray(value)
|
||||
Loading…
Add table
Add a link
Reference in a new issue