@sisu-ai/mw-usage-tracker 3.0.1 → 3.0.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 +11 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
# @sisu-ai/mw-usage-tracker
|
|
2
|
+
[](https://github.com/finger-gun/sisu/actions/workflows/tests.yml)
|
|
3
|
+
[](https://github.com/finger-gun/sisu/blob/main/LICENSE)
|
|
4
|
+
[](https://www.npmjs.com/package/@sisu-ai/mw-usage-tracker)
|
|
5
|
+
[](https://github.com/finger-gun/sisu/blob/main/CONTRIBUTING.md)
|
|
2
6
|
|
|
3
7
|
Track token usage across your pipeline and estimate cost.
|
|
4
8
|
|
|
@@ -49,3 +53,10 @@ const app = new Agent()
|
|
|
49
53
|
- Each adapter should map its native usage fields to `ModelResponse.usage`.
|
|
50
54
|
- If a provider doesn’t return usage, you’ll get counts of calls only (no cost).
|
|
51
55
|
- Image cost estimation is an approximation unless your adapter returns precise image token usage.
|
|
56
|
+
|
|
57
|
+
# Community & Support
|
|
58
|
+
- [Code of Conduct](https://github.com/finger-gun/sisu/blob/main/CODE_OF_CONDUCT.md)
|
|
59
|
+
- [Contributing Guide](https://github.com/finger-gun/sisu/blob/main/CONTRIBUTING.md)
|
|
60
|
+
- [License](https://github.com/finger-gun/sisu/blob/main/LICENSE)
|
|
61
|
+
- [Report a Bug](https://github.com/finger-gun/sisu/issues/new?template=bug_report.md)
|
|
62
|
+
- [Request a Feature](https://github.com/finger-gun/sisu/issues/new?template=feature_request.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sisu-ai/mw-usage-tracker",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
|
+
"license": "Apache-2.0",
|
|
4
5
|
"type": "module",
|
|
5
6
|
"main": "dist/index.js",
|
|
6
7
|
"types": "dist/index.d.ts",
|
|
@@ -14,7 +15,7 @@
|
|
|
14
15
|
"build": "tsc -b"
|
|
15
16
|
},
|
|
16
17
|
"peerDependencies": {
|
|
17
|
-
"@sisu-ai/core": "1.0.
|
|
18
|
+
"@sisu-ai/core": "1.0.2"
|
|
18
19
|
},
|
|
19
20
|
"repository": {
|
|
20
21
|
"type": "git",
|