@mindstudio-ai/agent 0.1.98 → 0.1.99

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/dist/index.d.ts CHANGED
@@ -284,7 +284,10 @@ interface StepExecutionMeta {
284
284
  * Useful for throttling proactively before hitting the limit.
285
285
  */
286
286
  $rateLimitRemaining?: number;
287
- /** Cost in credits for this step execution. */
287
+ /**
288
+ * Cost of this step execution in nanodollars (1/1,000,000,000th of a US
289
+ * dollar). Divide by 1e9 to get USD — e.g. `40000000` = $0.04.
290
+ */
288
291
  $billingCost?: number;
289
292
  /** Itemized billing events for this step execution. */
290
293
  $billingEvents?: Array<Record<string, unknown>>;
@@ -615,11 +618,11 @@ interface StepCostEstimateEntry {
615
618
  eventType?: string;
616
619
  /** Human-readable label for the cost. */
617
620
  label?: string;
618
- /** Price per unit in billing units (1/1,000,000,000th of a credit). */
621
+ /** Price per unit in nanodollars (1/1,000,000,000th of a US dollar). */
619
622
  unitPrice?: number;
620
623
  /** What constitutes a unit (e.g. "token", "request"). */
621
624
  unitType?: string;
622
- /** Estimated total cost in billing units, or null if not estimable. */
625
+ /** Estimated total cost in nanodollars (divide by 1e9 for USD), or null if not estimable. */
623
626
  estimatedCost?: number;
624
627
  /** Number of billable units. */
625
628
  quantity?: number;
@@ -661,7 +664,7 @@ interface BatchStepResult {
661
664
  stepType: string;
662
665
  /** Step output data. Present on success. */
663
666
  output?: Record<string, unknown>;
664
- /** Cost of this step in billing units. Present on success. */
667
+ /** Cost of this step in nanodollars (divide by 1e9 for USD). Present on success. */
665
668
  billingCost?: number;
666
669
  /** Error message. Present when this step failed. */
667
670
  error?: string;
@@ -685,7 +688,7 @@ interface ExecuteStepBatchOptions {
685
688
  interface ExecuteStepBatchResult {
686
689
  /** Results in the same order as the input steps. */
687
690
  results: BatchStepResult[];
688
- /** Sum of billingCost across all successful steps. */
691
+ /** Sum of billingCost across all successful steps, in nanodollars. */
689
692
  totalBillingCost?: number;
690
693
  /** The app ID used for execution. */
691
694
  appId?: string;
@@ -702,7 +705,7 @@ interface RunAgentResult {
702
705
  result: string;
703
706
  /** Thread messages, if returned. */
704
707
  thread?: unknown;
705
- /** Cost in credits, if `includeBillingCost` was set. */
708
+ /** Cost in nanodollars (divide by 1e9 for USD), if `includeBillingCost` was set. */
706
709
  billingCost?: number;
707
710
  }
708
711
 
@@ -2102,6 +2105,7 @@ interface TaskToolCall {
2102
2105
  interface TaskUsage {
2103
2106
  inputTokens: number;
2104
2107
  outputTokens: number;
2108
+ /** Total cost in nanodollars (1/1,000,000,000th of a US dollar). */
2105
2109
  totalBillingCost: number;
2106
2110
  }
2107
2111
  /** Result of {@link MindStudioAgent.runTask}. */