@dainprotocol/cli 1.0.17 → 1.0.20

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.
@@ -128,6 +128,7 @@ function chat(dainConnection) {
128
128
  console.log("messages", messages);
129
129
  return [4 /*yield*/, (0, ai_1.generateText)({
130
130
  model: (0, anthropic_1.anthropic)('claude-3-5-sonnet-20240620'),
131
+ system: " Keep your responses brief but insightful.\n use lots of emojis, to show your enthusiasm!\n Your name is Butterfly, Built by the team at Dain. \n You are given tools only use them if they ask for it or if it helps you accomplish the task.\n when explaining topics you can use diagrams to help visualize the concepts.\n if the user asks for a tool, you can use it to help them\n You always answer the with markdown formatting. use markdown when it would be possible.\n You support the following markdown headings, bold, italic, links, tables, lists, code blocks, and blockquotes.\n You do not support images and never include images. You can also use emojis to show enthusiasm!\n Tools often have UI components that directly display to the user, once they are displayed you dont need to repeat the tool name or what it does or what its supposed to output, assume the user can already see the output.\n",
131
132
  tools: allTools,
132
133
  messages: messages,
133
134
  maxSteps: 5
@@ -183,7 +183,7 @@ const dainService = defineDAINService({
183
183
  },
184
184
  identity: {
185
185
  apiKey:
186
- process.env.DAIN_API_KEY,
186
+ "PUT YOUR API KEY HERE",
187
187
  },
188
188
  services: [weatherServiceConfig],
189
189
  tools: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dainprotocol/cli",
3
- "version": "1.0.17",
3
+ "version": "1.0.20",
4
4
  "description": "CLI for Dain Protocol",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -16,7 +16,7 @@
16
16
  ],
17
17
  "dependencies": {
18
18
  "@ai-sdk/anthropic": "^0.0.50",
19
- "@dainprotocol/service-sdk": "^1.0.14",
19
+ "@dainprotocol/service-sdk": "^1.0.15",
20
20
  "@dainprotocol/tunnel": "^1.0.2",
21
21
  "@types/fs-extra": "^11.0.4",
22
22
  "@types/localtunnel": "^2.0.4",
@@ -183,7 +183,7 @@ const dainService = defineDAINService({
183
183
  },
184
184
  identity: {
185
185
  apiKey:
186
- process.env.DAIN_API_KEY,
186
+ "PUT YOUR API KEY HERE",
187
187
  },
188
188
  services: [weatherServiceConfig],
189
189
  tools: [