mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-19 13:48:10 +00:00
1 line
8.4 KiB
JavaScript
1 line
8.4 KiB
JavaScript
"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7241],{1929:(e,l,n)=>{n.r(l),n.d(l,{assets:()=>c,contentTitle:()=>t,default:()=>o,frontMatter:()=>r,metadata:()=>i,toc:()=>h});const i=JSON.parse('{"id":"development/agent","title":"\u5ba2\u6237\u7aef/\u5ba2\u670d\u7aef\u5f00\u53d1\u6587\u6863","description":"\u7b80\u4ecb","source":"@site/i18n/zh-CN/docusaurus-plugin-content-docs/current/development/agent.md","sourceDirName":"development","slug":"/development/agent","permalink":"/docs/zh-CN/docs/development/agent","draft":false,"unlisted":false,"editUrl":"https://github.com/bytedesk/bytedesk/docs/development/agent.md","tags":[],"version":"current","sidebarPosition":2,"frontMatter":{"sidebar_label":"\u5ba2\u6237\u7aef/\u5ba2\u670d\u7aef","sidebar_position":2},"sidebar":"tutorialSidebar","previous":{"title":"\u8bbf\u5ba2\u7aef","permalink":"/docs/zh-CN/docs/development/chat"},"next":{"title":"\u7ba1\u7406\u7aef","permalink":"/docs/zh-CN/docs/development/admin"}}');var d=n(5723),s=n(6246);const r={sidebar_label:"\u5ba2\u6237\u7aef/\u5ba2\u670d\u7aef",sidebar_position:2},t="\u5ba2\u6237\u7aef/\u5ba2\u670d\u7aef\u5f00\u53d1\u6587\u6863",c={},h=[{value:"\u7b80\u4ecb",id:"\u7b80\u4ecb",level:2},{value:"\u73af\u5883\u8981\u6c42",id:"\u73af\u5883\u8981\u6c42",level:2},{value:"\u5b89\u88c5\u4e0e\u914d\u7f6e",id:"\u5b89\u88c5\u4e0e\u914d\u7f6e",level:2},{value:"\u5b89\u88c5SDK",id:"\u5b89\u88c5sdk",level:3},{value:"\u521d\u59cb\u5316\u914d\u7f6e",id:"\u521d\u59cb\u5316\u914d\u7f6e",level:3},{value:"\u529f\u80fd\u6a21\u5757",id:"\u529f\u80fd\u6a21\u5757",level:2},{value:"\u5ba2\u670d\u767b\u5f55\u4e0e\u72b6\u6001\u7ba1\u7406",id:"\u5ba2\u670d\u767b\u5f55\u4e0e\u72b6\u6001\u7ba1\u7406",level:3},{value:"\u767b\u5f55\u63a5\u53e3",id:"\u767b\u5f55\u63a5\u53e3",level:4},{value:"\u72b6\u6001\u5207\u6362\uff08\u5728\u7ebf\u3001\u5fd9\u788c\u3001\u79bb\u7ebf\uff09",id:"\u72b6\u6001\u5207\u6362\u5728\u7ebf\u5fd9\u788c\u79bb\u7ebf",level:4},{value:"\u4f1a\u8bdd\u7ba1\u7406",id:"\u4f1a\u8bdd\u7ba1\u7406",level:3},{value:"\u63a5\u6536\u5206\u914d\u7684\u4f1a\u8bdd",id:"\u63a5\u6536\u5206\u914d\u7684\u4f1a\u8bdd",level:4},{value:"\u4f1a\u8bdd\u8f6c\u63a5",id:"\u4f1a\u8bdd\u8f6c\u63a5",level:4},{value:"\u4f1a\u8bdd\u7ed3\u675f",id:"\u4f1a\u8bdd\u7ed3\u675f",level:4},{value:"\u6d88\u606f\u5904\u7406",id:"\u6d88\u606f\u5904\u7406",level:3},{value:"\u63a5\u6536\u6d88\u606f",id:"\u63a5\u6536\u6d88\u606f",level:4},{value:"\u53d1\u9001\u6d88\u606f\uff08\u6587\u672c\u3001\u56fe\u7247\u3001\u6587\u4ef6\u7b49\uff09",id:"\u53d1\u9001\u6d88\u606f\u6587\u672c\u56fe\u7247\u6587\u4ef6\u7b49",level:4},{value:"\u6d88\u606f\u5386\u53f2\u8bb0\u5f55",id:"\u6d88\u606f\u5386\u53f2\u8bb0\u5f55",level:4},{value:"\u5ba2\u6237\u7ba1\u7406",id:"\u5ba2\u6237\u7ba1\u7406",level:3},{value:"\u5ba2\u6237\u8d44\u6599\u67e5\u770b",id:"\u5ba2\u6237\u8d44\u6599\u67e5\u770b",level:4},{value:"\u6dfb\u52a0\u5907\u6ce8",id:"\u6dfb\u52a0\u5907\u6ce8",level:4},{value:"\u4e8b\u4ef6\u76d1\u542c",id:"\u4e8b\u4ef6\u76d1\u542c",level:2},{value:"\u81ea\u5b9a\u4e49UI",id:"\u81ea\u5b9a\u4e49ui",level:2},{value:"\u9ad8\u7ea7\u529f\u80fd",id:"\u9ad8\u7ea7\u529f\u80fd",level:2},{value:"\u6570\u636e\u7edf\u8ba1",id:"\u6570\u636e\u7edf\u8ba1",level:3},{value:"\u6ee1\u610f\u5ea6\u8bc4\u4ef7",id:"\u6ee1\u610f\u5ea6\u8bc4\u4ef7",level:3},{value:"\u667a\u80fd\u8f85\u52a9\u56de\u590d",id:"\u667a\u80fd\u8f85\u52a9\u56de\u590d",level:3},{value:"\u5e38\u89c1\u95ee\u9898\u89e3\u7b54",id:"\u5e38\u89c1\u95ee\u9898\u89e3\u7b54",level:2},{value:"\u5b8c\u6574\u793a\u4f8b",id:"\u5b8c\u6574\u793a\u4f8b",level:2},{value:"\u7248\u672c\u66f4\u65b0\u8bb0\u5f55",id:"\u7248\u672c\u66f4\u65b0\u8bb0\u5f55",level:2}];function a(e){const l={code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,s.R)(),...e.components};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(l.header,{children:(0,d.jsx)(l.h1,{id:"\u5ba2\u6237\u7aef\u5ba2\u670d\u7aef\u5f00\u53d1\u6587\u6863",children:"\u5ba2\u6237\u7aef/\u5ba2\u670d\u7aef\u5f00\u53d1\u6587\u6863"})}),"\n",(0,d.jsx)(l.h2,{id:"\u7b80\u4ecb",children:"\u7b80\u4ecb"}),"\n",(0,d.jsx)(l.p,{children:"ByteDesk\u5ba2\u670d\u7aefSDK\u9002\u7528\u4e8e\u5f00\u53d1\u8005\u6784\u5efa\u4e13\u4e1a\u7684\u5ba2\u670d\u5de5\u4f5c\u53f0\uff0c\u63d0\u4f9b\u4f1a\u8bdd\u5206\u914d\u3001\u6d88\u606f\u5904\u7406\u3001\u5ba2\u6237\u7ba1\u7406\u7b49\u529f\u80fd\u3002"}),"\n",(0,d.jsx)(l.h2,{id:"\u73af\u5883\u8981\u6c42",children:"\u73af\u5883\u8981\u6c42"}),"\n",(0,d.jsxs)(l.ul,{children:["\n",(0,d.jsx)(l.li,{children:"\u652f\u6301\u7684\u5e73\u53f0\u548c\u6846\u67b6"}),"\n",(0,d.jsx)(l.li,{children:"\u4f9d\u8d56\u9879"}),"\n",(0,d.jsx)(l.li,{children:"\u6743\u9650\u8981\u6c42"}),"\n"]}),"\n",(0,d.jsx)(l.h2,{id:"\u5b89\u88c5\u4e0e\u914d\u7f6e",children:"\u5b89\u88c5\u4e0e\u914d\u7f6e"}),"\n",(0,d.jsx)(l.h3,{id:"\u5b89\u88c5sdk",children:"\u5b89\u88c5SDK"}),"\n",(0,d.jsx)(l.pre,{children:(0,d.jsx)(l.code,{className:"language-bash",children:"# \u5b89\u88c5\u547d\u4ee4\u793a\u4f8b\nnpm install @bytedesk/agent\n"})}),"\n",(0,d.jsx)(l.h3,{id:"\u521d\u59cb\u5316\u914d\u7f6e",children:"\u521d\u59cb\u5316\u914d\u7f6e"}),"\n",(0,d.jsx)(l.pre,{children:(0,d.jsx)(l.code,{className:"language-javascript",children:"// \u521d\u59cb\u5316\u914d\u7f6e\u793a\u4f8b\u4ee3\u7801\n"})}),"\n",(0,d.jsx)(l.h2,{id:"\u529f\u80fd\u6a21\u5757",children:"\u529f\u80fd\u6a21\u5757"}),"\n",(0,d.jsx)(l.h3,{id:"\u5ba2\u670d\u767b\u5f55\u4e0e\u72b6\u6001\u7ba1\u7406",children:"\u5ba2\u670d\u767b\u5f55\u4e0e\u72b6\u6001\u7ba1\u7406"}),"\n",(0,d.jsx)(l.h4,{id:"\u767b\u5f55\u63a5\u53e3",children:"\u767b\u5f55\u63a5\u53e3"}),"\n",(0,d.jsx)(l.h4,{id:"\u72b6\u6001\u5207\u6362\u5728\u7ebf\u5fd9\u788c\u79bb\u7ebf",children:"\u72b6\u6001\u5207\u6362\uff08\u5728\u7ebf\u3001\u5fd9\u788c\u3001\u79bb\u7ebf\uff09"}),"\n",(0,d.jsx)(l.h3,{id:"\u4f1a\u8bdd\u7ba1\u7406",children:"\u4f1a\u8bdd\u7ba1\u7406"}),"\n",(0,d.jsx)(l.h4,{id:"\u63a5\u6536\u5206\u914d\u7684\u4f1a\u8bdd",children:"\u63a5\u6536\u5206\u914d\u7684\u4f1a\u8bdd"}),"\n",(0,d.jsx)(l.h4,{id:"\u4f1a\u8bdd\u8f6c\u63a5",children:"\u4f1a\u8bdd\u8f6c\u63a5"}),"\n",(0,d.jsx)(l.h4,{id:"\u4f1a\u8bdd\u7ed3\u675f",children:"\u4f1a\u8bdd\u7ed3\u675f"}),"\n",(0,d.jsx)(l.h3,{id:"\u6d88\u606f\u5904\u7406",children:"\u6d88\u606f\u5904\u7406"}),"\n",(0,d.jsx)(l.h4,{id:"\u63a5\u6536\u6d88\u606f",children:"\u63a5\u6536\u6d88\u606f"}),"\n",(0,d.jsx)(l.h4,{id:"\u53d1\u9001\u6d88\u606f\u6587\u672c\u56fe\u7247\u6587\u4ef6\u7b49",children:"\u53d1\u9001\u6d88\u606f\uff08\u6587\u672c\u3001\u56fe\u7247\u3001\u6587\u4ef6\u7b49\uff09"}),"\n",(0,d.jsx)(l.h4,{id:"\u6d88\u606f\u5386\u53f2\u8bb0\u5f55",children:"\u6d88\u606f\u5386\u53f2\u8bb0\u5f55"}),"\n",(0,d.jsx)(l.h3,{id:"\u5ba2\u6237\u7ba1\u7406",children:"\u5ba2\u6237\u7ba1\u7406"}),"\n",(0,d.jsx)(l.h4,{id:"\u5ba2\u6237\u8d44\u6599\u67e5\u770b",children:"\u5ba2\u6237\u8d44\u6599\u67e5\u770b"}),"\n",(0,d.jsx)(l.h4,{id:"\u6dfb\u52a0\u5907\u6ce8",children:"\u6dfb\u52a0\u5907\u6ce8"}),"\n",(0,d.jsx)(l.h2,{id:"\u4e8b\u4ef6\u76d1\u542c",children:"\u4e8b\u4ef6\u76d1\u542c"}),"\n",(0,d.jsx)(l.h2,{id:"\u81ea\u5b9a\u4e49ui",children:"\u81ea\u5b9a\u4e49UI"}),"\n",(0,d.jsx)(l.h2,{id:"\u9ad8\u7ea7\u529f\u80fd",children:"\u9ad8\u7ea7\u529f\u80fd"}),"\n",(0,d.jsx)(l.h3,{id:"\u6570\u636e\u7edf\u8ba1",children:"\u6570\u636e\u7edf\u8ba1"}),"\n",(0,d.jsx)(l.h3,{id:"\u6ee1\u610f\u5ea6\u8bc4\u4ef7",children:"\u6ee1\u610f\u5ea6\u8bc4\u4ef7"}),"\n",(0,d.jsx)(l.h3,{id:"\u667a\u80fd\u8f85\u52a9\u56de\u590d",children:"\u667a\u80fd\u8f85\u52a9\u56de\u590d"}),"\n",(0,d.jsx)(l.h2,{id:"\u5e38\u89c1\u95ee\u9898\u89e3\u7b54",children:"\u5e38\u89c1\u95ee\u9898\u89e3\u7b54"}),"\n",(0,d.jsx)(l.h2,{id:"\u5b8c\u6574\u793a\u4f8b",children:"\u5b8c\u6574\u793a\u4f8b"}),"\n",(0,d.jsx)(l.pre,{children:(0,d.jsx)(l.code,{className:"language-javascript",children:"// \u5b8c\u6574\u96c6\u6210\u793a\u4f8b\u4ee3\u7801\n"})}),"\n",(0,d.jsx)(l.h2,{id:"\u7248\u672c\u66f4\u65b0\u8bb0\u5f55",children:"\u7248\u672c\u66f4\u65b0\u8bb0\u5f55"})]})}function o(e={}){const{wrapper:l}={...(0,s.R)(),...e.components};return l?(0,d.jsx)(l,{...e,children:(0,d.jsx)(a,{...e})}):a(e)}},6246:(e,l,n)=>{n.d(l,{R:()=>r,x:()=>t});var i=n(2155);const d={},s=i.createContext(d);function r(e){const l=i.useContext(s);return i.useMemo((function(){return"function"==typeof e?e(l):{...l,...e}}),[l,e])}function t(e){let l;return l=e.disableParentContext?"function"==typeof e.components?e.components(d):e.components||d:r(e.components),i.createElement(s.Provider,{value:l},e.children)}}}]); |