Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions docs/src/state.ts → docs/examples/state.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { createWorkflow } from "@llamaindex/workflow-core";
import { createWorkflow, workflowEvent } from "@llamaindex/workflow-core";
import { createStatefulMiddleware } from "@llamaindex/workflow-core/middleware/state";
import { workflowEvent } from "@llamaindex/workflow-core";

type MyWorkflowState = {
previous_message: string;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createWorkflow, workflowEvent } from "@llamaindex/workflow-core";
import {
withTraceEvents,
createHandlerDecorator,
withTraceEvents,
} from "@llamaindex/workflow-core/middleware/trace-events";

const startEvent = workflowEvent();
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"files": [
"workflows",
"src"
"examples"
],
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion docs/tests/branching.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, test } from "vitest";
import { workflow, inputEvent, successEvent } from "../src/branching";
import { inputEvent, successEvent, workflow } from "../examples/branching";

describe("Branching workflow should return expected results", () => {
test("Sending event with context1", async () => {
Expand Down
6 changes: 3 additions & 3 deletions docs/tests/fan_in_fan_out.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { describe, expect, test } from "vitest";
import {
workflow,
startEvent,
completeEvent,
processItemEvent,
resultEvent,
} from "../src/fan_in_fan_out";
startEvent,
workflow,
} from "../examples/fan_in_fan_out";

describe("Fan-In/Fan-Out workflow should stream expected events", () => {
test("Test Fan-In/Fan-Out e2e with streaming", async () => {
Expand Down
8 changes: 4 additions & 4 deletions docs/tests/human_in_the_loop.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { describe, expect, test } from "vitest";
import {
workflow,
startEvent,
stopEvent,
humanRequestEvent,
humanResponseEvent,
} from "../src/human_in_the_loop";
startEvent,
stopEvent,
workflow,
} from "../examples/human_in_the_loop";

describe("Human in the loop returns expected results", () => {
test("Test Human In The Loop e2e", async () => {
Expand Down
2 changes: 1 addition & 1 deletion docs/tests/loops.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, test } from "vitest";
import { workflow, startEvent, stopEvent } from "../src/loops";
import { startEvent, stopEvent, workflow } from "../examples/loops";

describe("Loops Workflow returns expected results", () => {
test("Test Loops Workflow e2e", async () => {
Expand Down
2 changes: 1 addition & 1 deletion docs/tests/state.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, test } from "vitest";
import { workflow, startEvent, stopEvent } from "../src/state";
import { startEvent, stopEvent, workflow } from "../examples/state";

describe("State Workflow returns expected results", () => {
test("Test State Workflow e2e", async () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"outDir": "./lib",
"tsBuildInfoFile": "./lib/.tsbuildinfo",
"paths": {
"@llamaindex/workflow-docs": ["./src/index.ts"]
"@llamaindex/workflow-docs": ["./examples/index.ts"]
}
},
"include": ["./src", "./workflows"]
"include": ["./examples", "./workflows"]
}
Loading