@agentica/chat 0.1.0

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.
Files changed (52) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/dist/assets/AgenticaChatApplication-BAduZMpY.js +4092 -0
  4. package/dist/assets/Divider-D4B39gYv.js +1 -0
  5. package/dist/assets/OpenApi-C5xvfAk3.js +1 -0
  6. package/dist/assets/_isFormatUri-YqTfGpHo.js +1 -0
  7. package/dist/assets/bbs-Ds5p4_Sb.js +89 -0
  8. package/dist/assets/client-BwmHWUFW.js +141 -0
  9. package/dist/assets/index-BZb7BC3J.js +1 -0
  10. package/dist/assets/playground-BHs_VQiq.js +27 -0
  11. package/dist/assets/shopping-DB4jM1UG.js +1 -0
  12. package/dist/bbs.html +26 -0
  13. package/dist/index.html +24 -0
  14. package/dist/playground.html +25 -0
  15. package/dist/shopping.html +27 -0
  16. package/lib/AgenticaChatApplication.d.ts +8 -0
  17. package/lib/components/MarkdownViewer.d.ts +6 -0
  18. package/lib/examples/bbs/BbsArticleService.d.ts +58 -0
  19. package/lib/examples/bbs/BbsChatApplication.d.ts +10 -0
  20. package/lib/examples/bbs/IBbsArticle.d.ts +53 -0
  21. package/lib/examples/bbs/index.d.ts +1 -0
  22. package/lib/examples/index.d.ts +1 -0
  23. package/lib/examples/playground/AgenticaChatPlaygroundApplication.d.ts +9 -0
  24. package/lib/examples/playground/AgenticaChatPlaygroundFileUploadMovie.d.ts +7 -0
  25. package/lib/examples/playground/index.d.ts +1 -0
  26. package/lib/examples/shopping/ShoppingChatApplication.d.ts +12 -0
  27. package/lib/examples/shopping/index.d.ts +1 -0
  28. package/lib/index.d.ts +1 -0
  29. package/lib/index.mjs +537 -0
  30. package/lib/index.mjs.map +1 -0
  31. package/lib/movies/AgenticaChatMovie.d.ts +8 -0
  32. package/lib/movies/messages/AgenticaChatDescribeMessageMovie.d.ts +8 -0
  33. package/lib/movies/messages/AgenticaChatExecuteMessageMovie.d.ts +8 -0
  34. package/lib/movies/messages/AgenticaChatMessageMovie.d.ts +8 -0
  35. package/lib/movies/messages/AgenticaChatSelectMessageMovie.d.ts +8 -0
  36. package/lib/movies/messages/AgenticaChatTextMessageMovie.d.ts +7 -0
  37. package/lib/movies/sides/AgenticaChatFunctionStackSideMovie.d.ts +8 -0
  38. package/lib/movies/sides/AgenticaChatSideMovie.d.ts +12 -0
  39. package/lib/movies/sides/AgenticaChatTokenUsageSideMovie.d.ts +7 -0
  40. package/package.json +93 -0
  41. package/src/AgenticaChatApplication.tsx +15 -0
  42. package/src/components/MarkdownViewer.tsx +32 -0
  43. package/src/index.ts +1 -0
  44. package/src/movies/AgenticaChatMovie.tsx +330 -0
  45. package/src/movies/messages/AgenticaChatDescribeMessageMovie.tsx +62 -0
  46. package/src/movies/messages/AgenticaChatExecuteMessageMovie.tsx +43 -0
  47. package/src/movies/messages/AgenticaChatMessageMovie.tsx +25 -0
  48. package/src/movies/messages/AgenticaChatSelectMessageMovie.tsx +68 -0
  49. package/src/movies/messages/AgenticaChatTextMessageMovie.tsx +46 -0
  50. package/src/movies/sides/AgenticaChatFunctionStackSideMovie.tsx +46 -0
  51. package/src/movies/sides/AgenticaChatSideMovie.tsx +65 -0
  52. package/src/movies/sides/AgenticaChatTokenUsageSideMovie.tsx +78 -0
