Files
Memoh/assets/cli_bot.md.BnhEB6FG.js
T
2026-02-25 07:57:19 +00:00

2 lines
7.2 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{_ as a,o as e,c as s,ag as i}from"./chunks/framework.ePeAWSvT.js";const b=JSON.parse('{"title":"Bot Commands","description":"","frontmatter":{},"headers":[],"relativePath":"cli/bot.md","filePath":"cli/bot.md","lastUpdated":1771161622000}'),d={name:"cli/bot.md"};function o(h,t,l,n,p,r){return e(),s("div",null,[...t[0]||(t[0]=[i('<h1 id="bot-commands" tabindex="-1">Bot Commands <a class="header-anchor" href="#bot-commands" aria-label="Permalink to &quot;Bot Commands&quot;"></a></h1><p>Manage bots and chat with them.</p><h2 id="bot-list" tabindex="-1">bot list <a class="header-anchor" href="#bot-list" aria-label="Permalink to &quot;bot list&quot;"></a></h2><p>List all bots. Admins can filter by owner.</p><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">memoh</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> bot</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> list</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> [options]</span></span></code></pre></div><table tabindex="0"><thead><tr><th>Option</th><th>Description</th></tr></thead><tbody><tr><td><code>--owner &lt;user_id&gt;</code></td><td>Filter by owner user ID (admin only)</td></tr></tbody></table><h2 id="bot-create" tabindex="-1">bot create <a class="header-anchor" href="#bot-create" aria-label="Permalink to &quot;bot create&quot;"></a></h2><p>Create a new bot. Prompts for type and optionally name.</p><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">memoh</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> bot</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> create</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> [options]</span></span></code></pre></div><table tabindex="0"><thead><tr><th>Option</th><th>Description</th></tr></thead><tbody><tr><td><code>--type &lt;type&gt;</code></td><td><code>personal</code> or <code>public</code></td></tr><tr><td><code>--name &lt;name&gt;</code></td><td>Display name</td></tr><tr><td><code>--avatar &lt;url&gt;</code></td><td>Avatar URL</td></tr><tr><td><code>--active</code></td><td>Set bot active</td></tr><tr><td><code>--inactive</code></td><td>Set bot inactive</td></tr></tbody></table><h2 id="bot-update" tabindex="-1">bot update <a class="header-anchor" href="#bot-update" aria-label="Permalink to &quot;bot update&quot;"></a></h2><p>Update bot info. Bot ID can be passed as argument or selected interactively.</p><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">memoh</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> bot</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> update</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> [id] [options]</span></span></code></pre></div><table tabindex="0"><thead><tr><th>Option</th><th>Description</th></tr></thead><tbody><tr><td><code>--name &lt;name&gt;</code></td><td>Display name</td></tr><tr><td><code>--avatar &lt;url&gt;</code></td><td>Avatar URL</td></tr><tr><td><code>--active</code></td><td>Set bot active</td></tr><tr><td><code>--inactive</code></td><td>Set bot inactive</td></tr></tbody></table><h2 id="bot-delete" tabindex="-1">bot delete <a class="header-anchor" href="#bot-delete" aria-label="Permalink to &quot;bot delete&quot;"></a></h2><p>Delete a bot. Asks for confirmation.</p><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">memoh</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> bot</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> delete</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> [id]</span></span></code></pre></div><h2 id="bot-chat" tabindex="-1">bot chat <a class="header-anchor" href="#bot-chat" aria-label="Permalink to &quot;bot chat&quot;"></a></h2><p>Start an interactive streaming chat with a bot.</p><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">memoh</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> bot</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> chat</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> [id]</span></span></code></pre></div><p>Type messages and press Enter. Type <code>exit</code> to quit.</p><h2 id="bot-set-model" tabindex="-1">bot set-model <a class="header-anchor" href="#bot-set-model" aria-label="Permalink to &quot;bot set-model&quot;"></a></h2><p>Enable a model for a bot (chat, memory, or embedding).</p><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">memoh</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> bot</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> set-model</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> [id] [options]</span></span></code></pre></div><table tabindex="0"><thead><tr><th>Option</th><th>Description</th></tr></thead><tbody><tr><td><code>--as &lt;usage&gt;</code></td><td><code>chat</code>, <code>memory</code>, or <code>embedding</code></td></tr><tr><td><code>--model &lt;model_id&gt;</code></td><td>Model ID</td></tr></tbody></table><p>Example:</p><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">memoh</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> bot</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> set-model</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> my-bot-id</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> --as</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> chat</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> --model</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> gpt-4</span></span></code></pre></div>',27)])])}const k=a(d,[["render",o]]);export{b as __pageData,k as default};