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
+73-12Lines changed: 73 additions & 12 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,17 +21,21 @@ 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
28
28
First create two resources for sessions and turns:
The plugin adds a chat surface to the admin UI and keeps session history per admin user.
267
+
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.
268
+
269
+
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
270
208
271
## Reverse proxy and CDN configuration for streaming
209
272
@@ -270,5 +333,3 @@ In skills markdown file, merge which tool exactlu agent should load.
0 commit comments