budget-agent 0.4.8 → 0.4.9
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 +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -144,7 +144,7 @@ try {
|
|
|
144
144
|
|
|
145
145
|
## OpenAI cost tracking
|
|
146
146
|
|
|
147
|
-
Use budget-agent with the OpenAI SDK to track GPT-
|
|
147
|
+
Use budget-agent with the OpenAI SDK to track GPT-5.5 costs in real time.
|
|
148
148
|
|
|
149
149
|
```ts
|
|
150
150
|
import { AgentBudget } from 'budget-agent';
|
|
@@ -257,7 +257,7 @@ const agent = new AgentBudget({
|
|
|
257
257
|
|
|
258
258
|
// Wrap any LangChain call
|
|
259
259
|
const response = await agent.step({
|
|
260
|
-
model: 'openai/gpt-
|
|
260
|
+
model: 'openai/gpt-5.5',
|
|
261
261
|
messages: [{ role: 'user', content: prompt }],
|
|
262
262
|
});
|
|
263
263
|
```
|
|
@@ -389,7 +389,7 @@ const agent = new AgentBudget({
|
|
|
389
389
|
adaptiveRouting: {
|
|
390
390
|
fallbackChain: [
|
|
391
391
|
'anthropic/claude-opus-4.8-fast',
|
|
392
|
-
'openai/gpt-
|
|
392
|
+
'openai/gpt-5.5',
|
|
393
393
|
'openrouter/free',
|
|
394
394
|
],
|
|
395
395
|
thresholds: [0.4, 0.75],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "budget-agent",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.9",
|
|
4
4
|
"description": "Track AI agent costs, tokens, runtime and spending. Prevent runaway OpenAI, Anthropic, LangGraph and OpenRouter agents from exceeding budget.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"budget-enforcement",
|
|
60
60
|
"circuit-breaker",
|
|
61
61
|
"checkpoint",
|
|
62
|
-
"gpt-
|
|
62
|
+
"gpt-5.5",
|
|
63
63
|
"claude",
|
|
64
64
|
"langsmith",
|
|
65
65
|
"langfuse",
|