@agentica/chat 0.29.4 → 0.29.6

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.
@@ -1,8 +1,4 @@
1
- import{j as y,o as v,r as f,T as b}from"../client-B3aq8qpT.js";import{v as I,A as B,d as T,_ as m,V as g,c as C,F as A,T as j,B as w}from"../VendorConfigurationMovie-BuWccVjS.js";import{a as u,_ as p}from"../_isFormatUri-YqTfGpHo.js";import{D as x}from"../Divider-DX1xhf0M.js";class R{constructor(){this.articles=[]}index(){return this.articles}create(c){const d={id:I(),title:c.input.title,body:c.input.body,thumbnail:c.input.thumbnail,created_at:new Date().toISOString(),updated_at:new Date().toISOString()};return this.articles.push(d),d}update(c){const d=this.articles.find(s=>s.id===c.id);if(d===void 0)throw new Error("Unable to find the matched article.");c.input.title!==void 0&&(d.title=c.input.title),c.input.body!==void 0&&(d.body=c.input.body),c.input.thumbnail!==void 0&&(d.thumbnail=c.input.thumbnail),d.updated_at=new Date().toISOString()}erase(c){const d=this.articles.findIndex(s=>s.id===c.id);if(d===-1)throw new Error("Unable to find the matched article.");this.articles.splice(d,1)}}const U={chatgpt:{model:"chatgpt",options:{reference:!1,strict:!1,separate:null},functions:[{name:"index",parameters:{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.
1
+ import{j as y,o as v,r as h,T as b}from"../client-B3aq8qpT.js";import{v as I,A as B,d as T,_ as m,V as g,c as C,F as A,T as j,B as w}from"../VendorConfigurationMovie-LkMMOHEP.js";import{a as u,_ as p}from"../_isFormatUri-YqTfGpHo.js";import{D as x}from"../Divider-DX1xhf0M.js";class R{constructor(){this.articles=[]}index(){return this.articles}create(c){const d={id:I(),title:c.input.title,body:c.input.body,thumbnail:c.input.thumbnail,created_at:new Date().toISOString(),updated_at:new Date().toISOString()};return this.articles.push(d),d}update(c){const d=this.articles.find(s=>s.id===c.id);if(d===void 0)throw new Error("Unable to find the matched article.");c.input.title!==void 0&&(d.title=c.input.title),c.input.body!==void 0&&(d.body=c.input.body),c.input.thumbnail!==void 0&&(d.thumbnail=c.input.thumbnail),d.updated_at=new Date().toISOString()}erase(c){const d=this.articles.findIndex(s=>s.id===c.id);if(d===-1)throw new Error("Unable to find the matched article.");this.articles.splice(d,1)}}const P={chatgpt:{model:"chatgpt",options:{reference:!0,strict:!1,separate:null},functions:[{name:"index",parameters:{type:"object",properties:{},additionalProperties:!1,required:[],$defs:{IBbsArticle:{description:"Article entity.\n\n`IBbsArticle` is an entity representing an article in the BBS (Bulletin Board System).",type:"object",properties:{id:{title:"Primary Key",description:`Primary Key.
6
2
 
7
3
 
8
4
  @format uuid`,type:"string"},created_at:{title:"Creation time of the article",description:`Creation time of the article.
@@ -20,23 +16,13 @@ Content body of the article writtn in the markdown format.`,type:"string"},thumb
20
16
  Thumbnail image URI which can represent the article.
21
17
 
22
18
  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:l=>({success:!0,data:l})},{name:"create",parameters:{description:" Properties of create function",type:"object",properties:{input:{description:`Information of the article to create
19
+ @contentMediaType image/*`}]}},required:["id","created_at","updated_at","title","body","thumbnail"]}}},output:{description:"List of every articles",type:"array",items:{$ref:"#/$defs/IBbsArticle"}},description:`Get all articles.
26
20
 
27
- ------------------------------
21
+ List up every articles archived in the BBS DB.`,validate:l=>({success:!0,data:l})},{name:"create",parameters:{description:` Properties of create function
28
22
 
29
- Description of the current {@link IBbsArticle.ICreate} type:
23
+ ### Description of {@link input} property:
30
24
 
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.
25
+ > Information of the article to create`,type:"object",properties:{input:{$ref:"#/$defs/IBbsArticle.ICreate"}},required:["input"],additionalProperties:!1,$defs:{"IBbsArticle.ICreate":{description:"Information of the article to create.",type:"object",properties:{title:{title:"Title of the article",description:`Title of the article.
40
26
 
41
27
  Representative title of the article.`,type:"string"},body:{title:"Content body",description:`Content body.
42
28
 
@@ -45,11 +31,7 @@ Content body of the article writtn in the markdown format.`,type:"string"},thumb
45
31
  Thumbnail image URI which can represent the article.
46
32
 
47
33
  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.
34
+ @contentMediaType image/*`}]}},required:["title","body","thumbnail"]},IBbsArticle:{description:"Article entity.\n\n`IBbsArticle` is an entity representing an article in the BBS (Bulletin Board System).",type:"object",properties:{id:{title:"Primary Key",description:`Primary Key.
53
35
 
54
36
 
55
37
  @format uuid`,type:"string"},created_at:{title:"Creation time of the article",description:`Creation time of the article.
@@ -67,18 +49,16 @@ Content body of the article writtn in the markdown format.`,type:"string"},thumb
67
49
  Thumbnail image URI which can represent the article.
68
50
 
69
51
  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.
52
+ @contentMediaType image/*`}]}},required:["id","created_at","updated_at","title","body","thumbnail"]}}},output:{description:"Newly created article",$ref:"#/$defs/IBbsArticle"},description:`Create a new article.
71
53
 
72
- Writes a new article and archives it into the DB.`,validate:(()=>{const l=e=>typeof e.input=="object"&&e.input!==null&&c(e.input),c=e=>typeof e.title=="string"&&typeof e.body=="string"&&(e.thumbnail===null||typeof e.thumbnail=="string"&&u(e.thumbnail)),d=(e,t,i=!0)=>[(typeof e.input=="object"&&e.input!==null||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input})].every(a=>a),s=(e,t,i=!0)=>[typeof e.title=="string"||r(i,{path:t+".title",expected:"string",value:e.title}),typeof e.body=="string"||r(i,{path:t+".body",expected:"string",value:e.body}),e.thumbnail===null||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null)',value:e.thumbnail})].every(a=>a),o=e=>typeof e=="object"&&e!==null&&l(e);let n,r;return e=>{if(o(e)===!1){n=[],r=m(n),((i,a,h=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:a+"",expected:"__type",value:i}))&&d(i,a+"",!0)||r(!0,{path:a+"",expected:"__type",value:i}))(e,"$input",!0);const t=n.length===0;return t?{success:t,data:e}:{success:t,errors:n,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}.
54
+ Writes a new article and archives it into the DB.`,validate:(()=>{const l=e=>typeof e.input=="object"&&e.input!==null&&c(e.input),c=e=>typeof e.title=="string"&&typeof e.body=="string"&&(e.thumbnail===null||typeof e.thumbnail=="string"&&u(e.thumbnail)),d=(e,t,i=!0)=>[(typeof e.input=="object"&&e.input!==null||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input})].every(n=>n),s=(e,t,i=!0)=>[typeof e.title=="string"||r(i,{path:t+".title",expected:"string",value:e.title}),typeof e.body=="string"||r(i,{path:t+".body",expected:"string",value:e.body}),e.thumbnail===null||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null)',value:e.thumbnail})].every(n=>n),o=e=>typeof e=="object"&&e!==null&&l(e);let a,r;return e=>{if(o(e)===!1){a=[],r=m(a),((i,n,f=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:n+"",expected:"__type",value:i}))&&d(i,n+"",!0)||r(!0,{path:n+"",expected:"__type",value:i}))(e,"$input",!0);const t=a.length===0;return t?{success:t,data:e}:{success:t,errors:a,data:e}}return{success:!0,data:e}}})()},{name:"update",parameters:{description:` Properties of update function
73
55
 
56
+ ### Description of {@link input} property:
74
57
 
75
- @format uuid`,type:"string"},input:{description:`New content to update.
58
+ > New content to update.`,type:"object",properties:{id:{title:"Target article's {@link IBbsArticle.id}",description:`Target article's {@link IBbsArticle.id}.
76
59
 
77
- ------------------------------
78
60
 
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.
61
+ @format uuid`,type:"string"},input:{title:"New content to update",$ref:"#/$defs/PartialIBbsArticle.ICreate"}},required:["id","input"],additionalProperties:!1,$defs:{"PartialIBbsArticle.ICreate":{description:"Make all properties in T optional",type:"object",properties:{title:{title:"Title of the article",description:`Title of the article.
82
62
 
83
63
  Representative title of the article.`,type:"string"},body:{title:"Content body",description:`Content body.
84
64
 
@@ -87,18 +67,14 @@ Content body of the article writtn in the markdown format.`,type:"string"},thumb
87
67
  Thumbnail image URI which can represent the article.
88
68
 
89
69
  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.
70
+ @contentMediaType image/*`}]}},required:[]}}},description:`Update an article.
91
71
 
92
- Updates an article with new content.`,validate:(()=>{const l=e=>typeof e.id=="string"&&p(e.id)&&typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1&&c(e.input),c=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"&&u(e.thumbnail)),d=(e,t,i=!0)=>[typeof e.id=="string"&&(p(e.id)||r(i,{path:t+".id",expected:'string & Format<"uuid">',value:e.id}))||r(i,{path:t+".id",expected:'(string & Format<"uuid">)',value:e.id}),(typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input})].every(a=>a),s=(e,t,i=!0)=>[e.title===void 0||typeof e.title=="string"||r(i,{path:t+".title",expected:"(string | undefined)",value:e.title}),e.body===void 0||typeof e.body=="string"||r(i,{path:t+".body",expected:"(string | undefined)",value:e.body}),e.thumbnail===null||e.thumbnail===void 0||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null | undefined)',value:e.thumbnail})].every(a=>a),o=e=>typeof e=="object"&&e!==null&&l(e);let n,r;return e=>{if(o(e)===!1){n=[],r=m(n),((i,a,h=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:a+"",expected:"__type",value:i}))&&d(i,a+"",!0)||r(!0,{path:a+"",expected:"__type",value:i}))(e,"$input",!0);const t=n.length===0;return t?{success:t,data:e}:{success:t,errors:n,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}.
72
+ Updates an article with new content.`,validate:(()=>{const l=e=>typeof e.id=="string"&&p(e.id)&&typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1&&c(e.input),c=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"&&u(e.thumbnail)),d=(e,t,i=!0)=>[typeof e.id=="string"&&(p(e.id)||r(i,{path:t+".id",expected:'string & Format<"uuid">',value:e.id}))||r(i,{path:t+".id",expected:'(string & Format<"uuid">)',value:e.id}),(typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input})].every(n=>n),s=(e,t,i=!0)=>[e.title===void 0||typeof e.title=="string"||r(i,{path:t+".title",expected:"(string | undefined)",value:e.title}),e.body===void 0||typeof e.body=="string"||r(i,{path:t+".body",expected:"(string | undefined)",value:e.body}),e.thumbnail===null||e.thumbnail===void 0||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null | undefined)',value:e.thumbnail})].every(n=>n),o=e=>typeof e=="object"&&e!==null&&l(e);let a,r;return e=>{if(o(e)===!1){a=[],r=m(a),((i,n,f=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:n+"",expected:"__type",value:i}))&&d(i,n+"",!0)||r(!0,{path:n+"",expected:"__type",value:i}))(e,"$input",!0);const t=a.length===0;return t?{success:t,data:e}:{success:t,errors:a,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
73
 
94
74
 
95
75
  @format uuid`,type:"string"}},required:["id"],additionalProperties:!1,$defs:{}},description:`Erase an article.
96
76
 
97
- Erases an article from the DB.`,validate:(()=>{const l=n=>typeof n.id=="string"&&p(n.id),c=(n,r,e=!0)=>[typeof n.id=="string"&&(p(n.id)||o(e,{path:r+".id",expected:'string & Format<"uuid">',value:n.id}))||o(e,{path:r+".id",expected:'(string & Format<"uuid">)',value:n.id})].every(t=>t),d=n=>typeof n=="object"&&n!==null&&l(n);let s,o;return n=>{if(d(n)===!1){s=[],o=m(s),((e,t,i=!0)=>(typeof e=="object"&&e!==null||o(!0,{path:t+"",expected:"__type",value:e}))&&c(e,t+"",!0)||o(!0,{path:t+"",expected:"__type",value:e}))(n,"$input",!0);const r=s.length===0;return r?{success:r,data:n}:{success:r,errors:s,data:n}}return{success:!0,data:n}}})()}]},claude:{model:"claude",options:{reference:!1,separate:null},functions:[{name:"index",parameters:{type:"object",properties:{},additionalProperties:!1,required:[],$defs:{}},output:{description:"List of every articles",type:"array",items:{description:`Description of the current {@link IBbsArticle} type:
98
-
99
- > Article entity.
100
- >
101
- > \`IBbsArticle\` is an entity representing an article in the BBS (Bulletin Board System).`,type:"object",properties:{id:{title:"Primary Key",description:"Primary Key.",type:"string",format:"uuid"},created_at:{title:"Creation time of the article",description:"Creation time of the article.",type:"string",format:"date-time"},updated_at:{title:"Last updated time of the article",description:"Last updated time of the article.",type:"string",format:"date-time"},title:{title:"Title of the article",description:`Title of the article.
77
+ Erases an article from the DB.`,validate:(()=>{const l=a=>typeof a.id=="string"&&p(a.id),c=(a,r,e=!0)=>[typeof a.id=="string"&&(p(a.id)||o(e,{path:r+".id",expected:'string & Format<"uuid">',value:a.id}))||o(e,{path:r+".id",expected:'(string & Format<"uuid">)',value:a.id})].every(t=>t),d=a=>typeof a=="object"&&a!==null&&l(a);let s,o;return a=>{if(d(a)===!1){s=[],o=m(s),((e,t,i=!0)=>(typeof e=="object"&&e!==null||o(!0,{path:t+"",expected:"__type",value:e}))&&c(e,t+"",!0)||o(!0,{path:t+"",expected:"__type",value:e}))(a,"$input",!0);const r=s.length===0;return r?{success:r,data:a}:{success:r,errors:s,data:a}}return{success:!0,data:a}}})()}]},claude:{model:"claude",options:{reference:!0,separate:null},functions:[{name:"index",parameters:{type:"object",properties:{},additionalProperties:!1,required:[],$defs:{IBbsArticle:{description:"Article entity.\n\n`IBbsArticle` is an entity representing an article in the BBS (Bulletin Board System).",type:"object",properties:{id:{title:"Primary Key",description:"Primary Key.",type:"string",format:"uuid"},created_at:{title:"Creation time of the article",description:"Creation time of the article.",type:"string",format:"date-time"},updated_at:{title:"Last updated time of the article",description:"Last updated time of the article.",type:"string",format:"date-time"},title:{title:"Title of the article",description:`Title of the article.
102
78
 
103
79
  Representative title of the article.`,type:"string"},body:{title:"Content body",description:`Content body.
104
80
 
@@ -106,23 +82,9 @@ Content body of the article writtn in the markdown format.`,type:"string"},thumb
106
82
 
107
83
  Thumbnail image URI which can represent the article.
108
84
 
109
- If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:["id","created_at","updated_at","title","body","thumbnail"]}},description:`Get all articles.
110
-
111
- List up every articles archived in the BBS DB.`,validate:l=>({success:!0,data:l})},{name:"create",parameters:{description:" Properties of create function",type:"object",properties:{input:{description:`Information of the article to create
112
-
113
- ------------------------------
114
-
115
- Description of the current {@link IBbsArticle.ICreate} type:
116
-
117
- > Information of the article to create.
118
-
119
- ------------------------------
120
-
121
- Description of the parent {@link IBbsArticle} type:
85
+ If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:["id","created_at","updated_at","title","body","thumbnail"]}}},output:{description:"List of every articles",type:"array",items:{$ref:"#/$defs/IBbsArticle"}},description:`Get all articles.
122
86
 
123
- > Article entity.
124
- >
125
- > \`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.
87
+ List up every articles archived in the BBS DB.`,validate:l=>({success:!0,data:l})},{name:"create",parameters:{description:" Properties of create function",type:"object",properties:{input:{description:"Information of the article to create",$ref:"#/$defs/IBbsArticle.ICreate"}},required:["input"],additionalProperties:!1,$defs:{"IBbsArticle.ICreate":{description:"Information of the article to create.",type:"object",properties:{title:{title:"Title of the article",description:`Title of the article.
126
88
 
127
89
  Representative title of the article.`,type:"string"},body:{title:"Content body",description:`Content body.
128
90
 
@@ -130,11 +92,7 @@ Content body of the article writtn in the markdown format.`,type:"string"},thumb
130
92
 
131
93
  Thumbnail image URI which can represent the article.
132
94
 
133
- If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:["title","body","thumbnail"]}},required:["input"],additionalProperties:!1,$defs:{}},output:{description:`Description of the current {@link IBbsArticle} type:
134
-
135
- > Article entity.
136
- >
137
- > \`IBbsArticle\` is an entity representing an article in the BBS (Bulletin Board System).`,type:"object",properties:{id:{title:"Primary Key",description:"Primary Key.",type:"string",format:"uuid"},created_at:{title:"Creation time of the article",description:"Creation time of the article.",type:"string",format:"date-time"},updated_at:{title:"Last updated time of the article",description:"Last updated time of the article.",type:"string",format:"date-time"},title:{title:"Title of the article",description:`Title of the article.
95
+ If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:["title","body","thumbnail"]},IBbsArticle:{description:"Article entity.\n\n`IBbsArticle` is an entity representing an article in the BBS (Bulletin Board System).",type:"object",properties:{id:{title:"Primary Key",description:"Primary Key.",type:"string",format:"uuid"},created_at:{title:"Creation time of the article",description:"Creation time of the article.",type:"string",format:"date-time"},updated_at:{title:"Last updated time of the article",description:"Last updated time of the article.",type:"string",format:"date-time"},title:{title:"Title of the article",description:`Title of the article.
138
96
 
139
97
  Representative title of the article.`,type:"string"},body:{title:"Content body",description:`Content body.
140
98
 
@@ -142,15 +100,9 @@ Content body of the article writtn in the markdown format.`,type:"string"},thumb
142
100
 
143
101
  Thumbnail image URI which can represent the article.
144
102
 
145
- If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:["id","created_at","updated_at","title","body","thumbnail"]},description:`Create a new article.
146
-
147
- Writes a new article and archives it into the DB.`,validate:(()=>{const l=e=>typeof e.input=="object"&&e.input!==null&&c(e.input),c=e=>typeof e.title=="string"&&typeof e.body=="string"&&(e.thumbnail===null||typeof e.thumbnail=="string"&&u(e.thumbnail)),d=(e,t,i=!0)=>[(typeof e.input=="object"&&e.input!==null||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input})].every(a=>a),s=(e,t,i=!0)=>[typeof e.title=="string"||r(i,{path:t+".title",expected:"string",value:e.title}),typeof e.body=="string"||r(i,{path:t+".body",expected:"string",value:e.body}),e.thumbnail===null||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null)',value:e.thumbnail})].every(a=>a),o=e=>typeof e=="object"&&e!==null&&l(e);let n,r;return e=>{if(o(e)===!1){n=[],r=m(n),((i,a,h=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:a+"",expected:"__type",value:i}))&&d(i,a+"",!0)||r(!0,{path:a+"",expected:"__type",value:i}))(e,"$input",!0);const t=n.length===0;return t?{success:t,data:e}:{success:t,errors:n,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}.",type:"string",format:"uuid"},input:{description:`New content to update.
148
-
149
- ------------------------------
150
-
151
- Description of the current {@link PartialIBbsArticle.ICreate} type:
103
+ If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:["id","created_at","updated_at","title","body","thumbnail"]}}},output:{description:"Newly created article",$ref:"#/$defs/IBbsArticle"},description:`Create a new article.
152
104
 
153
- > Make all properties in T optional`,type:"object",properties:{title:{title:"Title of the article",description:`Title of the article.
105
+ Writes a new article and archives it into the DB.`,validate:(()=>{const l=e=>typeof e.input=="object"&&e.input!==null&&c(e.input),c=e=>typeof e.title=="string"&&typeof e.body=="string"&&(e.thumbnail===null||typeof e.thumbnail=="string"&&u(e.thumbnail)),d=(e,t,i=!0)=>[(typeof e.input=="object"&&e.input!==null||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input})].every(n=>n),s=(e,t,i=!0)=>[typeof e.title=="string"||r(i,{path:t+".title",expected:"string",value:e.title}),typeof e.body=="string"||r(i,{path:t+".body",expected:"string",value:e.body}),e.thumbnail===null||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null)',value:e.thumbnail})].every(n=>n),o=e=>typeof e=="object"&&e!==null&&l(e);let a,r;return e=>{if(o(e)===!1){a=[],r=m(a),((i,n,f=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:n+"",expected:"__type",value:i}))&&d(i,n+"",!0)||r(!0,{path:n+"",expected:"__type",value:i}))(e,"$input",!0);const t=a.length===0;return t?{success:t,data:e}:{success:t,errors:a,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}.",type:"string",format:"uuid"},input:{title:"New content to update",description:"New content to update.",$ref:"#/$defs/PartialIBbsArticle.ICreate"}},required:["id","input"],additionalProperties:!1,$defs:{"PartialIBbsArticle.ICreate":{description:"Make all properties in T optional",type:"object",properties:{title:{title:"Title of the article",description:`Title of the article.
154
106
 
155
107
  Representative title of the article.`,type:"string"},body:{title:"Content body",description:`Content body.
156
108
 
@@ -158,15 +110,11 @@ Content body of the article writtn in the markdown format.`,type:"string"},thumb
158
110
 
159
111
  Thumbnail image URI which can represent the article.
160
112
 
161
- If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:[]}},required:["id","input"],additionalProperties:!1,$defs:{}},description:`Update an article.
113
+ If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:[]}}},description:`Update an article.
162
114
 
163
- Updates an article with new content.`,validate:(()=>{const l=e=>typeof e.id=="string"&&p(e.id)&&typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1&&c(e.input),c=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"&&u(e.thumbnail)),d=(e,t,i=!0)=>[typeof e.id=="string"&&(p(e.id)||r(i,{path:t+".id",expected:'string & Format<"uuid">',value:e.id}))||r(i,{path:t+".id",expected:'(string & Format<"uuid">)',value:e.id}),(typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input})].every(a=>a),s=(e,t,i=!0)=>[e.title===void 0||typeof e.title=="string"||r(i,{path:t+".title",expected:"(string | undefined)",value:e.title}),e.body===void 0||typeof e.body=="string"||r(i,{path:t+".body",expected:"(string | undefined)",value:e.body}),e.thumbnail===null||e.thumbnail===void 0||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null | undefined)',value:e.thumbnail})].every(a=>a),o=e=>typeof e=="object"&&e!==null&&l(e);let n,r;return e=>{if(o(e)===!1){n=[],r=m(n),((i,a,h=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:a+"",expected:"__type",value:i}))&&d(i,a+"",!0)||r(!0,{path:a+"",expected:"__type",value:i}))(e,"$input",!0);const t=n.length===0;return t?{success:t,data:e}:{success:t,errors:n,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}.",type:"string",format:"uuid"}},required:["id"],additionalProperties:!1,$defs:{}},description:`Erase an article.
115
+ Updates an article with new content.`,validate:(()=>{const l=e=>typeof e.id=="string"&&p(e.id)&&typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1&&c(e.input),c=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"&&u(e.thumbnail)),d=(e,t,i=!0)=>[typeof e.id=="string"&&(p(e.id)||r(i,{path:t+".id",expected:'string & Format<"uuid">',value:e.id}))||r(i,{path:t+".id",expected:'(string & Format<"uuid">)',value:e.id}),(typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input})].every(n=>n),s=(e,t,i=!0)=>[e.title===void 0||typeof e.title=="string"||r(i,{path:t+".title",expected:"(string | undefined)",value:e.title}),e.body===void 0||typeof e.body=="string"||r(i,{path:t+".body",expected:"(string | undefined)",value:e.body}),e.thumbnail===null||e.thumbnail===void 0||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null | undefined)',value:e.thumbnail})].every(n=>n),o=e=>typeof e=="object"&&e!==null&&l(e);let a,r;return e=>{if(o(e)===!1){a=[],r=m(a),((i,n,f=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:n+"",expected:"__type",value:i}))&&d(i,n+"",!0)||r(!0,{path:n+"",expected:"__type",value:i}))(e,"$input",!0);const t=a.length===0;return t?{success:t,data:e}:{success:t,errors:a,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}.",type:"string",format:"uuid"}},required:["id"],additionalProperties:!1,$defs:{}},description:`Erase an article.
164
116
 
165
- Erases an article from the DB.`,validate:(()=>{const l=n=>typeof n.id=="string"&&p(n.id),c=(n,r,e=!0)=>[typeof n.id=="string"&&(p(n.id)||o(e,{path:r+".id",expected:'string & Format<"uuid">',value:n.id}))||o(e,{path:r+".id",expected:'(string & Format<"uuid">)',value:n.id})].every(t=>t),d=n=>typeof n=="object"&&n!==null&&l(n);let s,o;return n=>{if(d(n)===!1){s=[],o=m(s),((e,t,i=!0)=>(typeof e=="object"&&e!==null||o(!0,{path:t+"",expected:"__type",value:e}))&&c(e,t+"",!0)||o(!0,{path:t+"",expected:"__type",value:e}))(n,"$input",!0);const r=s.length===0;return r?{success:r,data:n}:{success:r,errors:s,data:n}}return{success:!0,data:n}}})()}]},deepseek:{model:"deepseek",options:{reference:!1,separate:null},functions:[{name:"index",parameters:{type:"object",properties:{},additionalProperties:!1,required:[],$defs:{}},output:{description:"List of every articles",type:"array",items:{description:`Description of the current {@link IBbsArticle} type:
166
-
167
- > Article entity.
168
- >
169
- > \`IBbsArticle\` is an entity representing an article in the BBS (Bulletin Board System).`,type:"object",properties:{id:{title:"Primary Key",description:"Primary Key.",type:"string",format:"uuid"},created_at:{title:"Creation time of the article",description:"Creation time of the article.",type:"string",format:"date-time"},updated_at:{title:"Last updated time of the article",description:"Last updated time of the article.",type:"string",format:"date-time"},title:{title:"Title of the article",description:`Title of the article.
117
+ Erases an article from the DB.`,validate:(()=>{const l=a=>typeof a.id=="string"&&p(a.id),c=(a,r,e=!0)=>[typeof a.id=="string"&&(p(a.id)||o(e,{path:r+".id",expected:'string & Format<"uuid">',value:a.id}))||o(e,{path:r+".id",expected:'(string & Format<"uuid">)',value:a.id})].every(t=>t),d=a=>typeof a=="object"&&a!==null&&l(a);let s,o;return a=>{if(d(a)===!1){s=[],o=m(s),((e,t,i=!0)=>(typeof e=="object"&&e!==null||o(!0,{path:t+"",expected:"__type",value:e}))&&c(e,t+"",!0)||o(!0,{path:t+"",expected:"__type",value:e}))(a,"$input",!0);const r=s.length===0;return r?{success:r,data:a}:{success:r,errors:s,data:a}}return{success:!0,data:a}}})()}]},deepseek:{model:"deepseek",options:{reference:!0,separate:null},functions:[{name:"index",parameters:{type:"object",properties:{},additionalProperties:!1,required:[],$defs:{IBbsArticle:{description:"Article entity.\n\n`IBbsArticle` is an entity representing an article in the BBS (Bulletin Board System).",type:"object",properties:{id:{title:"Primary Key",description:"Primary Key.",type:"string",format:"uuid"},created_at:{title:"Creation time of the article",description:"Creation time of the article.",type:"string",format:"date-time"},updated_at:{title:"Last updated time of the article",description:"Last updated time of the article.",type:"string",format:"date-time"},title:{title:"Title of the article",description:`Title of the article.
170
118
 
171
119
  Representative title of the article.`,type:"string"},body:{title:"Content body",description:`Content body.
172
120
 
@@ -174,23 +122,9 @@ Content body of the article writtn in the markdown format.`,type:"string"},thumb
174
122
 
175
123
  Thumbnail image URI which can represent the article.
176
124
 
177
- If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:["id","created_at","updated_at","title","body","thumbnail"]}},description:`Get all articles.
178
-
179
- List up every articles archived in the BBS DB.`,validate:l=>({success:!0,data:l})},{name:"create",parameters:{description:" Properties of create function",type:"object",properties:{input:{description:`Information of the article to create
180
-
181
- ------------------------------
182
-
183
- Description of the current {@link IBbsArticle.ICreate} type:
184
-
185
- > Information of the article to create.
186
-
187
- ------------------------------
188
-
189
- Description of the parent {@link IBbsArticle} type:
125
+ If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:["id","created_at","updated_at","title","body","thumbnail"]}}},output:{description:"List of every articles",type:"array",items:{$ref:"#/$defs/IBbsArticle"}},description:`Get all articles.
190
126
 
191
- > Article entity.
192
- >
193
- > \`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.
127
+ List up every articles archived in the BBS DB.`,validate:l=>({success:!0,data:l})},{name:"create",parameters:{description:" Properties of create function",type:"object",properties:{input:{description:"Information of the article to create",$ref:"#/$defs/IBbsArticle.ICreate"}},required:["input"],additionalProperties:!1,$defs:{"IBbsArticle.ICreate":{description:"Information of the article to create.",type:"object",properties:{title:{title:"Title of the article",description:`Title of the article.
194
128
 
195
129
  Representative title of the article.`,type:"string"},body:{title:"Content body",description:`Content body.
196
130
 
@@ -198,11 +132,7 @@ Content body of the article writtn in the markdown format.`,type:"string"},thumb
198
132
 
199
133
  Thumbnail image URI which can represent the article.
200
134
 
201
- If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:["title","body","thumbnail"]}},required:["input"],additionalProperties:!1,$defs:{}},output:{description:`Description of the current {@link IBbsArticle} type:
202
-
203
- > Article entity.
204
- >
205
- > \`IBbsArticle\` is an entity representing an article in the BBS (Bulletin Board System).`,type:"object",properties:{id:{title:"Primary Key",description:"Primary Key.",type:"string",format:"uuid"},created_at:{title:"Creation time of the article",description:"Creation time of the article.",type:"string",format:"date-time"},updated_at:{title:"Last updated time of the article",description:"Last updated time of the article.",type:"string",format:"date-time"},title:{title:"Title of the article",description:`Title of the article.
135
+ If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:["title","body","thumbnail"]},IBbsArticle:{description:"Article entity.\n\n`IBbsArticle` is an entity representing an article in the BBS (Bulletin Board System).",type:"object",properties:{id:{title:"Primary Key",description:"Primary Key.",type:"string",format:"uuid"},created_at:{title:"Creation time of the article",description:"Creation time of the article.",type:"string",format:"date-time"},updated_at:{title:"Last updated time of the article",description:"Last updated time of the article.",type:"string",format:"date-time"},title:{title:"Title of the article",description:`Title of the article.
206
136
 
207
137
  Representative title of the article.`,type:"string"},body:{title:"Content body",description:`Content body.
208
138
 
@@ -210,15 +140,9 @@ Content body of the article writtn in the markdown format.`,type:"string"},thumb
210
140
 
211
141
  Thumbnail image URI which can represent the article.
212
142
 
213
- If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:["id","created_at","updated_at","title","body","thumbnail"]},description:`Create a new article.
214
-
215
- Writes a new article and archives it into the DB.`,validate:(()=>{const l=e=>typeof e.input=="object"&&e.input!==null&&c(e.input),c=e=>typeof e.title=="string"&&typeof e.body=="string"&&(e.thumbnail===null||typeof e.thumbnail=="string"&&u(e.thumbnail)),d=(e,t,i=!0)=>[(typeof e.input=="object"&&e.input!==null||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input})].every(a=>a),s=(e,t,i=!0)=>[typeof e.title=="string"||r(i,{path:t+".title",expected:"string",value:e.title}),typeof e.body=="string"||r(i,{path:t+".body",expected:"string",value:e.body}),e.thumbnail===null||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null)',value:e.thumbnail})].every(a=>a),o=e=>typeof e=="object"&&e!==null&&l(e);let n,r;return e=>{if(o(e)===!1){n=[],r=m(n),((i,a,h=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:a+"",expected:"__type",value:i}))&&d(i,a+"",!0)||r(!0,{path:a+"",expected:"__type",value:i}))(e,"$input",!0);const t=n.length===0;return t?{success:t,data:e}:{success:t,errors:n,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}.",type:"string",format:"uuid"},input:{description:`New content to update.
143
+ If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:["id","created_at","updated_at","title","body","thumbnail"]}}},output:{description:"Newly created article",$ref:"#/$defs/IBbsArticle"},description:`Create a new article.
216
144
 
217
- ------------------------------
218
-
219
- Description of the current {@link PartialIBbsArticle.ICreate} type:
220
-
221
- > Make all properties in T optional`,type:"object",properties:{title:{title:"Title of the article",description:`Title of the article.
145
+ Writes a new article and archives it into the DB.`,validate:(()=>{const l=e=>typeof e.input=="object"&&e.input!==null&&c(e.input),c=e=>typeof e.title=="string"&&typeof e.body=="string"&&(e.thumbnail===null||typeof e.thumbnail=="string"&&u(e.thumbnail)),d=(e,t,i=!0)=>[(typeof e.input=="object"&&e.input!==null||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input})].every(n=>n),s=(e,t,i=!0)=>[typeof e.title=="string"||r(i,{path:t+".title",expected:"string",value:e.title}),typeof e.body=="string"||r(i,{path:t+".body",expected:"string",value:e.body}),e.thumbnail===null||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null)',value:e.thumbnail})].every(n=>n),o=e=>typeof e=="object"&&e!==null&&l(e);let a,r;return e=>{if(o(e)===!1){a=[],r=m(a),((i,n,f=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:n+"",expected:"__type",value:i}))&&d(i,n+"",!0)||r(!0,{path:n+"",expected:"__type",value:i}))(e,"$input",!0);const t=a.length===0;return t?{success:t,data:e}:{success:t,errors:a,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}.",type:"string",format:"uuid"},input:{title:"New content to update",description:"New content to update.",$ref:"#/$defs/PartialIBbsArticle.ICreate"}},required:["id","input"],additionalProperties:!1,$defs:{"PartialIBbsArticle.ICreate":{description:"Make all properties in T optional",type:"object",properties:{title:{title:"Title of the article",description:`Title of the article.
222
146
 
223
147
  Representative title of the article.`,type:"string"},body:{title:"Content body",description:`Content body.
224
148
 
@@ -226,11 +150,11 @@ Content body of the article writtn in the markdown format.`,type:"string"},thumb
226
150
 
227
151
  Thumbnail image URI which can represent the article.
228
152
 
229
- If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:[]}},required:["id","input"],additionalProperties:!1,$defs:{}},description:`Update an article.
153
+ If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:[]}}},description:`Update an article.
230
154
 
231
- Updates an article with new content.`,validate:(()=>{const l=e=>typeof e.id=="string"&&p(e.id)&&typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1&&c(e.input),c=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"&&u(e.thumbnail)),d=(e,t,i=!0)=>[typeof e.id=="string"&&(p(e.id)||r(i,{path:t+".id",expected:'string & Format<"uuid">',value:e.id}))||r(i,{path:t+".id",expected:'(string & Format<"uuid">)',value:e.id}),(typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input})].every(a=>a),s=(e,t,i=!0)=>[e.title===void 0||typeof e.title=="string"||r(i,{path:t+".title",expected:"(string | undefined)",value:e.title}),e.body===void 0||typeof e.body=="string"||r(i,{path:t+".body",expected:"(string | undefined)",value:e.body}),e.thumbnail===null||e.thumbnail===void 0||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null | undefined)',value:e.thumbnail})].every(a=>a),o=e=>typeof e=="object"&&e!==null&&l(e);let n,r;return e=>{if(o(e)===!1){n=[],r=m(n),((i,a,h=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:a+"",expected:"__type",value:i}))&&d(i,a+"",!0)||r(!0,{path:a+"",expected:"__type",value:i}))(e,"$input",!0);const t=n.length===0;return t?{success:t,data:e}:{success:t,errors:n,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}.",type:"string",format:"uuid"}},required:["id"],additionalProperties:!1,$defs:{}},description:`Erase an article.
155
+ Updates an article with new content.`,validate:(()=>{const l=e=>typeof e.id=="string"&&p(e.id)&&typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1&&c(e.input),c=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"&&u(e.thumbnail)),d=(e,t,i=!0)=>[typeof e.id=="string"&&(p(e.id)||r(i,{path:t+".id",expected:'string & Format<"uuid">',value:e.id}))||r(i,{path:t+".id",expected:'(string & Format<"uuid">)',value:e.id}),(typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input})].every(n=>n),s=(e,t,i=!0)=>[e.title===void 0||typeof e.title=="string"||r(i,{path:t+".title",expected:"(string | undefined)",value:e.title}),e.body===void 0||typeof e.body=="string"||r(i,{path:t+".body",expected:"(string | undefined)",value:e.body}),e.thumbnail===null||e.thumbnail===void 0||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null | undefined)',value:e.thumbnail})].every(n=>n),o=e=>typeof e=="object"&&e!==null&&l(e);let a,r;return e=>{if(o(e)===!1){a=[],r=m(a),((i,n,f=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:n+"",expected:"__type",value:i}))&&d(i,n+"",!0)||r(!0,{path:n+"",expected:"__type",value:i}))(e,"$input",!0);const t=a.length===0;return t?{success:t,data:e}:{success:t,errors:a,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}.",type:"string",format:"uuid"}},required:["id"],additionalProperties:!1,$defs:{}},description:`Erase an article.
232
156
 
233
- Erases an article from the DB.`,validate:(()=>{const l=n=>typeof n.id=="string"&&p(n.id),c=(n,r,e=!0)=>[typeof n.id=="string"&&(p(n.id)||o(e,{path:r+".id",expected:'string & Format<"uuid">',value:n.id}))||o(e,{path:r+".id",expected:'(string & Format<"uuid">)',value:n.id})].every(t=>t),d=n=>typeof n=="object"&&n!==null&&l(n);let s,o;return n=>{if(d(n)===!1){s=[],o=m(s),((e,t,i=!0)=>(typeof e=="object"&&e!==null||o(!0,{path:t+"",expected:"__type",value:e}))&&c(e,t+"",!0)||o(!0,{path:t+"",expected:"__type",value:e}))(n,"$input",!0);const r=s.length===0;return r?{success:r,data:n}:{success:r,errors:s,data:n}}return{success:!0,data:n}}})()}]},gemini:{model:"gemini",options:{recursive:3,separate:null},functions:[{name:"index",parameters:{type:"object",properties:{},required:[]},output:{type:"array",items:{type:"object",properties:{id:{type:"string",description:`Primary Key.
157
+ Erases an article from the DB.`,validate:(()=>{const l=a=>typeof a.id=="string"&&p(a.id),c=(a,r,e=!0)=>[typeof a.id=="string"&&(p(a.id)||o(e,{path:r+".id",expected:'string & Format<"uuid">',value:a.id}))||o(e,{path:r+".id",expected:'(string & Format<"uuid">)',value:a.id})].every(t=>t),d=a=>typeof a=="object"&&a!==null&&l(a);let s,o;return a=>{if(d(a)===!1){s=[],o=m(s),((e,t,i=!0)=>(typeof e=="object"&&e!==null||o(!0,{path:t+"",expected:"__type",value:e}))&&c(e,t+"",!0)||o(!0,{path:t+"",expected:"__type",value:e}))(a,"$input",!0);const r=s.length===0;return r?{success:r,data:a}:{success:r,errors:s,data:a}}return{success:!0,data:a}}})()}]},gemini:{model:"gemini",options:{recursive:3,separate:null},functions:[{name:"index",parameters:{type:"object",properties:{},required:[]},output:{type:"array",items:{type:"object",properties:{id:{type:"string",description:`Primary Key.
234
158
 
235
159
 
236
160
  @format uuid`},created_at:{type:"string",description:`Creation time of the article.
@@ -310,7 +234,7 @@ If configured as \`null\`, it means that no thumbnail image in the article.
310
234
  >
311
235
  > \`IBbsArticle\` is an entity representing an article in the BBS (Bulletin Board System).`},description:`Create a new article.
312
236
 
313
- Writes a new article and archives it into the DB.`,validate:(()=>{const l=e=>typeof e.input=="object"&&e.input!==null&&c(e.input),c=e=>typeof e.title=="string"&&typeof e.body=="string"&&(e.thumbnail===null||typeof e.thumbnail=="string"&&u(e.thumbnail)),d=(e,t,i=!0)=>[(typeof e.input=="object"&&e.input!==null||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input})].every(a=>a),s=(e,t,i=!0)=>[typeof e.title=="string"||r(i,{path:t+".title",expected:"string",value:e.title}),typeof e.body=="string"||r(i,{path:t+".body",expected:"string",value:e.body}),e.thumbnail===null||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null)',value:e.thumbnail})].every(a=>a),o=e=>typeof e=="object"&&e!==null&&l(e);let n,r;return e=>{if(o(e)===!1){n=[],r=m(n),((i,a,h=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:a+"",expected:"__type",value:i}))&&d(i,a+"",!0)||r(!0,{path:a+"",expected:"__type",value:i}))(e,"$input",!0);const t=n.length===0;return t?{success:t,data:e}:{success:t,errors:n,data:e}}return{success:!0,data:e}}})()},{name:"update",parameters:{type:"object",properties:{id:{type:"string",description:`Target article's {@link IBbsArticle.id}.
237
+ Writes a new article and archives it into the DB.`,validate:(()=>{const l=e=>typeof e.input=="object"&&e.input!==null&&c(e.input),c=e=>typeof e.title=="string"&&typeof e.body=="string"&&(e.thumbnail===null||typeof e.thumbnail=="string"&&u(e.thumbnail)),d=(e,t,i=!0)=>[(typeof e.input=="object"&&e.input!==null||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input})].every(n=>n),s=(e,t,i=!0)=>[typeof e.title=="string"||r(i,{path:t+".title",expected:"string",value:e.title}),typeof e.body=="string"||r(i,{path:t+".body",expected:"string",value:e.body}),e.thumbnail===null||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null)',value:e.thumbnail})].every(n=>n),o=e=>typeof e=="object"&&e!==null&&l(e);let a,r;return e=>{if(o(e)===!1){a=[],r=m(a),((i,n,f=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:n+"",expected:"__type",value:i}))&&d(i,n+"",!0)||r(!0,{path:n+"",expected:"__type",value:i}))(e,"$input",!0);const t=a.length===0;return t?{success:t,data:e}:{success:t,errors:a,data:e}}return{success:!0,data:e}}})()},{name:"update",parameters:{type:"object",properties:{id:{type:"string",description:`Target article's {@link IBbsArticle.id}.
314
238
 
315
239
 
316
240
  @format uuid`},input:{type:"object",properties:{title:{type:"string",description:`Title of the article.
@@ -333,16 +257,12 @@ Description of the current {@link PartialIBbsArticle.ICreate} type:
333
257
 
334
258
  > Make all properties in T optional`}},required:["id","input"],description:" Properties of update function"},description:`Update an article.
335
259
 
336
- Updates an article with new content.`,validate:(()=>{const l=e=>typeof e.id=="string"&&p(e.id)&&typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1&&c(e.input),c=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"&&u(e.thumbnail)),d=(e,t,i=!0)=>[typeof e.id=="string"&&(p(e.id)||r(i,{path:t+".id",expected:'string & Format<"uuid">',value:e.id}))||r(i,{path:t+".id",expected:'(string & Format<"uuid">)',value:e.id}),(typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input})].every(a=>a),s=(e,t,i=!0)=>[e.title===void 0||typeof e.title=="string"||r(i,{path:t+".title",expected:"(string | undefined)",value:e.title}),e.body===void 0||typeof e.body=="string"||r(i,{path:t+".body",expected:"(string | undefined)",value:e.body}),e.thumbnail===null||e.thumbnail===void 0||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null | undefined)',value:e.thumbnail})].every(a=>a),o=e=>typeof e=="object"&&e!==null&&l(e);let n,r;return e=>{if(o(e)===!1){n=[],r=m(n),((i,a,h=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:a+"",expected:"__type",value:i}))&&d(i,a+"",!0)||r(!0,{path:a+"",expected:"__type",value:i}))(e,"$input",!0);const t=n.length===0;return t?{success:t,data:e}:{success:t,errors:n,data:e}}return{success:!0,data:e}}})()},{name:"erase",parameters:{type:"object",properties:{id:{type:"string",description:`Target article's {@link IBbsArticle.id}.
260
+ Updates an article with new content.`,validate:(()=>{const l=e=>typeof e.id=="string"&&p(e.id)&&typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1&&c(e.input),c=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"&&u(e.thumbnail)),d=(e,t,i=!0)=>[typeof e.id=="string"&&(p(e.id)||r(i,{path:t+".id",expected:'string & Format<"uuid">',value:e.id}))||r(i,{path:t+".id",expected:'(string & Format<"uuid">)',value:e.id}),(typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input})].every(n=>n),s=(e,t,i=!0)=>[e.title===void 0||typeof e.title=="string"||r(i,{path:t+".title",expected:"(string | undefined)",value:e.title}),e.body===void 0||typeof e.body=="string"||r(i,{path:t+".body",expected:"(string | undefined)",value:e.body}),e.thumbnail===null||e.thumbnail===void 0||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null | undefined)',value:e.thumbnail})].every(n=>n),o=e=>typeof e=="object"&&e!==null&&l(e);let a,r;return e=>{if(o(e)===!1){a=[],r=m(a),((i,n,f=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:n+"",expected:"__type",value:i}))&&d(i,n+"",!0)||r(!0,{path:n+"",expected:"__type",value:i}))(e,"$input",!0);const t=a.length===0;return t?{success:t,data:e}:{success:t,errors:a,data:e}}return{success:!0,data:e}}})()},{name:"erase",parameters:{type:"object",properties:{id:{type:"string",description:`Target article's {@link IBbsArticle.id}.
337
261
 
338
262
 
339
263
  @format uuid`}},required:["id"],description:" Properties of erase function"},description:`Erase an article.
340
264
 
341
- Erases an article from the DB.`,validate:(()=>{const l=n=>typeof n.id=="string"&&p(n.id),c=(n,r,e=!0)=>[typeof n.id=="string"&&(p(n.id)||o(e,{path:r+".id",expected:'string & Format<"uuid">',value:n.id}))||o(e,{path:r+".id",expected:'(string & Format<"uuid">)',value:n.id})].every(t=>t),d=n=>typeof n=="object"&&n!==null&&l(n);let s,o;return n=>{if(d(n)===!1){s=[],o=m(s),((e,t,i=!0)=>(typeof e=="object"&&e!==null||o(!0,{path:t+"",expected:"__type",value:e}))&&c(e,t+"",!0)||o(!0,{path:t+"",expected:"__type",value:e}))(n,"$input",!0);const r=s.length===0;return r?{success:r,data:n}:{success:r,errors:s,data:n}}return{success:!0,data:n}}})()}]},llama:{model:"llama",options:{reference:!1,separate:null},functions:[{name:"index",parameters:{type:"object",properties:{},additionalProperties:!1,required:[],$defs:{}},output:{description:"List of every articles",type:"array",items:{description:`Description of the current {@link IBbsArticle} type:
342
-
343
- > Article entity.
344
- >
345
- > \`IBbsArticle\` is an entity representing an article in the BBS (Bulletin Board System).`,type:"object",properties:{id:{title:"Primary Key",description:"Primary Key.",type:"string",format:"uuid"},created_at:{title:"Creation time of the article",description:"Creation time of the article.",type:"string",format:"date-time"},updated_at:{title:"Last updated time of the article",description:"Last updated time of the article.",type:"string",format:"date-time"},title:{title:"Title of the article",description:`Title of the article.
265
+ Erases an article from the DB.`,validate:(()=>{const l=a=>typeof a.id=="string"&&p(a.id),c=(a,r,e=!0)=>[typeof a.id=="string"&&(p(a.id)||o(e,{path:r+".id",expected:'string & Format<"uuid">',value:a.id}))||o(e,{path:r+".id",expected:'(string & Format<"uuid">)',value:a.id})].every(t=>t),d=a=>typeof a=="object"&&a!==null&&l(a);let s,o;return a=>{if(d(a)===!1){s=[],o=m(s),((e,t,i=!0)=>(typeof e=="object"&&e!==null||o(!0,{path:t+"",expected:"__type",value:e}))&&c(e,t+"",!0)||o(!0,{path:t+"",expected:"__type",value:e}))(a,"$input",!0);const r=s.length===0;return r?{success:r,data:a}:{success:r,errors:s,data:a}}return{success:!0,data:a}}})()}]},llama:{model:"llama",options:{reference:!0,separate:null},functions:[{name:"index",parameters:{type:"object",properties:{},additionalProperties:!1,required:[],$defs:{IBbsArticle:{description:"Article entity.\n\n`IBbsArticle` is an entity representing an article in the BBS (Bulletin Board System).",type:"object",properties:{id:{title:"Primary Key",description:"Primary Key.",type:"string",format:"uuid"},created_at:{title:"Creation time of the article",description:"Creation time of the article.",type:"string",format:"date-time"},updated_at:{title:"Last updated time of the article",description:"Last updated time of the article.",type:"string",format:"date-time"},title:{title:"Title of the article",description:`Title of the article.
346
266
 
347
267
  Representative title of the article.`,type:"string"},body:{title:"Content body",description:`Content body.
348
268
 
@@ -350,23 +270,9 @@ Content body of the article writtn in the markdown format.`,type:"string"},thumb
350
270
 
351
271
  Thumbnail image URI which can represent the article.
352
272
 
353
- If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:["id","created_at","updated_at","title","body","thumbnail"]}},description:`Get all articles.
354
-
355
- List up every articles archived in the BBS DB.`,validate:l=>({success:!0,data:l})},{name:"create",parameters:{description:" Properties of create function",type:"object",properties:{input:{description:`Information of the article to create
273
+ If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:["id","created_at","updated_at","title","body","thumbnail"]}}},output:{description:"List of every articles",type:"array",items:{$ref:"#/$defs/IBbsArticle"}},description:`Get all articles.
356
274
 
357
- ------------------------------
358
-
359
- Description of the current {@link IBbsArticle.ICreate} type:
360
-
361
- > Information of the article to create.
362
-
363
- ------------------------------
364
-
365
- Description of the parent {@link IBbsArticle} type:
366
-
367
- > Article entity.
368
- >
369
- > \`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.
275
+ List up every articles archived in the BBS DB.`,validate:l=>({success:!0,data:l})},{name:"create",parameters:{description:" Properties of create function",type:"object",properties:{input:{description:"Information of the article to create",$ref:"#/$defs/IBbsArticle.ICreate"}},required:["input"],additionalProperties:!1,$defs:{"IBbsArticle.ICreate":{description:"Information of the article to create.",type:"object",properties:{title:{title:"Title of the article",description:`Title of the article.
370
276
 
371
277
  Representative title of the article.`,type:"string"},body:{title:"Content body",description:`Content body.
372
278
 
@@ -374,11 +280,7 @@ Content body of the article writtn in the markdown format.`,type:"string"},thumb
374
280
 
375
281
  Thumbnail image URI which can represent the article.
376
282
 
377
- If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:["title","body","thumbnail"]}},required:["input"],additionalProperties:!1,$defs:{}},output:{description:`Description of the current {@link IBbsArticle} type:
378
-
379
- > Article entity.
380
- >
381
- > \`IBbsArticle\` is an entity representing an article in the BBS (Bulletin Board System).`,type:"object",properties:{id:{title:"Primary Key",description:"Primary Key.",type:"string",format:"uuid"},created_at:{title:"Creation time of the article",description:"Creation time of the article.",type:"string",format:"date-time"},updated_at:{title:"Last updated time of the article",description:"Last updated time of the article.",type:"string",format:"date-time"},title:{title:"Title of the article",description:`Title of the article.
283
+ If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:["title","body","thumbnail"]},IBbsArticle:{description:"Article entity.\n\n`IBbsArticle` is an entity representing an article in the BBS (Bulletin Board System).",type:"object",properties:{id:{title:"Primary Key",description:"Primary Key.",type:"string",format:"uuid"},created_at:{title:"Creation time of the article",description:"Creation time of the article.",type:"string",format:"date-time"},updated_at:{title:"Last updated time of the article",description:"Last updated time of the article.",type:"string",format:"date-time"},title:{title:"Title of the article",description:`Title of the article.
382
284
 
383
285
  Representative title of the article.`,type:"string"},body:{title:"Content body",description:`Content body.
384
286
 
@@ -386,15 +288,9 @@ Content body of the article writtn in the markdown format.`,type:"string"},thumb
386
288
 
387
289
  Thumbnail image URI which can represent the article.
388
290
 
389
- If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:["id","created_at","updated_at","title","body","thumbnail"]},description:`Create a new article.
291
+ If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:["id","created_at","updated_at","title","body","thumbnail"]}}},output:{description:"Newly created article",$ref:"#/$defs/IBbsArticle"},description:`Create a new article.
390
292
 
391
- Writes a new article and archives it into the DB.`,validate:(()=>{const l=e=>typeof e.input=="object"&&e.input!==null&&c(e.input),c=e=>typeof e.title=="string"&&typeof e.body=="string"&&(e.thumbnail===null||typeof e.thumbnail=="string"&&u(e.thumbnail)),d=(e,t,i=!0)=>[(typeof e.input=="object"&&e.input!==null||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input})].every(a=>a),s=(e,t,i=!0)=>[typeof e.title=="string"||r(i,{path:t+".title",expected:"string",value:e.title}),typeof e.body=="string"||r(i,{path:t+".body",expected:"string",value:e.body}),e.thumbnail===null||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null)',value:e.thumbnail})].every(a=>a),o=e=>typeof e=="object"&&e!==null&&l(e);let n,r;return e=>{if(o(e)===!1){n=[],r=m(n),((i,a,h=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:a+"",expected:"__type",value:i}))&&d(i,a+"",!0)||r(!0,{path:a+"",expected:"__type",value:i}))(e,"$input",!0);const t=n.length===0;return t?{success:t,data:e}:{success:t,errors:n,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}.",type:"string",format:"uuid"},input:{description:`New content to update.
392
-
393
- ------------------------------
394
-
395
- Description of the current {@link PartialIBbsArticle.ICreate} type:
396
-
397
- > Make all properties in T optional`,type:"object",properties:{title:{title:"Title of the article",description:`Title of the article.
293
+ Writes a new article and archives it into the DB.`,validate:(()=>{const l=e=>typeof e.input=="object"&&e.input!==null&&c(e.input),c=e=>typeof e.title=="string"&&typeof e.body=="string"&&(e.thumbnail===null||typeof e.thumbnail=="string"&&u(e.thumbnail)),d=(e,t,i=!0)=>[(typeof e.input=="object"&&e.input!==null||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input})].every(n=>n),s=(e,t,i=!0)=>[typeof e.title=="string"||r(i,{path:t+".title",expected:"string",value:e.title}),typeof e.body=="string"||r(i,{path:t+".body",expected:"string",value:e.body}),e.thumbnail===null||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null)',value:e.thumbnail})].every(n=>n),o=e=>typeof e=="object"&&e!==null&&l(e);let a,r;return e=>{if(o(e)===!1){a=[],r=m(a),((i,n,f=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:n+"",expected:"__type",value:i}))&&d(i,n+"",!0)||r(!0,{path:n+"",expected:"__type",value:i}))(e,"$input",!0);const t=a.length===0;return t?{success:t,data:e}:{success:t,errors:a,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}.",type:"string",format:"uuid"},input:{title:"New content to update",description:"New content to update.",$ref:"#/$defs/PartialIBbsArticle.ICreate"}},required:["id","input"],additionalProperties:!1,$defs:{"PartialIBbsArticle.ICreate":{description:"Make all properties in T optional",type:"object",properties:{title:{title:"Title of the article",description:`Title of the article.
398
294
 
399
295
  Representative title of the article.`,type:"string"},body:{title:"Content body",description:`Content body.
400
296
 
@@ -402,11 +298,11 @@ Content body of the article writtn in the markdown format.`,type:"string"},thumb
402
298
 
403
299
  Thumbnail image URI which can represent the article.
404
300
 
405
- If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:[]}},required:["id","input"],additionalProperties:!1,$defs:{}},description:`Update an article.
301
+ If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:[]}}},description:`Update an article.
406
302
 
407
- Updates an article with new content.`,validate:(()=>{const l=e=>typeof e.id=="string"&&p(e.id)&&typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1&&c(e.input),c=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"&&u(e.thumbnail)),d=(e,t,i=!0)=>[typeof e.id=="string"&&(p(e.id)||r(i,{path:t+".id",expected:'string & Format<"uuid">',value:e.id}))||r(i,{path:t+".id",expected:'(string & Format<"uuid">)',value:e.id}),(typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input})].every(a=>a),s=(e,t,i=!0)=>[e.title===void 0||typeof e.title=="string"||r(i,{path:t+".title",expected:"(string | undefined)",value:e.title}),e.body===void 0||typeof e.body=="string"||r(i,{path:t+".body",expected:"(string | undefined)",value:e.body}),e.thumbnail===null||e.thumbnail===void 0||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null | undefined)',value:e.thumbnail})].every(a=>a),o=e=>typeof e=="object"&&e!==null&&l(e);let n,r;return e=>{if(o(e)===!1){n=[],r=m(n),((i,a,h=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:a+"",expected:"__type",value:i}))&&d(i,a+"",!0)||r(!0,{path:a+"",expected:"__type",value:i}))(e,"$input",!0);const t=n.length===0;return t?{success:t,data:e}:{success:t,errors:n,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}.",type:"string",format:"uuid"}},required:["id"],additionalProperties:!1,$defs:{}},description:`Erase an article.
303
+ Updates an article with new content.`,validate:(()=>{const l=e=>typeof e.id=="string"&&p(e.id)&&typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1&&c(e.input),c=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"&&u(e.thumbnail)),d=(e,t,i=!0)=>[typeof e.id=="string"&&(p(e.id)||r(i,{path:t+".id",expected:'string & Format<"uuid">',value:e.id}))||r(i,{path:t+".id",expected:'(string & Format<"uuid">)',value:e.id}),(typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input})].every(n=>n),s=(e,t,i=!0)=>[e.title===void 0||typeof e.title=="string"||r(i,{path:t+".title",expected:"(string | undefined)",value:e.title}),e.body===void 0||typeof e.body=="string"||r(i,{path:t+".body",expected:"(string | undefined)",value:e.body}),e.thumbnail===null||e.thumbnail===void 0||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null | undefined)',value:e.thumbnail})].every(n=>n),o=e=>typeof e=="object"&&e!==null&&l(e);let a,r;return e=>{if(o(e)===!1){a=[],r=m(a),((i,n,f=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:n+"",expected:"__type",value:i}))&&d(i,n+"",!0)||r(!0,{path:n+"",expected:"__type",value:i}))(e,"$input",!0);const t=a.length===0;return t?{success:t,data:e}:{success:t,errors:a,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}.",type:"string",format:"uuid"}},required:["id"],additionalProperties:!1,$defs:{}},description:`Erase an article.
408
304
 
409
- Erases an article from the DB.`,validate:(()=>{const l=n=>typeof n.id=="string"&&p(n.id),c=(n,r,e=!0)=>[typeof n.id=="string"&&(p(n.id)||o(e,{path:r+".id",expected:'string & Format<"uuid">',value:n.id}))||o(e,{path:r+".id",expected:'(string & Format<"uuid">)',value:n.id})].every(t=>t),d=n=>typeof n=="object"&&n!==null&&l(n);let s,o;return n=>{if(d(n)===!1){s=[],o=m(s),((e,t,i=!0)=>(typeof e=="object"&&e!==null||o(!0,{path:t+"",expected:"__type",value:e}))&&c(e,t+"",!0)||o(!0,{path:t+"",expected:"__type",value:e}))(n,"$input",!0);const r=s.length===0;return r?{success:r,data:n}:{success:r,errors:s,data:n}}return{success:!0,data:n}}})()}]},"3.0":{model:"3.0",options:{constraint:!0,recursive:3,separate:null},functions:[{name:"index",parameters:{type:"object",properties:{},additionalProperties:!1,required:[]},output:{type:"array",items:{type:"object",properties:{id:{type:"string",format:"uuid",title:"Primary Key",description:"Primary Key."},created_at:{type:"string",format:"date-time",title:"Creation time of the article",description:"Creation time of the article."},updated_at:{type:"string",format:"date-time",title:"Last updated time of the article",description:"Last updated time of the article."},title:{type:"string",title:"Title of the article",description:`Title of the article.
305
+ Erases an article from the DB.`,validate:(()=>{const l=a=>typeof a.id=="string"&&p(a.id),c=(a,r,e=!0)=>[typeof a.id=="string"&&(p(a.id)||o(e,{path:r+".id",expected:'string & Format<"uuid">',value:a.id}))||o(e,{path:r+".id",expected:'(string & Format<"uuid">)',value:a.id})].every(t=>t),d=a=>typeof a=="object"&&a!==null&&l(a);let s,o;return a=>{if(d(a)===!1){s=[],o=m(s),((e,t,i=!0)=>(typeof e=="object"&&e!==null||o(!0,{path:t+"",expected:"__type",value:e}))&&c(e,t+"",!0)||o(!0,{path:t+"",expected:"__type",value:e}))(a,"$input",!0);const r=s.length===0;return r?{success:r,data:a}:{success:r,errors:s,data:a}}return{success:!0,data:a}}})()}]},"3.0":{model:"3.0",options:{recursive:3,constraint:!0,separate:null},functions:[{name:"index",parameters:{type:"object",properties:{},additionalProperties:!1,required:[]},output:{type:"array",items:{type:"object",properties:{id:{type:"string",format:"uuid",title:"Primary Key",description:"Primary Key."},created_at:{type:"string",format:"date-time",title:"Creation time of the article",description:"Creation time of the article."},updated_at:{type:"string",format:"date-time",title:"Last updated time of the article",description:"Last updated time of the article."},title:{type:"string",title:"Title of the article",description:`Title of the article.
410
306
 
411
307
  Representative title of the article.`},body:{type:"string",title:"Content body",description:`Content body.
412
308
 
@@ -456,7 +352,7 @@ If configured as \`null\`, it means that no thumbnail image in the article.`}},r
456
352
  >
457
353
  > \`IBbsArticle\` is an entity representing an article in the BBS (Bulletin Board System).`,additionalProperties:!1},description:`Create a new article.
458
354
 
459
- Writes a new article and archives it into the DB.`,validate:(()=>{const l=e=>typeof e.input=="object"&&e.input!==null&&c(e.input),c=e=>typeof e.title=="string"&&typeof e.body=="string"&&(e.thumbnail===null||typeof e.thumbnail=="string"&&u(e.thumbnail)),d=(e,t,i=!0)=>[(typeof e.input=="object"&&e.input!==null||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input})].every(a=>a),s=(e,t,i=!0)=>[typeof e.title=="string"||r(i,{path:t+".title",expected:"string",value:e.title}),typeof e.body=="string"||r(i,{path:t+".body",expected:"string",value:e.body}),e.thumbnail===null||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null)',value:e.thumbnail})].every(a=>a),o=e=>typeof e=="object"&&e!==null&&l(e);let n,r;return e=>{if(o(e)===!1){n=[],r=m(n),((i,a,h=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:a+"",expected:"__type",value:i}))&&d(i,a+"",!0)||r(!0,{path:a+"",expected:"__type",value:i}))(e,"$input",!0);const t=n.length===0;return t?{success:t,data:e}:{success:t,errors:n,data:e}}return{success:!0,data:e}}})()},{name:"update",parameters:{type:"object",properties:{id:{type:"string",format:"uuid",title:"Target article's {@link IBbsArticle.id}",description:"Target article's {@link IBbsArticle.id}."},input:{type:"object",properties:{title:{type:"string",title:"Title of the article",description:`Title of the article.
355
+ Writes a new article and archives it into the DB.`,validate:(()=>{const l=e=>typeof e.input=="object"&&e.input!==null&&c(e.input),c=e=>typeof e.title=="string"&&typeof e.body=="string"&&(e.thumbnail===null||typeof e.thumbnail=="string"&&u(e.thumbnail)),d=(e,t,i=!0)=>[(typeof e.input=="object"&&e.input!==null||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input})].every(n=>n),s=(e,t,i=!0)=>[typeof e.title=="string"||r(i,{path:t+".title",expected:"string",value:e.title}),typeof e.body=="string"||r(i,{path:t+".body",expected:"string",value:e.body}),e.thumbnail===null||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null)',value:e.thumbnail})].every(n=>n),o=e=>typeof e=="object"&&e!==null&&l(e);let a,r;return e=>{if(o(e)===!1){a=[],r=m(a),((i,n,f=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:n+"",expected:"__type",value:i}))&&d(i,n+"",!0)||r(!0,{path:n+"",expected:"__type",value:i}))(e,"$input",!0);const t=a.length===0;return t?{success:t,data:e}:{success:t,errors:a,data:e}}return{success:!0,data:e}}})()},{name:"update",parameters:{type:"object",properties:{id:{type:"string",format:"uuid",title:"Target article's {@link IBbsArticle.id}",description:"Target article's {@link IBbsArticle.id}."},input:{type:"object",properties:{title:{type:"string",title:"Title of the article",description:`Title of the article.
460
356
 
461
357
  Representative title of the article.`},body:{type:"string",title:"Content body",description:`Content body.
462
358
 
@@ -472,13 +368,9 @@ Description of the current {@link PartialIBbsArticle.ICreate} type:
472
368
 
473
369
  > Make all properties in T optional`,additionalProperties:!1}},required:["id","input"],description:" Properties of update function",additionalProperties:!1},description:`Update an article.
474
370
 
475
- Updates an article with new content.`,validate:(()=>{const l=e=>typeof e.id=="string"&&p(e.id)&&typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1&&c(e.input),c=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"&&u(e.thumbnail)),d=(e,t,i=!0)=>[typeof e.id=="string"&&(p(e.id)||r(i,{path:t+".id",expected:'string & Format<"uuid">',value:e.id}))||r(i,{path:t+".id",expected:'(string & Format<"uuid">)',value:e.id}),(typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input})].every(a=>a),s=(e,t,i=!0)=>[e.title===void 0||typeof e.title=="string"||r(i,{path:t+".title",expected:"(string | undefined)",value:e.title}),e.body===void 0||typeof e.body=="string"||r(i,{path:t+".body",expected:"(string | undefined)",value:e.body}),e.thumbnail===null||e.thumbnail===void 0||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null | undefined)',value:e.thumbnail})].every(a=>a),o=e=>typeof e=="object"&&e!==null&&l(e);let n,r;return e=>{if(o(e)===!1){n=[],r=m(n),((i,a,h=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:a+"",expected:"__type",value:i}))&&d(i,a+"",!0)||r(!0,{path:a+"",expected:"__type",value:i}))(e,"$input",!0);const t=n.length===0;return t?{success:t,data:e}:{success:t,errors:n,data:e}}return{success:!0,data:e}}})()},{name:"erase",parameters:{type:"object",properties:{id:{type:"string",format:"uuid",title:"Target article's {@link IBbsArticle.id}",description:"Target article's {@link IBbsArticle.id}."}},required:["id"],description:" Properties of erase function",additionalProperties:!1},description:`Erase an article.
476
-
477
- Erases an article from the DB.`,validate:(()=>{const l=n=>typeof n.id=="string"&&p(n.id),c=(n,r,e=!0)=>[typeof n.id=="string"&&(p(n.id)||o(e,{path:r+".id",expected:'string & Format<"uuid">',value:n.id}))||o(e,{path:r+".id",expected:'(string & Format<"uuid">)',value:n.id})].every(t=>t),d=n=>typeof n=="object"&&n!==null&&l(n);let s,o;return n=>{if(d(n)===!1){s=[],o=m(s),((e,t,i=!0)=>(typeof e=="object"&&e!==null||o(!0,{path:t+"",expected:"__type",value:e}))&&c(e,t+"",!0)||o(!0,{path:t+"",expected:"__type",value:e}))(n,"$input",!0);const r=s.length===0;return r?{success:r,data:n}:{success:r,errors:s,data:n}}return{success:!0,data:n}}})()}]},"3.1":{model:"3.1",options:{constraint:!0,reference:!1,separate:null},functions:[{name:"index",parameters:{type:"object",properties:{},additionalProperties:!1,required:[],$defs:{}},output:{description:"List of every articles",type:"array",items:{description:`Description of the current {@link IBbsArticle} type:
371
+ Updates an article with new content.`,validate:(()=>{const l=e=>typeof e.id=="string"&&p(e.id)&&typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1&&c(e.input),c=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"&&u(e.thumbnail)),d=(e,t,i=!0)=>[typeof e.id=="string"&&(p(e.id)||r(i,{path:t+".id",expected:'string & Format<"uuid">',value:e.id}))||r(i,{path:t+".id",expected:'(string & Format<"uuid">)',value:e.id}),(typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input})].every(n=>n),s=(e,t,i=!0)=>[e.title===void 0||typeof e.title=="string"||r(i,{path:t+".title",expected:"(string | undefined)",value:e.title}),e.body===void 0||typeof e.body=="string"||r(i,{path:t+".body",expected:"(string | undefined)",value:e.body}),e.thumbnail===null||e.thumbnail===void 0||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null | undefined)',value:e.thumbnail})].every(n=>n),o=e=>typeof e=="object"&&e!==null&&l(e);let a,r;return e=>{if(o(e)===!1){a=[],r=m(a),((i,n,f=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:n+"",expected:"__type",value:i}))&&d(i,n+"",!0)||r(!0,{path:n+"",expected:"__type",value:i}))(e,"$input",!0);const t=a.length===0;return t?{success:t,data:e}:{success:t,errors:a,data:e}}return{success:!0,data:e}}})()},{name:"erase",parameters:{type:"object",properties:{id:{type:"string",format:"uuid",title:"Target article's {@link IBbsArticle.id}",description:"Target article's {@link IBbsArticle.id}."}},required:["id"],description:" Properties of erase function",additionalProperties:!1},description:`Erase an article.
478
372
 
479
- > Article entity.
480
- >
481
- > \`IBbsArticle\` is an entity representing an article in the BBS (Bulletin Board System).`,type:"object",properties:{id:{title:"Primary Key",description:"Primary Key.",type:"string",format:"uuid"},created_at:{title:"Creation time of the article",description:"Creation time of the article.",type:"string",format:"date-time"},updated_at:{title:"Last updated time of the article",description:"Last updated time of the article.",type:"string",format:"date-time"},title:{title:"Title of the article",description:`Title of the article.
373
+ Erases an article from the DB.`,validate:(()=>{const l=a=>typeof a.id=="string"&&p(a.id),c=(a,r,e=!0)=>[typeof a.id=="string"&&(p(a.id)||o(e,{path:r+".id",expected:'string & Format<"uuid">',value:a.id}))||o(e,{path:r+".id",expected:'(string & Format<"uuid">)',value:a.id})].every(t=>t),d=a=>typeof a=="object"&&a!==null&&l(a);let s,o;return a=>{if(d(a)===!1){s=[],o=m(s),((e,t,i=!0)=>(typeof e=="object"&&e!==null||o(!0,{path:t+"",expected:"__type",value:e}))&&c(e,t+"",!0)||o(!0,{path:t+"",expected:"__type",value:e}))(a,"$input",!0);const r=s.length===0;return r?{success:r,data:a}:{success:r,errors:s,data:a}}return{success:!0,data:a}}})()}]},"3.1":{model:"3.1",options:{reference:!0,constraint:!0,separate:null},functions:[{name:"index",parameters:{type:"object",properties:{},additionalProperties:!1,required:[],$defs:{IBbsArticle:{description:"Article entity.\n\n`IBbsArticle` is an entity representing an article in the BBS (Bulletin Board System).",type:"object",properties:{id:{title:"Primary Key",description:"Primary Key.",type:"string",format:"uuid"},created_at:{title:"Creation time of the article",description:"Creation time of the article.",type:"string",format:"date-time"},updated_at:{title:"Last updated time of the article",description:"Last updated time of the article.",type:"string",format:"date-time"},title:{title:"Title of the article",description:`Title of the article.
482
374
 
483
375
  Representative title of the article.`,type:"string"},body:{title:"Content body",description:`Content body.
484
376
 
@@ -486,23 +378,9 @@ Content body of the article writtn in the markdown format.`,type:"string"},thumb
486
378
 
487
379
  Thumbnail image URI which can represent the article.
488
380
 
489
- If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:["id","created_at","updated_at","title","body","thumbnail"]}},description:`Get all articles.
381
+ If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:["id","created_at","updated_at","title","body","thumbnail"]}}},output:{description:"List of every articles",type:"array",items:{$ref:"#/$defs/IBbsArticle"}},description:`Get all articles.
490
382
 
491
- List up every articles archived in the BBS DB.`,validate:l=>({success:!0,data:l})},{name:"create",parameters:{description:" Properties of create function",type:"object",properties:{input:{description:`Information of the article to create
492
-
493
- ------------------------------
494
-
495
- Description of the current {@link IBbsArticle.ICreate} type:
496
-
497
- > Information of the article to create.
498
-
499
- ------------------------------
500
-
501
- Description of the parent {@link IBbsArticle} type:
502
-
503
- > Article entity.
504
- >
505
- > \`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.
383
+ List up every articles archived in the BBS DB.`,validate:l=>({success:!0,data:l})},{name:"create",parameters:{description:" Properties of create function",type:"object",properties:{input:{description:"Information of the article to create",$ref:"#/$defs/IBbsArticle.ICreate"}},required:["input"],additionalProperties:!1,$defs:{"IBbsArticle.ICreate":{description:"Information of the article to create.",type:"object",properties:{title:{title:"Title of the article",description:`Title of the article.
506
384
 
507
385
  Representative title of the article.`,type:"string"},body:{title:"Content body",description:`Content body.
508
386
 
@@ -510,11 +388,7 @@ Content body of the article writtn in the markdown format.`,type:"string"},thumb
510
388
 
511
389
  Thumbnail image URI which can represent the article.
512
390
 
513
- If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:["title","body","thumbnail"]}},required:["input"],additionalProperties:!1,$defs:{}},output:{description:`Description of the current {@link IBbsArticle} type:
514
-
515
- > Article entity.
516
- >
517
- > \`IBbsArticle\` is an entity representing an article in the BBS (Bulletin Board System).`,type:"object",properties:{id:{title:"Primary Key",description:"Primary Key.",type:"string",format:"uuid"},created_at:{title:"Creation time of the article",description:"Creation time of the article.",type:"string",format:"date-time"},updated_at:{title:"Last updated time of the article",description:"Last updated time of the article.",type:"string",format:"date-time"},title:{title:"Title of the article",description:`Title of the article.
391
+ If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:["title","body","thumbnail"]},IBbsArticle:{description:"Article entity.\n\n`IBbsArticle` is an entity representing an article in the BBS (Bulletin Board System).",type:"object",properties:{id:{title:"Primary Key",description:"Primary Key.",type:"string",format:"uuid"},created_at:{title:"Creation time of the article",description:"Creation time of the article.",type:"string",format:"date-time"},updated_at:{title:"Last updated time of the article",description:"Last updated time of the article.",type:"string",format:"date-time"},title:{title:"Title of the article",description:`Title of the article.
518
392
 
519
393
  Representative title of the article.`,type:"string"},body:{title:"Content body",description:`Content body.
520
394
 
@@ -522,15 +396,9 @@ Content body of the article writtn in the markdown format.`,type:"string"},thumb
522
396
 
523
397
  Thumbnail image URI which can represent the article.
524
398
 
525
- If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:["id","created_at","updated_at","title","body","thumbnail"]},description:`Create a new article.
526
-
527
- Writes a new article and archives it into the DB.`,validate:(()=>{const l=e=>typeof e.input=="object"&&e.input!==null&&c(e.input),c=e=>typeof e.title=="string"&&typeof e.body=="string"&&(e.thumbnail===null||typeof e.thumbnail=="string"&&u(e.thumbnail)),d=(e,t,i=!0)=>[(typeof e.input=="object"&&e.input!==null||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input})].every(a=>a),s=(e,t,i=!0)=>[typeof e.title=="string"||r(i,{path:t+".title",expected:"string",value:e.title}),typeof e.body=="string"||r(i,{path:t+".body",expected:"string",value:e.body}),e.thumbnail===null||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null)',value:e.thumbnail})].every(a=>a),o=e=>typeof e=="object"&&e!==null&&l(e);let n,r;return e=>{if(o(e)===!1){n=[],r=m(n),((i,a,h=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:a+"",expected:"__type",value:i}))&&d(i,a+"",!0)||r(!0,{path:a+"",expected:"__type",value:i}))(e,"$input",!0);const t=n.length===0;return t?{success:t,data:e}:{success:t,errors:n,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}.",type:"string",format:"uuid"},input:{description:`New content to update.
528
-
529
- ------------------------------
530
-
531
- Description of the current {@link PartialIBbsArticle.ICreate} type:
399
+ If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:["id","created_at","updated_at","title","body","thumbnail"]}}},output:{description:"Newly created article",$ref:"#/$defs/IBbsArticle"},description:`Create a new article.
532
400
 
533
- > Make all properties in T optional`,type:"object",properties:{title:{title:"Title of the article",description:`Title of the article.
401
+ Writes a new article and archives it into the DB.`,validate:(()=>{const l=e=>typeof e.input=="object"&&e.input!==null&&c(e.input),c=e=>typeof e.title=="string"&&typeof e.body=="string"&&(e.thumbnail===null||typeof e.thumbnail=="string"&&u(e.thumbnail)),d=(e,t,i=!0)=>[(typeof e.input=="object"&&e.input!==null||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input})].every(n=>n),s=(e,t,i=!0)=>[typeof e.title=="string"||r(i,{path:t+".title",expected:"string",value:e.title}),typeof e.body=="string"||r(i,{path:t+".body",expected:"string",value:e.body}),e.thumbnail===null||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null)',value:e.thumbnail})].every(n=>n),o=e=>typeof e=="object"&&e!==null&&l(e);let a,r;return e=>{if(o(e)===!1){a=[],r=m(a),((i,n,f=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:n+"",expected:"__type",value:i}))&&d(i,n+"",!0)||r(!0,{path:n+"",expected:"__type",value:i}))(e,"$input",!0);const t=a.length===0;return t?{success:t,data:e}:{success:t,errors:a,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}.",type:"string",format:"uuid"},input:{title:"New content to update",description:"New content to update.",$ref:"#/$defs/PartialIBbsArticle.ICreate"}},required:["id","input"],additionalProperties:!1,$defs:{"PartialIBbsArticle.ICreate":{description:"Make all properties in T optional",type:"object",properties:{title:{title:"Title of the article",description:`Title of the article.
534
402
 
535
403
  Representative title of the article.`,type:"string"},body:{title:"Content body",description:`Content body.
536
404
 
@@ -538,8 +406,8 @@ Content body of the article writtn in the markdown format.`,type:"string"},thumb
538
406
 
539
407
  Thumbnail image URI which can represent the article.
540
408
 
541
- If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:[]}},required:["id","input"],additionalProperties:!1,$defs:{}},description:`Update an article.
409
+ If configured as \`null\`, it means that no thumbnail image in the article.`,oneOf:[{type:"null"},{type:"string",format:"uri",contentMediaType:"image/*"}]}},required:[]}}},description:`Update an article.
542
410
 
543
- Updates an article with new content.`,validate:(()=>{const l=e=>typeof e.id=="string"&&p(e.id)&&typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1&&c(e.input),c=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"&&u(e.thumbnail)),d=(e,t,i=!0)=>[typeof e.id=="string"&&(p(e.id)||r(i,{path:t+".id",expected:'string & Format<"uuid">',value:e.id}))||r(i,{path:t+".id",expected:'(string & Format<"uuid">)',value:e.id}),(typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input})].every(a=>a),s=(e,t,i=!0)=>[e.title===void 0||typeof e.title=="string"||r(i,{path:t+".title",expected:"(string | undefined)",value:e.title}),e.body===void 0||typeof e.body=="string"||r(i,{path:t+".body",expected:"(string | undefined)",value:e.body}),e.thumbnail===null||e.thumbnail===void 0||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null | undefined)',value:e.thumbnail})].every(a=>a),o=e=>typeof e=="object"&&e!==null&&l(e);let n,r;return e=>{if(o(e)===!1){n=[],r=m(n),((i,a,h=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:a+"",expected:"__type",value:i}))&&d(i,a+"",!0)||r(!0,{path:a+"",expected:"__type",value:i}))(e,"$input",!0);const t=n.length===0;return t?{success:t,data:e}:{success:t,errors:n,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}.",type:"string",format:"uuid"}},required:["id"],additionalProperties:!1,$defs:{}},description:`Erase an article.
411
+ Updates an article with new content.`,validate:(()=>{const l=e=>typeof e.id=="string"&&p(e.id)&&typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1&&c(e.input),c=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"&&u(e.thumbnail)),d=(e,t,i=!0)=>[typeof e.id=="string"&&(p(e.id)||r(i,{path:t+".id",expected:'string & Format<"uuid">',value:e.id}))||r(i,{path:t+".id",expected:'(string & Format<"uuid">)',value:e.id}),(typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input}))&&s(e.input,t+".input",i)||r(i,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input})].every(n=>n),s=(e,t,i=!0)=>[e.title===void 0||typeof e.title=="string"||r(i,{path:t+".title",expected:"(string | undefined)",value:e.title}),e.body===void 0||typeof e.body=="string"||r(i,{path:t+".body",expected:"(string | undefined)",value:e.body}),e.thumbnail===null||e.thumbnail===void 0||typeof e.thumbnail=="string"&&(u(e.thumbnail)||r(i,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||r(i,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null | undefined)',value:e.thumbnail})].every(n=>n),o=e=>typeof e=="object"&&e!==null&&l(e);let a,r;return e=>{if(o(e)===!1){a=[],r=m(a),((i,n,f=!0)=>(typeof i=="object"&&i!==null||r(!0,{path:n+"",expected:"__type",value:i}))&&d(i,n+"",!0)||r(!0,{path:n+"",expected:"__type",value:i}))(e,"$input",!0);const t=a.length===0;return t?{success:t,data:e}:{success:t,errors:a,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}.",type:"string",format:"uuid"}},required:["id"],additionalProperties:!1,$defs:{}},description:`Erase an article.
544
412
 
545
- Erases an article from the DB.`,validate:(()=>{const l=n=>typeof n.id=="string"&&p(n.id),c=(n,r,e=!0)=>[typeof n.id=="string"&&(p(n.id)||o(e,{path:r+".id",expected:'string & Format<"uuid">',value:n.id}))||o(e,{path:r+".id",expected:'(string & Format<"uuid">)',value:n.id})].every(t=>t),d=n=>typeof n=="object"&&n!==null&&l(n);let s,o;return n=>{if(d(n)===!1){s=[],o=m(s),((e,t,i=!0)=>(typeof e=="object"&&e!==null||o(!0,{path:t+"",expected:"__type",value:e}))&&c(e,t+"",!0)||o(!0,{path:t+"",expected:"__type",value:e}))(n,"$input",!0);const r=s.length===0;return r?{success:r,data:n}:{success:r,errors:s,data:n}}return{success:!0,data:n}}})()}]}};function k(l){const c=new R,d=new B({model:"chatgpt",vendor:{api:l.api,model:l.vendorModel},controllers:[{protocol:"class",name:"bbs",application:U[l.schemaModel],execute:c}],config:{locale:l.locale,timezone:l.timezone,executor:{initialize:null}}});return y.jsx(T,{agent:d})}function P(){const[l,c]=f.useState(g.defaultConfig()),[d,s]=f.useState(window.navigator.language),[o,n]=f.useState(!1);return y.jsx("div",{style:{width:"100%",height:"100%",overflow:o===!0?void 0:"auto"},children:o===!0?y.jsx(k,{api:new C({apiKey:l.apiKey,baseURL:l.baseURL,dangerouslyAllowBrowser:!0}),vendorModel:l.vendorModel,schemaModel:l.schemaModel,locale:d}):y.jsxs(A,{style:{width:"calc(100% - 60px)",padding:15,margin:15},children:[y.jsx(b,{variant:"h6",children:"BBS AI Chatbot"}),y.jsx("br",{}),y.jsx(x,{}),y.jsx("br",{}),"Demonstration of Agentica with TypeScript Controller Class.",y.jsx("br",{}),y.jsx("br",{}),y.jsx(b,{variant:"h6",children:" OpenAI Configuration "}),y.jsx("br",{}),y.jsx(g,{config:l,onChange:c}),y.jsx("br",{}),y.jsx(b,{variant:"h6",children:" Membership Information "}),y.jsx("br",{}),y.jsx(j,{onChange:r=>s(r.target.value),defaultValue:d,label:"Locale",variant:"outlined",error:d.length===0}),y.jsx("br",{}),y.jsx("br",{}),y.jsx(w,{component:"a",fullWidth:!0,variant:"contained",color:"info",size:"large",disabled:l.apiKey.length===0||l.vendorModel.length===0||l.schemaModel.length===0||d.length===0,onClick:()=>n(!0),children:"Start AI Chatbot"})]})})}v(window.document.getElementById("root")).render(y.jsx(P,{}));
413
+ Erases an article from the DB.`,validate:(()=>{const l=a=>typeof a.id=="string"&&p(a.id),c=(a,r,e=!0)=>[typeof a.id=="string"&&(p(a.id)||o(e,{path:r+".id",expected:'string & Format<"uuid">',value:a.id}))||o(e,{path:r+".id",expected:'(string & Format<"uuid">)',value:a.id})].every(t=>t),d=a=>typeof a=="object"&&a!==null&&l(a);let s,o;return a=>{if(d(a)===!1){s=[],o=m(s),((e,t,i=!0)=>(typeof e=="object"&&e!==null||o(!0,{path:t+"",expected:"__type",value:e}))&&c(e,t+"",!0)||o(!0,{path:t+"",expected:"__type",value:e}))(a,"$input",!0);const r=s.length===0;return r?{success:r,data:a}:{success:r,errors:s,data:a}}return{success:!0,data:a}}})()}]}};function U(l){const c=new R,d=new B({model:"chatgpt",vendor:{api:l.api,model:l.vendorModel},controllers:[{protocol:"class",name:"bbs",application:P[l.schemaModel],execute:c}],config:{locale:l.locale,timezone:l.timezone,executor:{initialize:null}}});return y.jsx(T,{agent:d})}function _(){const[l,c]=h.useState(g.defaultConfig()),[d,s]=h.useState(window.navigator.language),[o,a]=h.useState(!1);return y.jsx("div",{style:{width:"100%",height:"100%",overflow:o===!0?void 0:"auto"},children:o===!0?y.jsx(U,{api:new C({apiKey:l.apiKey,baseURL:l.baseURL,dangerouslyAllowBrowser:!0}),vendorModel:l.vendorModel,schemaModel:l.schemaModel,locale:d}):y.jsxs(A,{style:{width:"calc(100% - 60px)",padding:15,margin:15},children:[y.jsx(b,{variant:"h6",children:"BBS AI Chatbot"}),y.jsx("br",{}),y.jsx(x,{}),y.jsx("br",{}),"Demonstration of Agentica with TypeScript Controller Class.",y.jsx("br",{}),y.jsx("br",{}),y.jsx(b,{variant:"h6",children:" OpenAI Configuration "}),y.jsx("br",{}),y.jsx(g,{config:l,onChange:c}),y.jsx("br",{}),y.jsx(b,{variant:"h6",children:" Membership Information "}),y.jsx("br",{}),y.jsx(j,{onChange:r=>s(r.target.value),defaultValue:d,label:"Locale",variant:"outlined",error:d.length===0}),y.jsx("br",{}),y.jsx("br",{}),y.jsx(w,{component:"a",fullWidth:!0,variant:"contained",color:"info",size:"large",disabled:l.apiKey.length===0||l.vendorModel.length===0||l.schemaModel.length===0||d.length===0,onClick:()=>a(!0),children:"Start AI Chatbot"})]})})}v(window.document.getElementById("root")).render(y.jsx(_,{}));