@crossworks/client-types 0.232.220 → 0.232.221
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/package.json +1 -1
- package/src/dto/views.ts +15 -0
package/package.json
CHANGED
package/src/dto/views.ts
CHANGED
|
@@ -86,6 +86,21 @@ export type ModelSpend = {
|
|
|
86
86
|
tokensOut: number;
|
|
87
87
|
cacheReadTokens: number;
|
|
88
88
|
calls: number;
|
|
89
|
+
/** Per-use split of this model's calls, for models that serve typed
|
|
90
|
+
* decisions (trace_steps.meta.use, the decider's uses). Absent otherwise. */
|
|
91
|
+
uses?: UseSpend[];
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
/** One decider use's share of a model's spend (see ModelSpend.uses). */
|
|
95
|
+
export type UseSpend = {
|
|
96
|
+
use: string;
|
|
97
|
+
costMicroUsd: number;
|
|
98
|
+
tokensIn: number;
|
|
99
|
+
calls: number;
|
|
100
|
+
/** Calls that returned no decision (step skipped: decision_failed). */
|
|
101
|
+
failed: number;
|
|
102
|
+
/** Mean call time over the answered calls, from meta.decision_ms. */
|
|
103
|
+
avgMs: number | null;
|
|
89
104
|
};
|
|
90
105
|
|
|
91
106
|
export type DailySpend = {
|