From c89d7bd98c76fffed4eefb14ae291648decb90dc Mon Sep 17 00:00:00 2001 From: Twilight <46562212+twlite@users.noreply.github.com> Date: Sun, 17 Aug 2025 07:52:16 +0545 Subject: [PATCH 1/2] docs: add ai plugin architecture diagram --- .../05-official-plugins/01-commandkit-ai.mdx | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/apps/website/docs/guide/05-official-plugins/01-commandkit-ai.mdx b/apps/website/docs/guide/05-official-plugins/01-commandkit-ai.mdx index 536cf244..13368086 100644 --- a/apps/website/docs/guide/05-official-plugins/01-commandkit-ai.mdx +++ b/apps/website/docs/guide/05-official-plugins/01-commandkit-ai.mdx @@ -12,6 +12,27 @@ This is an experimental feature and is subject to change. ::: +## Architecture Overview + +The AI system consists of several key components: + +```mermaid +graph TD + A[Discord Message] --> B[Message Filter] + B --> C[AI Model Selection] + C --> D[System Prompt Generation] + D --> E[AI Processing] + E --> F[Tool Execution] + F --> G[Response Generation] + G --> H[Discord Reply] + + I[Built-in Tools] --> F + J[Custom Tools] --> F + K[AI Commands] --> F +``` + +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. + ## Installation Install the AI plugin and your preferred AI SDK: From af979e9902014f0588b628b48b5c0c3ece071e28 Mon Sep 17 00:00:00 2001 From: Twilight <46562212+twlite@users.noreply.github.com> Date: Sun, 17 Aug 2025 07:53:09 +0545 Subject: [PATCH 2/2] Update apps/website/docs/guide/05-official-plugins/01-commandkit-ai.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../website/docs/guide/05-official-plugins/01-commandkit-ai.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/website/docs/guide/05-official-plugins/01-commandkit-ai.mdx b/apps/website/docs/guide/05-official-plugins/01-commandkit-ai.mdx index 13368086..813d5a3f 100644 --- a/apps/website/docs/guide/05-official-plugins/01-commandkit-ai.mdx +++ b/apps/website/docs/guide/05-official-plugins/01-commandkit-ai.mdx @@ -31,7 +31,7 @@ graph TD K[AI Commands] --> F ``` -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. +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. ## Installation