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
-`node_modules/chat/docs/api/chat.mdx` — exact `Chat` API
41
42
-`node_modules/chat/docs/api/thread.mdx` — exact `Thread` API
@@ -44,6 +45,16 @@ Read these before writing code:
44
45
45
46
For the specific adapter or state package you are using, inspect that installed package's `dist/index.d.ts` export surface in `node_modules`.
46
47
48
+
## Adapter catalog subpath
49
+
50
+
Chat SDK exposes a zero-dependency static catalog at `chat/adapters`. Agents can import `ADAPTERS`, `ADAPTER_NAMES`, `getAdapter`, `isAdapterSlug`, `listEnvVars`, `getSecretEnvVars`, and metadata types like `CatalogAdapter` and `AdapterSlug` from this subpath without importing any adapter implementation package.
51
+
52
+
Use it for:
53
+
- Listing official and vendor-official adapter slugs, names, npm packages, groups, and platform vs state types.
54
+
- Building setup or onboarding flows that need package names, peer dependencies, and install guidance before any adapter is installed.
55
+
- Discovering required, optional, and credential-mode environment variables for an adapter, including which variables are secrets.
56
+
- Keeping vendor-official adapter docs and metadata aligned with the catalog when adding or updating a listed adapter.
Tailwind Variants uses `tailwind-merge` under the hood — conflicting classes are resolved automatically.
207
207
208
-
### `UTheme` (scoped overrides)
208
+
### Replace instead of merge
209
+
210
+
Classes from the `ui` prop, the `class` prop, and global config are merged onto the component defaults. To replace a slot's defaults entirely instead, set it to a function in the `ui` prop or global config. It receives the resolved default classes as its argument, so you can reuse part of them.
0 commit comments