Skip to content

Commit c91f62c

Browse files
authored
Merge pull request #467 from underctrl-io/twlite-patch-1
docs: add ai plugin architecture diagram
2 parents 5a093db + af979e9 commit c91f62c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

apps/website/docs/guide/05-official-plugins/01-commandkit-ai.mdx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,27 @@ This is an experimental feature and is subject to change.
1212

1313
:::
1414

15+
## Architecture Overview
16+
17+
The AI system consists of several key components:
18+
19+
```mermaid
20+
graph TD
21+
A[Discord Message] --> B[Message Filter]
22+
B --> C[AI Model Selection]
23+
C --> D[System Prompt Generation]
24+
D --> E[AI Processing]
25+
E --> F[Tool Execution]
26+
F --> G[Response Generation]
27+
G --> H[Discord Reply]
28+
29+
I[Built-in Tools] --> F
30+
J[Custom Tools] --> F
31+
K[AI Commands] --> F
32+
```
33+
34+
AI plugin basically acts as a smart command handler that decides which command to execute based on the given prompt. Similarly, the AI commands are basically an abstraction for tool calling feature of the large language models. This plugin uses the [ai sdk](https://ai-sdk.dev) under the hood to interact with large language models.
35+
1536
## Installation
1637

1738
Install the AI plugin and your preferred AI SDK:

0 commit comments

Comments
 (0)