You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each provider is a separate sub-export with optional peer dependencies:
183
+
Each provider is a standalone package with optional third-party peer dependencies. They each expose `./ai` (main-thread shell) and `./ai-runtime` (worker / inline runtime):
-`@workglow/chrome-ai` — built-in Chrome / WebBrowser AI
194
+
195
+
Shared cloud-provider helpers (base classes, registration, model search, OpenAI-shape chat, image-output conversion, tool-call parsing) live in `@workglow/ai/provider-utils` and are imported by every vendor package.
193
196
194
197
**Important: `*_JobRunFns.ts` files execute inside workers.** Workers have an isolated runtime with a separate `globalServiceRegistry`. Do not access main-thread-only state (e.g., credential stores, service registries) from run functions. Instead, resolve such state in the task class on the main thread (e.g., `AiTask.getJobInput()`) and pass the resolved values through the serialized job input.
Copy file name to clipboardExpand all lines: docs/developers/01_getting_started.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@
17
17
-[`packages/job-queue`](#packagesjob-queue)
18
18
-[`packages/task-graph`](#packagestask-graph)
19
19
-[`packages/ai`](#packagesai)
20
-
-[`packages/ai-provider`](#packagesai-provider)
20
+
-[`providers/*`](#providers)
21
21
-[`packages/util`](#packagesutil)
22
22
-[`examples/cli`](#examplescli)
23
23
-[`examples/web`](#examplesweb)
@@ -559,9 +559,9 @@ This is the main task handling library, with tasks, compound tasks, data flows,
559
559
560
560
These are the LLM tasks, models, etc. These tasks are agnostic to the provider and thus are like abstract versions. AI providers contribute the concrete implementations. Which implementation is used is determined by the model repository.
561
561
562
-
### `packages/ai-provider`
562
+
### `providers/*`
563
563
564
-
This is the Huggingface Transformers JS (using ONNX) and TensorFlow MediaPipe providers.
564
+
Each AI provider lives in its own package under `providers/`: `@workglow/anthropic`, `@workglow/openai`, `@workglow/google-gemini`, `@workglow/ollama`, `@workglow/huggingface-transformers`, `@workglow/huggingface-inference`, `@workglow/node-llama-cpp`, `@workglow/tf-mediapipe`, and `@workglow/chrome-ai`. Each ships an `./ai` and `./ai-runtime` subpath. Shared helpers (cloud client base classes, registration utilities, OpenAI-shape chat plumbing) live in `@workglow/ai/provider-utils`. Non-AI vendor packages (Playwright, Electron, SQLite, Postgres, Supabase, bun-webview) also live under `providers/`.
0 commit comments