@agentica/chat 0.22.0 → 0.23.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 (3) hide show
  1. package/README.md +10 -11
  2. package/package.json +2 -2
  3. package/src/README.md +0 -28
package/README.md CHANGED
@@ -26,7 +26,7 @@ Are you a TypeScript developer? Then you're already an AI developer. Familiar wi
26
26
  <!-- eslint-skip -->
27
27
 
28
28
  ```typescript
29
- import { Agentica, assertHttpLlmApplication } from "@agentica/core";
29
+ import { Agentica, assertHttpController } from "@agentica/core";
30
30
  import OpenAI from "openai";
31
31
  import typia from "typia";
32
32
 
@@ -40,24 +40,23 @@ const agent = new Agentica({
40
40
  controllers: [
41
41
  // functions from TypeScript class
42
42
  {
43
- protocol: "http",
43
+ protocol: "class",
44
+ name: "filesystem",
44
45
  application: typia.llm.application<MobileFileSystem, "chatgpt">(),
45
46
  execute: new MobileFileSystem(),
46
47
  },
47
48
  // functions from Swagger/OpenAPI
48
- {
49
- protocol: "http",
50
- application: assertHttpLlmApplication({
51
- model: "chatgpt",
52
- document: await fetch(
53
- "https://shopping-be.wrtn.ai/editor/swagger.json",
54
- ).then(r => r.json()),
55
- }),
49
+ assertHttpController({
50
+ name: "shopping",
51
+ model: "chatgpt",
52
+ document: await fetch(
53
+ "https://shopping-be.wrtn.ai/editor/swagger.json",
54
+ ).then(r => r.json()),
56
55
  connection: {
57
56
  host: "https://shopping-be.wrtn.ai",
58
57
  headers: { Authorization: "Bearer ********" },
59
58
  },
60
- },
59
+ }),
61
60
  ],
62
61
  });
63
62
  await agent.conversate("I wanna buy MacBook Pro");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@agentica/chat",
3
3
  "type": "module",
4
- "version": "0.22.0",
4
+ "version": "0.23.0",
5
5
  "description": "Frontend Application of Agentica",
6
6
  "author": "Wrtn Technologies",
7
7
  "license": "MIT",
@@ -46,7 +46,7 @@
46
46
  "remark-mermaid-plugin": "^1.0.2",
47
47
  "typia": "^9.0.1",
48
48
  "uuid": "^11.0.5",
49
- "@agentica/core": "^0.22.0"
49
+ "@agentica/core": "^0.23.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@eslint/js": "^9.13.0",
package/src/README.md DELETED
@@ -1,28 +0,0 @@
1
- # Agentica Chat Application
2
-
3
- [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/wrtnlabs/agentica/blob/master/LICENSE)
4
- [![npm version](https://img.shields.io/npm/v/@agentica/chat.svg)](https://www.npmjs.com/package/@agentica/chat)
5
- [![Downloads](https://img.shields.io/npm/dm/@agentica/chat.svg)](https://www.npmjs.com/package/@agentica/chat)
6
- [![Build Status](https://github.com/wrtnlabs/agentica/workflows/build/badge.svg)](https://github.com/wrtnlabs/agentica/actions?query=workflow%3Abuild)
7
-
8
- A frontend application of Agentica chatbot for rapid demonstration.
9
-
10
- This is not for final production, but just for demonstration. So please do not use this package globally. You have to utilize this package only for the internal demonstration.
11
-
12
- <!-- eslint-skip -->
13
-
14
- ```tsx
15
- import { Agentica } from "@agentica/core";
16
- import { AgenticaChatApplication } from "@agentica/chat";
17
- import typia from "typia";
18
-
19
- const agent = new Agentica({ ... });
20
- ReactDOM.render(
21
- <AgenticaChatApplication agent={agent} />,
22
- document.body,
23
- );
24
- ```
25
-
26
- > https://github.com/user-attachments/assets/01604b53-aca4-41cb-91aa-3faf63549ea6
27
- >
28
- > Demonstration video of Shopping AI Chatbot