@builder.io/ai-utils 0.44.3 → 0.44.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/codegen.d.ts +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.44.3",
3
+ "version": "0.44.4",
4
4
  "description": "Builder.io AI utils",
5
5
  "files": [
6
6
  "src"
package/src/codegen.d.ts CHANGED
@@ -2425,6 +2425,8 @@ export interface SessionData {
2425
2425
  extraCost?: number;
2426
2426
  /** If set, this session is a sub-agent of the given parent session. Used to avoid double-counting in aggregations. */
2427
2427
  parentSessionId?: string;
2428
+ /** Credits from tools (e.g. WebSearch LLM calls) and sub-agent roll-ups. Total session credits = per-completion tokenCreditsUsed + extraCreditsConsumed. */
2429
+ extraCreditsConsumed?: number;
2428
2430
  totalCompletions: number;
2429
2431
  numUserMessages: number;
2430
2432
  numNormalUserMessages: number;