@eko-ai/eko-nodejs 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -11
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -55,29 +55,26 @@ Eko (pronounced like ‘echo’) is a production-ready JavaScript framework that
|
|
|
55
55
|
> Please refer to the link: https://eko.fellou.ai/docs/getting-started/configuration#web-environment
|
|
56
56
|
|
|
57
57
|
```typescript
|
|
58
|
-
// quickstart.ts
|
|
59
58
|
const llms: LLMs = {
|
|
60
59
|
default: {
|
|
61
60
|
provider: "anthropic",
|
|
62
|
-
model: "claude-
|
|
63
|
-
apiKey:
|
|
64
|
-
config: { baseURL: claudeBaseURL },
|
|
61
|
+
model: "claude-sonnet-4-20250514",
|
|
62
|
+
apiKey: "your-api-key"
|
|
65
63
|
},
|
|
66
64
|
openai: {
|
|
67
65
|
provider: "openai",
|
|
68
|
-
model: "gpt-
|
|
69
|
-
apiKey:
|
|
70
|
-
|
|
71
|
-
},
|
|
66
|
+
model: "gpt-4.1",
|
|
67
|
+
apiKey: "your-api-key"
|
|
68
|
+
}
|
|
72
69
|
};
|
|
73
|
-
|
|
70
|
+
|
|
71
|
+
let agents: Agent[] = [new BrowserAgent(), new FileAgent()];
|
|
74
72
|
let eko = new Eko({ llms, agents });
|
|
75
|
-
let result = await eko.run("Search for the latest news about Musk");
|
|
73
|
+
let result = await eko.run("Search for the latest news about Musk, summarize and save to the desktop as Musk.md");
|
|
76
74
|
```
|
|
77
75
|
|
|
78
76
|
```bash
|
|
79
77
|
$ pnpm install @eko-ai/eko
|
|
80
|
-
$ npx ts-node quickstart.ts
|
|
81
78
|
```
|
|
82
79
|
|
|
83
80
|
## Use Cases
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eko-ai/eko-nodejs",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "Empowering language to transform human words into action.",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"chromium-bidi": "^0.12.0",
|
|
38
38
|
"glob": "^11.0.2",
|
|
39
39
|
"playwright": "^1.52.0",
|
|
40
|
-
"@eko-ai/eko": "2.1.
|
|
40
|
+
"@eko-ai/eko": "2.1.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@rollup/plugin-commonjs": "^28.0.3",
|