Skip to content
Snippets Groups Projects
Unverified Commit 1b6263e0 authored by Alex Yang's avatar Alex Yang Committed by GitHub
Browse files

fix: export schema in top level (#1112)

parent 089f1d49
No related branches found
No related tags found
No related merge requests found
import type { AgentEndEvent, AgentStartEvent } from "./agent/types.js"; import type { AgentEndEvent, AgentStartEvent } from "./agent/types.js";
import type { RetrievalEndEvent, RetrievalStartEvent } from "./llm/types.js"; import type { RetrievalEndEvent, RetrievalStartEvent } from "./llm/types.js";
export * from "@llamaindex/core/schema";
declare module "@llamaindex/core/global" { declare module "@llamaindex/core/global" {
export interface LlamaIndexEventMaps { export interface LlamaIndexEventMaps {
"retrieve-start": RetrievalStartEvent; "retrieve-start": RetrievalStartEvent;
......
import { expect, test } from "vitest";
test("Node classes should be included in the top level", async () => {
const { Document, IndexNode, TextNode, BaseNode } = await import(
"llamaindex"
);
expect(Document).toBeDefined();
expect(IndexNode).toBeDefined();
expect(TextNode).toBeDefined();
expect(BaseNode).toBeDefined();
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment