@sisu-ai/mw-usage-tracker 3.0.2 → 4.0.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.
- package/README.md +6 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
# @sisu-ai/mw-usage-tracker
|
|
2
|
+
|
|
3
|
+
Track token usage across your pipeline and estimate cost.
|
|
4
|
+
|
|
2
5
|
[](https://github.com/finger-gun/sisu/actions/workflows/tests.yml)
|
|
3
6
|
[](https://github.com/finger-gun/sisu/blob/main/LICENSE)
|
|
4
7
|
[](https://www.npmjs.com/package/@sisu-ai/mw-usage-tracker)
|
|
5
8
|
[](https://github.com/finger-gun/sisu/blob/main/CONTRIBUTING.md)
|
|
6
9
|
|
|
7
|
-
Track token usage across your pipeline and estimate cost.
|
|
8
|
-
|
|
9
10
|
## Setup
|
|
10
11
|
```bash
|
|
11
12
|
npm i @sisu-ai/mw-usage-tracker
|
|
12
13
|
```
|
|
13
14
|
|
|
14
|
-
## Documentation
|
|
15
|
-
Discover what you can do through examples or documentation. Check it out at https://github.com/finger-gun/sisu
|
|
16
|
-
|
|
17
15
|
## Usage
|
|
18
16
|
```ts
|
|
19
17
|
import { usageTracker } from '@sisu-ai/mw-usage-tracker';
|
|
@@ -55,6 +53,9 @@ const app = new Agent()
|
|
|
55
53
|
- Image cost estimation is an approximation unless your adapter returns precise image token usage.
|
|
56
54
|
|
|
57
55
|
# Community & Support
|
|
56
|
+
|
|
57
|
+
Discover what you can do through examples or documentation. Check it out at https://github.com/finger-gun/sisu. Example projects live under [`examples/`](https://github.com/finger-gun/sisu/tree/main/examples) in the repo.
|
|
58
|
+
|
|
58
59
|
- [Code of Conduct](https://github.com/finger-gun/sisu/blob/main/CODE_OF_CONDUCT.md)
|
|
59
60
|
- [Contributing Guide](https://github.com/finger-gun/sisu/blob/main/CONTRIBUTING.md)
|
|
60
61
|
- [License](https://github.com/finger-gun/sisu/blob/main/LICENSE)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sisu-ai/mw-usage-tracker",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"build": "tsc -b"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@sisu-ai/core": "1.0
|
|
18
|
+
"@sisu-ai/core": "1.1.0"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|