@@ -0,0 +1,58 @@
1
+ import { tags } from "typia";
2
+ import { IBbsArticle } from "./IBbsArticle";
3
+ export declare class BbsArticleService {
4
+ private readonly articles;
5
+ /**
6
+ * Get all articles.
7
+ *
8
+ * List up every articles archived in the BBS DB.
9
+ *
10
+ * @returns List of every articles
11
+ */
12
+ index(): IBbsArticle[];
13
+ /**
14
+ * Create a new article.
15
+ *
16
+ * Writes a new article and archives it into the DB.
17
+ *
18
+ * @param props Properties of create function
19
+ * @returns Newly created article
20
+ */
21
+ create(props: {
22
+ /**
23
+ * Information of the article to create
24
+ */
25
+ input: IBbsArticle.ICreate;
26
+ }): IBbsArticle;
27
+ /**
28
+ * Update an article.
29
+ *
30
+ * Updates an article with new content.
31
+ *
32
+ * @param props Properties of update function
33
+ * @param input New content to update
34
+ */
35
+ update(props: {
36
+ /**
37
+ * Target article's {@link IBbsArticle.id}.
38
+ */
39
+ id: string & tags.Format<"uuid">;
40
+ /**
41
+ * New content to update.
42
+ */
43
+ input: IBbsArticle.IUpdate;
44
+ }): void;
45
+ /**
46
+ * Erase an article.
47
+ *
48
+ * Erases an article from the DB.
49
+ *
50
+ * @param props Properties of erase function
51
+ */
52
+ erase(props: {
53
+ /**
54
+ * Target article's {@link IBbsArticle.id}.
55
+ */
56
+ id: string & tags.Format<"uuid">;
57
+ }): void;
58
+ }
@@ -0,0 +1,10 @@
1
+ import OpenAI from "openai";
2
+ export declare const BbsChatApplication: (props: BbsChatApplication.IProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare namespace BbsChatApplication {
4
+ interface IProps {
5
+ apiKey: string;
6
+ model?: OpenAI.ChatModel;
7
+ locale?: string;
8
+ timezone?: string;
9
+ }
10
+ }
@@ -0,0 +1,53 @@
1
+ import { tags } from "typia";
2
+ /**
3
+ * Article entity.
4
+ *
5
+ * `IBbsArticle` is an entity representing an article in the BBS (Bulletin Board System).
6
+ */
7
+ export interface IBbsArticle extends IBbsArticle.ICreate {
8
+ /**
9
+ * Primary Key.
10
+ */
11
+ id: string & tags.Format<"uuid">;
12
+ /**
13
+ * Creation time of the article.
14
+ */
15
+ created_at: string & tags.Format<"date-time">;
16
+ /**
17
+ * Last updated time of the article.
18
+ */
19
+ updated_at: string & tags.Format<"date-time">;
20
+ }
21
+ export declare namespace IBbsArticle {
22
+ /**
23
+ * Information of the article to create.
24
+ */
25
+ interface ICreate {
26
+ /**
27
+ * Title of the article.
28
+ *
29
+ * Representative title of the article.
30
+ */
31
+ title: string;
32
+ /**
33
+ * Content body.
34
+ *
35
+ * Content body of the article writtn in the markdown format.
36
+ */
37
+ body: string;
38
+ /**
39
+ * Thumbnail image URI.
40
+ *
41
+ * Thumbnail image URI which can represent the article.
42
+ *
43
+ * If configured as `null`, it means that no thumbnail image in the article.
44
+ */
45
+ thumbnail: null | (string & tags.Format<"uri"> & tags.ContentMediaType<"image/*">);
46
+ }
47
+ /**
48
+ * Information of the article to update.
49
+ *
50
+ * Only the filled properties will be updated.
51
+ */
52
+ type IUpdate = Partial<ICreate>;
53
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ export declare const AgenticaChatPlaygroundApplication: (props: AgenticaChatPlaygroundApplication.IProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare namespace AgenticaChatPlaygroundApplication {
4
+ interface IProps {
5
+ style?: React.CSSProperties;
6
+ onError?: (error: string) => void;
7
+ onSuccess: (element: JSX.Element) => void;
8
+ }
9
+ }
@@ -0,0 +1,7 @@
1
+ import { IHttpLlmApplication } from "@samchon/openapi";
2
+ export declare const AgenticaChatPlaygroundFileUploadMovie: (props: AgenticaChatPlaygroundFileUploadMovie.IProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare namespace AgenticaChatPlaygroundFileUploadMovie {
4
+ interface IProps {
5
+ onChange: (application: IHttpLlmApplication<"chatgpt"> | null, error: string | null) => void;
6
+ }
7
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ import { IHttpConnection } from "@samchon/openapi";
2
+ import OpenAI from "openai";
3
+ export declare const ShoppingChatApplication: (props: ShoppingChatApplication.IProps) => import("react/jsx-runtime").JSX.Element;
4
+ export declare namespace ShoppingChatApplication {
5
+ interface IProps {
6
+ api: OpenAI;
7
+ connection: IHttpConnection;
8
+ name: string;
9
+ mobile: string;
10
+ locale?: string;
11
+ }
12
+ }
@@ -0,0 +1 @@
1
+ export {};
package/lib/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./AgenticaChatApplication";