@agentica/chat 0.16.4 → 0.16.7-fix-for-wrtn
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AgenticaChatApplication-B8ENbee0.js → VendorConfigurationMovie-XswDxr8q.js} +208 -208
- package/dist/assets/bbs/index-Dl0K1WbX.js +477 -0
- package/dist/assets/shopping/index.html-Cp5uMVyq.js +1 -0
- package/dist/assets/uploader/index.html-B8qGYPzZ.js +17 -0
- package/dist/bbs/index.html +2 -2
- package/dist/shopping/index.html +2 -2
- package/dist/uploader/index.html +2 -2
- package/lib/examples/bbs/BbsChatApplication.d.ts +5 -3
- package/lib/examples/common/VendorConfigurationMovie.d.ts +15 -0
- package/lib/examples/shopping/ShoppingChatApplication.d.ts +3 -1
- package/lib/examples/uploader/AgenticaChatUploaderMovie.d.ts +2 -2
- package/lib/index.mjs +2 -2
- package/lib/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/movies/sides/AgenticaChatSideMovie.tsx +2 -2
- package/dist/assets/bbs/index-ydvzZPTm.js +0 -97
- package/dist/assets/shopping/index.html-Cm84KQpY.js +0 -1
- package/dist/assets/uploader/index.html-F44VoO05.js +0 -17
package/dist/bbs/index.html
CHANGED
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
})(window, document, "clarity", "script", "gu5qz1srj3");
|
|
21
21
|
</script>
|
|
22
22
|
<title>Agentica Playground > TypeScript Class Demonstration</title>
|
|
23
|
-
<script type="module" src="../assets/bbs/index-
|
|
23
|
+
<script type="module" src="../assets/bbs/index-Dl0K1WbX.js"></script>
|
|
24
24
|
<link rel="modulepreload" crossorigin href="../assets/client-B3aq8qpT.js">
|
|
25
|
-
<link rel="modulepreload" crossorigin href="../assets/
|
|
25
|
+
<link rel="modulepreload" crossorigin href="../assets/VendorConfigurationMovie-XswDxr8q.js">
|
|
26
26
|
<link rel="modulepreload" crossorigin href="../assets/_isFormatUri-YqTfGpHo.js">
|
|
27
27
|
<link rel="modulepreload" crossorigin href="../assets/Divider-DX1xhf0M.js">
|
|
28
28
|
</head>
|
package/dist/shopping/index.html
CHANGED
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
})(window, document, "clarity", "script", "gu5qz1srj3");
|
|
21
21
|
</script>
|
|
22
22
|
<title>Agentica Playground > Shopping Mall Demonstration</title>
|
|
23
|
-
<script type="module" src="../assets/shopping/index.html-
|
|
23
|
+
<script type="module" src="../assets/shopping/index.html-Cp5uMVyq.js"></script>
|
|
24
24
|
<link rel="modulepreload" crossorigin href="../assets/client-B3aq8qpT.js">
|
|
25
|
-
<link rel="modulepreload" crossorigin href="../assets/
|
|
25
|
+
<link rel="modulepreload" crossorigin href="../assets/VendorConfigurationMovie-XswDxr8q.js">
|
|
26
26
|
<link rel="modulepreload" crossorigin href="../assets/_isFormatUri-YqTfGpHo.js">
|
|
27
27
|
<link rel="modulepreload" crossorigin href="../assets/_accessExpressionAsString-J5NhZ9FO.js">
|
|
28
28
|
<link rel="modulepreload" crossorigin href="../assets/Divider-DX1xhf0M.js">
|
package/dist/uploader/index.html
CHANGED
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
})(window, document, "clarity", "script", "gu5qz1srj3");
|
|
21
21
|
</script>
|
|
22
22
|
<title>Agentica Playground > Uploader</title>
|
|
23
|
-
<script type="module" src="../assets/uploader/index.html-
|
|
23
|
+
<script type="module" src="../assets/uploader/index.html-B8qGYPzZ.js"></script>
|
|
24
24
|
<link rel="modulepreload" crossorigin href="../assets/client-B3aq8qpT.js">
|
|
25
|
-
<link rel="modulepreload" crossorigin href="../assets/
|
|
25
|
+
<link rel="modulepreload" crossorigin href="../assets/VendorConfigurationMovie-XswDxr8q.js">
|
|
26
26
|
<link rel="modulepreload" crossorigin href="../assets/_accessExpressionAsString-J5NhZ9FO.js">
|
|
27
27
|
</head>
|
|
28
28
|
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { ILlmSchema } from "@samchon/openapi";
|
|
2
|
+
import type OpenAI from "openai";
|
|
2
3
|
export declare function BbsChatApplication(props: BbsChatApplication.IProps): import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
export declare namespace BbsChatApplication {
|
|
4
5
|
interface IProps {
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
api: OpenAI;
|
|
7
|
+
vendorModel: string;
|
|
8
|
+
schemaModel: ILlmSchema.Model;
|
|
7
9
|
locale?: string;
|
|
8
10
|
timezone?: string;
|
|
9
11
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ILlmSchema } from "@samchon/openapi";
|
|
2
|
+
export declare function VendorConfigurationMovie(props: VendorConfigurationMovie.IProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare namespace VendorConfigurationMovie {
|
|
4
|
+
interface IProps {
|
|
5
|
+
config: IConfig;
|
|
6
|
+
onChange: (config: IConfig) => void;
|
|
7
|
+
}
|
|
8
|
+
interface IConfig {
|
|
9
|
+
schemaModel: ILlmSchema.Model;
|
|
10
|
+
vendorModel: string;
|
|
11
|
+
apiKey: string;
|
|
12
|
+
baseURL?: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
function defaultConfig(): IConfig;
|
|
15
|
+
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import type { IHttpConnection } from "@samchon/openapi";
|
|
1
|
+
import type { IHttpConnection, ILlmSchema } from "@samchon/openapi";
|
|
2
2
|
import type OpenAI from "openai";
|
|
3
3
|
export declare function ShoppingChatApplication(props: ShoppingChatApplication.IProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare namespace ShoppingChatApplication {
|
|
5
5
|
interface IProps {
|
|
6
6
|
api: OpenAI;
|
|
7
|
+
vendorModel: string;
|
|
8
|
+
schemaModel: ILlmSchema.Model;
|
|
7
9
|
connection: IHttpConnection;
|
|
8
10
|
name: string;
|
|
9
11
|
mobile: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { OpenApi } from "@samchon/openapi";
|
|
2
2
|
export declare function AgenticaChatUploaderMovie(props: AgenticaChatUploaderMovie.IProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export declare namespace AgenticaChatUploaderMovie {
|
|
4
4
|
interface IProps {
|
|
5
|
-
onChange: (
|
|
5
|
+
onChange: (document: OpenApi.IDocument | null, error: string | null) => void;
|
|
6
6
|
}
|
|
7
7
|
}
|
package/lib/index.mjs
CHANGED
|
@@ -308,9 +308,9 @@ function AgenticaChatSideMovie(props) {
|
|
|
308
308
|
children: "Agent Information"
|
|
309
309
|
}), jsx("hr", {}), jsxs("ul", {
|
|
310
310
|
children: [ jsxs("li", {
|
|
311
|
-
children: [ "
|
|
311
|
+
children: [ "Model:", " ", props.vendor.model ]
|
|
312
312
|
}), jsxs("li", {
|
|
313
|
-
children: [ "
|
|
313
|
+
children: [ "Locale:", " ", props.config?.locale ?? navigator.language ]
|
|
314
314
|
}), jsxs("li", {
|
|
315
315
|
children: [ "Timezone:", " ", props.config?.timezone ?? Intl.DateTimeFormat().resolvedOptions().timeZone ]
|
|
316
316
|
}) ]
|
package/lib/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../src/components/MarkdownViewer.tsx","../src/movies/messages/AgenticaChatExecuteMessageMovie.tsx","../src/movies/messages/AgenticaChatDescribeMessageMovie.tsx","../src/movies/messages/AgenticaChatSelectMessageMovie.tsx","../src/movies/messages/AgenticaChatTextMessageMovie.tsx","../src/movies/messages/AgenticaChatMessageMovie.tsx","../src/movies/sides/AgenticaChatFunctionStackSideMovie.tsx","../src/movies/sides/AgenticaChatTokenUsageSideMovie.tsx","../src/movies/sides/AgenticaChatSideMovie.tsx","../src/movies/AgenticaChatMovie.tsx","../src/AgenticaChatApplication.tsx"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null],"names":["MarkdownViewer","props","_jsx","Markdown","remarkPlugins","remarkMermaidPlugin","rehypePlugins","rehypeRaw","rehypeStringify","components","img","style","display","maxWidth","height","children","AgenticaChatExecuteMessageMovie","execute","_jsxs","React","Fragment","Typography","variant","getTitle","operation","function","description","JSON","stringify","arguments","join","value","exec","protocol","method","toUpperCase","path","name","AgenticaChatDescribeMessageMovie","history","expanded","setExpanded","useState","Card","elevation","marginTop","marginBottom","marginRight","CardContent","Chip","label","color","text","CardActions","textAlign","Button","startIcon","ExpandMoreIcon","transform","onClick","Collapse","in","timeout","unmountOnExit","executes","map","AgenticaChatSelectMessageMovie","selection","icon","GradingIcon","reason","AgenticaChatTextMessageMovie","prompt","justifyContent","role","marginLeft","undefined","backgroundColor","FaceIcon","SmartToyIcon","AgenticaChatMessageMovie","type","selections","AgenticaChatFunctionStackSideMovie","select","Accordion","AccordionSummary","expandIcon","component","AccordionDetails","AgenticaChatTokenUsageSideMovie","price","compute","usage","Table","TableHead","TableRow","TableCell","TableBody","aggregate","total","toLocaleString","input","output","completion","cached","AgenticaChatSideMovie","padding","error","_Fragment","message","vendor","model","config","locale","navigator","language","timezone","Intl","DateTimeFormat","resolvedOptions","timeZone","SIDE_WIDTH","AgenticaChatMovie","agent","title","upperDivRef","useRef","middleDivRef","bottomDivRef","bodyContainerRef","inputRef","setError","setText","histories","setHistories","getHistories","slice","tokenUsage","setTokenUsage","parse","getTokenUsage","setHeight","enabled","setEnabled","setSelections","openSide","setOpenSide","handleText","async","event","push","toHistory","handleDescribe","handleSelect","evevnt","handleValidate","console","useEffect","current","on","off","handleResize","setTimeout","newHeight","clientHeight","conversate","Error","alert","splice","length","filter","h","flat","cancel","index","findIndex","s","controller","handleKeyUp","key","shiftKey","preventDefault","capture","dataUrl","toPng","link","document","createElement","download","href","click","remove","theme","useTheme","isMobile","useMediaQuery","breakpoints","down","bodyMovie","overflowY","width","margin","Container","paddingBottom","minHeight","ref","elem","sideMovie","getVendor","getConfig","AppBar","position","Toolbar","sx","flexGrow","IconButton","catch","AddAPhotoIcon","ReceiptLongIcon","flexDirection","Drawer","anchor","open","onClose","Input","fullWidth","placeholder","multiline","onKeyUp","e","onChange","target","SendIcon","disabled","AgenticaChatApplication"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKM,SAAUA,eAAeC;IAC7B,OACEC,IAACC;QACCC,eAAe,EAACC;QAChBC,eAAe,EAACC,WAAWC;QAC3BC,YAAY;YACVC,KAAK,KAAMT,WACTC,IAAA,OAAA;mBACMD;gBACJU,OAAO;oBACLC,SAAS;oBACTC,UAAU;oBACVC,QAAQ;;;;QAIfC,UAEAd,MAAMc;;AAGb;;AClBgB,SAAAC,iCAEdC;IAGA,OACEC,KAACC,MAAMC,UACL;QAAAL,UAAA,EAAAG,KAACG,YAAU;YAACC,SAAQ;YAAIP,UAAA,EACrB,KACAQ,SAASN,UACT;YAEHf,IAAM,MAAA,KACNA,IAACmB,YAAW;YAAAC,SAAQ;YAA+BP,UAAA;YACnDb,IAACF,gBAAgB;YAAAe,UAAAE,QAAQO,UAAUC,SAASC;YAC5CxB,IAAM,MAAA,CAAA,IACNA,IAACmB,YAAW;YAAAC,SAAQ;YAA6BP,UAAA;YACjDb,IAACF,gBACE;YAAAe,UAAA,EAAC,WAAWY,KAAKC,UAAUX,QAAQY,WAAW,MAAM,IAAI,QAAOC,KAC9D;YAGJ5B,IAAA,MAAA,KACAA,IAACmB,YAAU;YAACC,SAAQ;YAAIP,UAAA;YACxBb,IAACF,gBAAc;YAAAe,UACZ,EAAC,WAAWY,KAAKC,UAAUX,QAAQc,OAAO,MAAM,IAAI,QAAOD,KAAK;;;AAIzE;;AAOA,SAASP,SAAyCS;IAChD,OAAOA,KAAKR,UAAUS,aAAa,SAC/B,GAAGD,KAAKR,UAAUC,SAASS,OAAOC,iBAAiBH,KAAKR,UAAUC,SAASW,SAC3EJ,KAAKR,UAAUC,SAASY;AAC9B;;AC9BgB,SAAAC,kCAEdC;IAGA,OAAOC,UAAUC,eAAeC,SAAS;IACzC,OACExB,KAACyB,MAAI;QACHC,WAAW;QACXjC,OAA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C;YAAAL,KAAK7E;YACLmF,UAAS;YACT5H,WAAU;YACVrC,OAAM;YAASpC,UAEfG,KAACmM,SAAO;gBAAAtM,UAAA,EACNb,IAAC+N,OAAK;oBACJ9F;oBACA+F;oBACAC,aAAY;oBACZpM,OAAOqB;oBACPgL,WAAW;oBACXC,SAASC,UAAUnD,YAAYmD,GAAGb,OAAM;oBACxCc,UAAWD;wBACTjG,QAAQiG,EAAEE,OAAOzM;wBACjBmI;AAAc;oBAGlBhK,IAACqD;oBACCjC,SAAQ;oBACRX,OAAO;wBAAEgE,YAAY;;oBACrBnB,WAAWtD,IAACuO,UAAQ,CAAA;oBACpBC,WAAW3F;oBACXpF,SAAS,WAAW2G,aAAamD,OAAM;;;;;;AAQnD;;ACxUM,SAAUkB,wBAAwD1O;IACtE,OAAOC,IAACyH,mBAAsB;WAAA1H;;AAChC;;"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../src/components/MarkdownViewer.tsx","../src/movies/messages/AgenticaChatExecuteMessageMovie.tsx","../src/movies/messages/AgenticaChatDescribeMessageMovie.tsx","../src/movies/messages/AgenticaChatSelectMessageMovie.tsx","../src/movies/messages/AgenticaChatTextMessageMovie.tsx","../src/movies/messages/AgenticaChatMessageMovie.tsx","../src/movies/sides/AgenticaChatFunctionStackSideMovie.tsx","../src/movies/sides/AgenticaChatTokenUsageSideMovie.tsx","../src/movies/sides/AgenticaChatSideMovie.tsx","../src/movies/AgenticaChatMovie.tsx","../src/AgenticaChatApplication.tsx"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null],"names":["MarkdownViewer","props","_jsx","Markdown","remarkPlugins","remarkMermaidPlugin","rehypePlugins","rehypeRaw","rehypeStringify","components","img","style","display","maxWidth","height","children","AgenticaChatExecuteMessageMovie","execute","_jsxs","React","Fragment","Typography","variant","getTitle","operation","function","description","JSON","stringify","arguments","join","value","exec","protocol","method","toUpperCase","path","name","AgenticaChatDescribeMessageMovie","history","expanded","setExpanded","useState","Card","elevation","marginTop","marginBottom","marginRight","CardContent","Chip","label","color","text","CardActions","textAlign","Button","startIcon","ExpandMoreIcon","transform","onClick","Collapse","in","timeout","unmountOnExit","executes","map","AgenticaChatSelectMessageMovie","selection","icon","GradingIcon","reason","AgenticaChatTextMessageMovie","prompt","justifyContent","role","marginLeft","undefined","backgroundColor","FaceIcon","SmartToyIcon","AgenticaChatMessageMovie","type","selections","AgenticaChatFunctionStackSideMovie","select","Accordion","AccordionSummary","expandIcon","component","AccordionDetails","AgenticaChatTokenUsageSideMovie","price","compute","usage","Table","TableHead","TableRow","TableCell","TableBody","aggregate","total","toLocaleString","input","output","completion","cached","AgenticaChatSideMovie","padding","error","_Fragment","message","vendor","model","config","locale","navigator","language","timezone","Intl","DateTimeFormat","resolvedOptions","timeZone","SIDE_WIDTH","AgenticaChatMovie","agent","title","upperDivRef","useRef","middleDivRef","bottomDivRef","bodyContainerRef","inputRef","setError","setText","histories","setHistories","getHistories","slice","tokenUsage","setTokenUsage","parse","getTokenUsage","setHeight","enabled","setEnabled","setSelections","openSide","setOpenSide","handleText","async","event","push","toHistory","handleDescribe","handleSelect","evevnt","handleValidate","console","useEffect","current","on","off","handleResize","setTimeout","newHeight","clientHeight","conversate","Error","alert","splice","length","filter","h","flat","cancel","index","findIndex","s","controller","handleKeyUp","key","shiftKey","preventDefault","capture","dataUrl","toPng","link","document","createElement","download","href","click","remove","theme","useTheme","isMobile","useMediaQuery","breakpoints","down","bodyMovie","overflowY","width","margin","Container","paddingBottom","minHeight","ref","elem","sideMovie","getVendor","getConfig","AppBar","position","Toolbar","sx","flexGrow","IconButton","catch","AddAPhotoIcon","ReceiptLongIcon","flexDirection","Drawer","anchor","open","onClose","Input","fullWidth","placeholder","multiline","onKeyUp","e","onChange","target","SendIcon","disabled","AgenticaChatApplication"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKM,SAAUA,eAAeC;IAC7B,OACEC,IAACC;QACCC,eAAe,EAACC;QAChBC,eAAe,EAACC,WAAWC;Q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,UAAUnD,YAAYmD,GAAGb,OAAM;oBACxCc,UAAWD;wBACTjG,QAAQiG,EAAEE,OAAOzM;wBACjBmI;AAAc;oBAGlBhK,IAACqD;oBACCjC,SAAQ;oBACRX,OAAO;wBAAEgE,YAAY;;oBACrBnB,WAAWtD,IAACuO,UAAQ,CAAA;oBACpBC,WAAW3F;oBACXpF,SAAS,WAAW2G,aAAamD,OAAM;;;;;;AAQnD;;ACxUM,SAAUkB,wBAAwD1O;IACtE,OAAOC,IAACyH,mBAAsB;WAAA1H;;AAChC;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentica/chat",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.16.
|
|
4
|
+
"version": "0.16.7-fix-for-wrtn",
|
|
5
5
|
"description": "Frontend Application of Agentica",
|
|
6
6
|
"author": "Wrtn Technologies",
|
|
7
7
|
"license": "MIT",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"remark-mermaid-plugin": "^1.0.2",
|
|
47
47
|
"typia": "^9.0.1",
|
|
48
48
|
"uuid": "^11.0.5",
|
|
49
|
-
"@agentica/core": "^0.16.
|
|
49
|
+
"@agentica/core": "^0.16.7-fix-for-wrtn"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@eslint/js": "^9.13.0",
|
|
@@ -39,13 +39,13 @@ export function AgenticaChatSideMovie<Model extends ILlmSchema.Model>(props: Age
|
|
|
39
39
|
<hr />
|
|
40
40
|
<ul>
|
|
41
41
|
<li>
|
|
42
|
-
{" "}
|
|
43
42
|
Model:
|
|
43
|
+
{" "}
|
|
44
44
|
{props.vendor.model}
|
|
45
45
|
</li>
|
|
46
46
|
<li>
|
|
47
|
-
{" "}
|
|
48
47
|
Locale:
|
|
48
|
+
{" "}
|
|
49
49
|
{props.config?.locale ?? navigator.language}
|
|
50
50
|
</li>
|
|
51
51
|
<li>
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import{j as a,o as B,r as y,T as g}from"../client-B3aq8qpT.js";import{v as C,A as T,e as w,_ as v,f as R,F as S,T as I,R as _,c as x,d as j,B as P}from"../AgenticaChatApplication-B8ENbee0.js";import{a as f,_ as b}from"../_isFormatUri-YqTfGpHo.js";import{D as U}from"../Divider-DX1xhf0M.js";class k{constructor(){this.articles=[]}index(){return this.articles}create(o){const l={id:C(),title:o.input.title,body:o.input.body,thumbnail:o.input.thumbnail,created_at:new Date().toISOString(),updated_at:new Date().toISOString()};return this.articles.push(l),l}update(o){const l=this.articles.find(d=>d.id===o.id);if(l===void 0)throw new Error("Unable to find the matched article.");o.input.title!==void 0&&(l.title=o.input.title),o.input.body!==void 0&&(l.body=o.input.body),o.input.thumbnail!==void 0&&(l.thumbnail=o.input.thumbnail),l.updated_at=new Date().toISOString()}erase(o){const l=this.articles.findIndex(d=>d.id===o.id);if(l===-1)throw new Error("Unable to find the matched article.");this.articles.splice(l,1)}}function D(u){const o=new k,l=new T({model:"chatgpt",vendor:{api:new w({apiKey:u.apiKey,dangerouslyAllowBrowser:!0}),model:u.model??"gpt-4o-mini"},controllers:[{protocol:"class",name:"bbs",application:{model:"chatgpt",options:{reference:!1,strict:!1,separate:null},functions:[{name:"index",parameters:{description:"",type:"object",properties:{},additionalProperties:!1,required:[],$defs:{}},output:{description:"List of every articles",type:"array",items:{description:`Description of the current {@link IBbsArticle} type:
|
|
2
|
-
|
|
3
|
-
> Article entity.
|
|
4
|
-
>
|
|
5
|
-
> \`IBbsArticle\` is an entity representing an article in the BBS (Bulletin Board System).`,type:"object",properties:{id:{title:"Primary Key",description:`Primary Key.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
@format uuid`,type:"string"},created_at:{title:"Creation time of the article",description:`Creation time of the article.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
@format date-time`,type:"string"},updated_at:{title:"Last updated time of the article",description:`Last updated time of the article.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
@format date-time`,type:"string"},title:{title:"Title of the article",description:`Title of the article.
|
|
15
|
-
|
|
16
|
-
Representative title of the article.`,type:"string"},body:{title:"Content body",description:`Content body.
|
|
17
|
-
|
|
18
|
-
Content body of the article writtn in the markdown format.`,type:"string"},thumbnail:{title:"Thumbnail image URI",description:`Thumbnail image URI.
|
|
19
|
-
|
|
20
|
-
Thumbnail image URI which can represent the article.
|
|
21
|
-
|
|
22
|
-
If configured as \`null\`, it means that no thumbnail image in the article.`,anyOf:[{type:"null"},{type:"string",description:`@format uri
|
|
23
|
-
@contentMediaType image/*`}]}},required:["id","created_at","updated_at","title","body","thumbnail"]}},description:`Get all articles.
|
|
24
|
-
|
|
25
|
-
List up every articles archived in the BBS DB.`,validate:d=>({success:!0,data:d})},{name:"create",parameters:{description:" Properties of create function",type:"object",properties:{input:{description:`Information of the article to create
|
|
26
|
-
|
|
27
|
-
------------------------------
|
|
28
|
-
|
|
29
|
-
Description of the current {@link IBbsArticle.ICreate} type:
|
|
30
|
-
|
|
31
|
-
> Information of the article to create.
|
|
32
|
-
|
|
33
|
-
------------------------------
|
|
34
|
-
|
|
35
|
-
Description of the parent {@link IBbsArticle} type:
|
|
36
|
-
|
|
37
|
-
> Article entity.
|
|
38
|
-
>
|
|
39
|
-
> \`IBbsArticle\` is an entity representing an article in the BBS (Bulletin Board System).`,type:"object",properties:{title:{title:"Title of the article",description:`Title of the article.
|
|
40
|
-
|
|
41
|
-
Representative title of the article.`,type:"string"},body:{title:"Content body",description:`Content body.
|
|
42
|
-
|
|
43
|
-
Content body of the article writtn in the markdown format.`,type:"string"},thumbnail:{title:"Thumbnail image URI",description:`Thumbnail image URI.
|
|
44
|
-
|
|
45
|
-
Thumbnail image URI which can represent the article.
|
|
46
|
-
|
|
47
|
-
If configured as \`null\`, it means that no thumbnail image in the article.`,anyOf:[{type:"null"},{type:"string",description:`@format uri
|
|
48
|
-
@contentMediaType image/*`}]}},required:["title","body","thumbnail"]}},required:["input"],additionalProperties:!1,$defs:{}},output:{description:`Description of the current {@link IBbsArticle} type:
|
|
49
|
-
|
|
50
|
-
> Article entity.
|
|
51
|
-
>
|
|
52
|
-
> \`IBbsArticle\` is an entity representing an article in the BBS (Bulletin Board System).`,type:"object",properties:{id:{title:"Primary Key",description:`Primary Key.
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
@format uuid`,type:"string"},created_at:{title:"Creation time of the article",description:`Creation time of the article.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
@format date-time`,type:"string"},updated_at:{title:"Last updated time of the article",description:`Last updated time of the article.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
@format date-time`,type:"string"},title:{title:"Title of the article",description:`Title of the article.
|
|
62
|
-
|
|
63
|
-
Representative title of the article.`,type:"string"},body:{title:"Content body",description:`Content body.
|
|
64
|
-
|
|
65
|
-
Content body of the article writtn in the markdown format.`,type:"string"},thumbnail:{title:"Thumbnail image URI",description:`Thumbnail image URI.
|
|
66
|
-
|
|
67
|
-
Thumbnail image URI which can represent the article.
|
|
68
|
-
|
|
69
|
-
If configured as \`null\`, it means that no thumbnail image in the article.`,anyOf:[{type:"null"},{type:"string",description:`@format uri
|
|
70
|
-
@contentMediaType image/*`}]}},required:["id","created_at","updated_at","title","body","thumbnail"]},description:`Create a new article.
|
|
71
|
-
|
|
72
|
-
Writes a new article and archives it into the DB.`,validate:(()=>{const d=e=>typeof e.input=="object"&&e.input!==null&&p(e.input),p=e=>typeof e.title=="string"&&typeof e.body=="string"&&(e.thumbnail===null||typeof e.thumbnail=="string"&&f(e.thumbnail)),h=(e,t,r=!0)=>[(typeof e.input=="object"&&e.input!==null||n(r,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input}))&&m(e.input,t+".input",r)||n(r,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input})].every(s=>s),m=(e,t,r=!0)=>[typeof e.title=="string"||n(r,{path:t+".title",expected:"string",value:e.title}),typeof e.body=="string"||n(r,{path:t+".body",expected:"string",value:e.body}),e.thumbnail===null||typeof e.thumbnail=="string"&&(f(e.thumbnail)||n(r,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||n(r,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null)',value:e.thumbnail})].every(s=>s),c=e=>typeof e=="object"&&e!==null&&d(e);let i,n;return e=>{if(c(e)===!1){i=[],n=v(i),((r,s,A=!0)=>(typeof r=="object"&&r!==null||n(!0,{path:s+"",expected:"__type",value:r}))&&h(r,s+"",!0)||n(!0,{path:s+"",expected:"__type",value:r}))(e,"$input",!0);const t=i.length===0;return t?{success:t,data:e}:{success:t,errors:i,data:e}}return{success:!0,data:e}}})()},{name:"update",parameters:{description:" Properties of update function",type:"object",properties:{id:{title:"Target article's {@link IBbsArticle.id}",description:`Target article's {@link IBbsArticle.id}.
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
@format uuid`,type:"string"},input:{description:`New content to update.
|
|
76
|
-
|
|
77
|
-
------------------------------
|
|
78
|
-
|
|
79
|
-
Description of the current {@link PartialIBbsArticle.ICreate} type:
|
|
80
|
-
|
|
81
|
-
> Make all properties in T optional`,type:"object",properties:{title:{title:"Title of the article",description:`Title of the article.
|
|
82
|
-
|
|
83
|
-
Representative title of the article.`,type:"string"},body:{title:"Content body",description:`Content body.
|
|
84
|
-
|
|
85
|
-
Content body of the article writtn in the markdown format.`,type:"string"},thumbnail:{title:"Thumbnail image URI",description:`Thumbnail image URI.
|
|
86
|
-
|
|
87
|
-
Thumbnail image URI which can represent the article.
|
|
88
|
-
|
|
89
|
-
If configured as \`null\`, it means that no thumbnail image in the article.`,anyOf:[{type:"null"},{type:"string",description:`@format uri
|
|
90
|
-
@contentMediaType image/*`}]}},required:[]}},required:["id","input"],additionalProperties:!1,$defs:{}},description:`Update an article.
|
|
91
|
-
|
|
92
|
-
Updates an article with new content.`,validate:(()=>{const d=e=>typeof e.id=="string"&&b(e.id)&&typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1&&p(e.input),p=e=>(e.title===void 0||typeof e.title=="string")&&(e.body===void 0||typeof e.body=="string")&&(e.thumbnail===null||e.thumbnail===void 0||typeof e.thumbnail=="string"&&f(e.thumbnail)),h=(e,t,r=!0)=>[typeof e.id=="string"&&(b(e.id)||n(r,{path:t+".id",expected:'string & Format<"uuid">',value:e.id}))||n(r,{path:t+".id",expected:'(string & Format<"uuid">)',value:e.id}),(typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1||n(r,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input}))&&m(e.input,t+".input",r)||n(r,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input})].every(s=>s),m=(e,t,r=!0)=>[e.title===void 0||typeof e.title=="string"||n(r,{path:t+".title",expected:"(string | undefined)",value:e.title}),e.body===void 0||typeof e.body=="string"||n(r,{path:t+".body",expected:"(string | undefined)",value:e.body}),e.thumbnail===null||e.thumbnail===void 0||typeof e.thumbnail=="string"&&(f(e.thumbnail)||n(r,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||n(r,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null | undefined)',value:e.thumbnail})].every(s=>s),c=e=>typeof e=="object"&&e!==null&&d(e);let i,n;return e=>{if(c(e)===!1){i=[],n=v(i),((r,s,A=!0)=>(typeof r=="object"&&r!==null||n(!0,{path:s+"",expected:"__type",value:r}))&&h(r,s+"",!0)||n(!0,{path:s+"",expected:"__type",value:r}))(e,"$input",!0);const t=i.length===0;return t?{success:t,data:e}:{success:t,errors:i,data:e}}return{success:!0,data:e}}})()},{name:"erase",parameters:{description:" Properties of erase function",type:"object",properties:{id:{title:"Target article's {@link IBbsArticle.id}",description:`Target article's {@link IBbsArticle.id}.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
@format uuid`,type:"string"}},required:["id"],additionalProperties:!1,$defs:{}},description:`Erase an article.
|
|
96
|
-
|
|
97
|
-
Erases an article from the DB.`,validate:(()=>{const d=i=>typeof i.id=="string"&&b(i.id),p=(i,n,e=!0)=>[typeof i.id=="string"&&(b(i.id)||c(e,{path:n+".id",expected:'string & Format<"uuid">',value:i.id}))||c(e,{path:n+".id",expected:'(string & Format<"uuid">)',value:i.id})].every(t=>t),h=i=>typeof i=="object"&&i!==null&&d(i);let m,c;return i=>{if(h(i)===!1){m=[],c=v(m),((e,t,r=!0)=>(typeof e=="object"&&e!==null||c(!0,{path:t+"",expected:"__type",value:e}))&&p(e,t+"",!0)||c(!0,{path:t+"",expected:"__type",value:e}))(i,"$input",!0);const n=m.length===0;return n?{success:n,data:i}:{success:n,errors:m,data:i}}return{success:!0,data:i}}})()}]},execute:o}],config:{locale:u.locale,timezone:u.timezone,executor:{initialize:null}}});return a.jsx(R,{agent:l})}function F(){const[u,o]=y.useState(""),[l,d]=y.useState("gpt-4o-mini"),[p,h]=y.useState(window.navigator.language),[m,c]=y.useState(!1);return a.jsx("div",{style:{width:"100%",height:"100%"},children:m===!0?a.jsx(D,{apiKey:u,model:l,locale:p}):a.jsxs(S,{style:{width:"calc(100% - 60px)",padding:15,margin:15},children:[a.jsx(g,{variant:"h6",children:"BBS AI Chatbot"}),a.jsx("br",{}),a.jsx(U,{}),a.jsx("br",{}),"Demonstration of Agentica with TypeScript Controller Class.",a.jsx("br",{}),a.jsx("br",{}),a.jsx(g,{variant:"h6",children:" OpenAI Configuration "}),a.jsx(I,{onChange:i=>o(i.target.value),defaultValue:u,label:"OpenAI API Key",variant:"outlined",placeholder:"Your OpenAI API Key",error:u.length===0}),a.jsx("br",{}),a.jsxs(_,{defaultValue:l,onChange:(i,n)=>d(n),style:{paddingLeft:15},children:[a.jsx(x,{control:a.jsx(j,{}),label:"GPT-4o Mini",value:"gpt-4o-mini"}),a.jsx(x,{control:a.jsx(j,{}),label:"GPT-4o",value:"gpt-4o"})]}),a.jsx("br",{}),a.jsx(g,{variant:"h6",children:" Membership Information "}),a.jsx("br",{}),a.jsx(I,{onChange:i=>h(i.target.value),defaultValue:p,label:"Locale",variant:"outlined",error:p.length===0}),a.jsx("br",{}),a.jsx("br",{}),a.jsx(P,{component:"a",fullWidth:!0,variant:"contained",color:"info",size:"large",disabled:u.length===0||p.length===0,onClick:()=>c(!0),children:"Start AI Chatbot"})]})})}B(window.document.getElementById("root")).render(a.jsx(F,{}));
|