@llamaindex/core
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -165,2 +165,3 @@ import { z } from 'zod'; | ||
declare const anyFunctionSchema: z.ZodFunction<z.ZodTuple<[], z.ZodAny>, z.ZodAny>; | ||
declare const toolMetadataSchema: z.ZodObject<{ | ||
@@ -180,3 +181,3 @@ description: z.ZodString; | ||
declare const baseToolSchema: z.ZodObject<{ | ||
call: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>; | ||
call: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodAny>, z.ZodAny>>; | ||
metadata: z.ZodObject<{ | ||
@@ -201,3 +202,3 @@ description: z.ZodString; | ||
}; | ||
call?: ((...args: unknown[]) => unknown) | undefined; | ||
call?: ((...args: any[]) => any) | undefined; | ||
}, { | ||
@@ -209,6 +210,6 @@ metadata: { | ||
}; | ||
call?: ((...args: unknown[]) => unknown) | undefined; | ||
call?: ((...args: any[]) => any) | undefined; | ||
}>; | ||
declare const baseToolWithCallSchema: z.ZodObject<z.objectUtil.extendShape<{ | ||
call: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>; | ||
call: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodAny>, z.ZodAny>>; | ||
metadata: z.ZodObject<{ | ||
@@ -245,2 +246,2 @@ description: z.ZodString; | ||
export { BaseNode, type BaseNodeParams, Document, ImageDocument, ImageNode, type ImageNodeParams, type ImageType, IndexNode, type IndexNodeParams, type Metadata, MetadataMode, ModalityType, NodeRelationship, type NodeWithScore, ObjectType, type RelatedNodeInfo, type RelatedNodeType, TextNode, type TextNodeParams, baseToolSchema, baseToolWithCallSchema, jsonToNode, splitNodesByType, toolMetadataSchema }; | ||
export { BaseNode, type BaseNodeParams, Document, ImageDocument, ImageNode, type ImageNodeParams, type ImageType, IndexNode, type IndexNodeParams, type Metadata, MetadataMode, ModalityType, NodeRelationship, type NodeWithScore, ObjectType, type RelatedNodeInfo, type RelatedNodeType, TextNode, type TextNodeParams, anyFunctionSchema, baseToolSchema, baseToolWithCallSchema, jsonToNode, splitNodesByType, toolMetadataSchema }; |
@@ -689,2 +689,3 @@ import { randomUUID, createSHA256, path } from '@llamaindex/env'; | ||
const anyFunctionSchema = z.function(z.tuple([]).rest(z.any()), z.any()); | ||
const toolMetadataSchema = z.object({ | ||
@@ -696,3 +697,3 @@ description: z.string(), | ||
const baseToolSchema = z.object({ | ||
call: z.optional(z.function()), | ||
call: anyFunctionSchema.optional(), | ||
metadata: toolMetadataSchema | ||
@@ -704,2 +705,2 @@ }); | ||
export { BaseNode, Document, ImageDocument, ImageNode, IndexNode, MetadataMode, ModalityType, NodeRelationship, ObjectType, TextNode, baseToolSchema, baseToolWithCallSchema, jsonToNode, splitNodesByType, toolMetadataSchema }; | ||
export { BaseNode, Document, ImageDocument, ImageNode, IndexNode, MetadataMode, ModalityType, NodeRelationship, ObjectType, TextNode, anyFunctionSchema, baseToolSchema, baseToolWithCallSchema, jsonToNode, splitNodesByType, toolMetadataSchema }; |
{ | ||
"name": "@llamaindex/core", | ||
"type": "module", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "LlamaIndex Core Module", | ||
"exports": { | ||
"./llms": { | ||
"require": { | ||
"types": "./dist/llms/index.d.cts", | ||
"default": "./dist/llms/index.cjs" | ||
}, | ||
"import": { | ||
"types": "./dist/llms/index.d.ts", | ||
"default": "./dist/llms/index.js" | ||
}, | ||
"default": { | ||
"types": "./dist/llms/index.d.ts", | ||
"default": "./dist/llms/index.js" | ||
} | ||
}, | ||
"./decorator": { | ||
@@ -59,2 +73,3 @@ "require": { | ||
"devDependencies": { | ||
"ajv": "^8.16.0", | ||
"bunchee": "^5.2.1" | ||
@@ -65,3 +80,3 @@ }, | ||
"zod": "^3.23.8", | ||
"@llamaindex/env": "0.1.7" | ||
"@llamaindex/env": "0.1.8" | ||
}, | ||
@@ -68,0 +83,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
92282
18
2042
0
2
+ Added@llamaindex/env@0.1.8(transitive)
- Removed@llamaindex/env@0.1.7(transitive)
Updated@llamaindex/env@0.1.8