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
Copy file name to clipboardExpand all lines: adminforth/documentation/docs/tutorial/08-Plugins/26-agent.md
+45-10Lines changed: 45 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
6
6
This plugin adds an AI agent with a chat surface to AdminForth which is capable of default skills like searching/editing data and extending with custom skills.
7
7
8
-
It stores session history in your own resources and uses any AdminForth completion adapter to generate responses.
8
+
It stores session history in your own resources and generates responses using one of the configured `modes`.
9
9
10
10
## Installation
11
11
@@ -21,7 +21,7 @@ Add your LLM credentials to `.env`:
21
21
OPENAI_API_KEY=your_key
22
22
```
23
23
24
-
You can replace the OpenAI adapter with any completion adapter from [List of adapters](/docs/tutorial/ListOfAdapters/).
24
+
Each mode accepts any AdminForth completion adapter, so you can replace the OpenAI adapter with another adapter from [List of adapters](/docs/tutorial/ListOfAdapters/).
25
25
26
26
## Setup
27
27
@@ -166,6 +166,8 @@ export const admin = new AdminForth({
166
166
167
167
Then attach the plugin once, usually to your `adminuser` resource:
168
168
169
+
Configure the plugin with `modes`. The legacy top-level `completionAdapter` setup is no longer used.
The plugin adds a chat surface to the admin UI and keeps session history per admin user.
241
+
Each item in `modes` defines a user-selectable preset in the chat UI. The selected mode is sent to the backend and the plugin uses that mode's `completionAdapter` for the response.
242
+
243
+
The plugin adds a chat surface to the admin UI, keeps session history per admin user, and shows a mode picker when `modes` are configured.
207
244
208
245
## Reverse proxy and CDN configuration for streaming
209
246
@@ -270,5 +307,3 @@ In skills markdown file, merge which tool exactlu agent should load.
0 commit comments