@butlerbot/sdk 0.0.6-alpha.1 → 0.0.6-alpha.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.
|
@@ -25,67 +25,55 @@ export type BaseAIResponseMetadataV4 = {
|
|
|
25
25
|
timestamp: number;
|
|
26
26
|
};
|
|
27
27
|
export type TokenUsageV4 = {
|
|
28
|
-
/**
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
|
|
34
|
-
/** Maximum context length for this model */
|
|
35
|
-
contextLimit?: number;
|
|
36
|
-
};
|
|
37
|
-
/** Token usage breakdown */
|
|
38
|
-
tokens: {
|
|
39
|
-
/**
|
|
40
|
-
* The total number of input (prompt) tokens used.
|
|
28
|
+
/**
|
|
29
|
+
* The total number of input (prompt) tokens used.
|
|
30
|
+
*/
|
|
31
|
+
inputTokens: number | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Detailed information about the input tokens.
|
|
41
34
|
*/
|
|
42
|
-
|
|
35
|
+
inputTokenDetails: {
|
|
43
36
|
/**
|
|
44
|
-
*
|
|
37
|
+
* The number of non-cached input (prompt) tokens used.
|
|
45
38
|
*/
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* The number of non-cached input (prompt) tokens used.
|
|
49
|
-
*/
|
|
50
|
-
noCacheTokens: number | undefined;
|
|
51
|
-
/**
|
|
52
|
-
* The number of cached input (prompt) tokens read.
|
|
53
|
-
*/
|
|
54
|
-
cacheReadTokens: number | undefined;
|
|
55
|
-
/**
|
|
56
|
-
* The number of cached input (prompt) tokens written.
|
|
57
|
-
*/
|
|
58
|
-
cacheWriteTokens: number | undefined;
|
|
59
|
-
};
|
|
39
|
+
noCacheTokens: number | undefined;
|
|
60
40
|
/**
|
|
61
|
-
* The number of
|
|
41
|
+
* The number of cached input (prompt) tokens read.
|
|
62
42
|
*/
|
|
63
|
-
|
|
43
|
+
cacheReadTokens: number | undefined;
|
|
64
44
|
/**
|
|
65
|
-
*
|
|
45
|
+
* The number of cached input (prompt) tokens written.
|
|
66
46
|
*/
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
47
|
+
cacheWriteTokens: number | undefined;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* The number of total output (completion) tokens used.
|
|
51
|
+
*/
|
|
52
|
+
outputTokens: number | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Detailed information about the output tokens.
|
|
55
|
+
*/
|
|
56
|
+
outputTokenDetails: {
|
|
77
57
|
/**
|
|
78
|
-
* The
|
|
58
|
+
* The number of text tokens used.
|
|
79
59
|
*/
|
|
80
|
-
|
|
60
|
+
textTokens: number | undefined;
|
|
81
61
|
/**
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
* This is the usage information in the shape that the provider returns.
|
|
85
|
-
* It can include additional information that is not part of the standard usage information.
|
|
62
|
+
* The number of reasoning tokens used.
|
|
86
63
|
*/
|
|
87
|
-
|
|
64
|
+
reasoningTokens: number | undefined;
|
|
88
65
|
};
|
|
66
|
+
/**
|
|
67
|
+
* The total number of tokens used.
|
|
68
|
+
*/
|
|
69
|
+
totalTokens: number | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Raw usage information from the provider.
|
|
72
|
+
*
|
|
73
|
+
* This is the usage information in the shape that the provider returns.
|
|
74
|
+
* It can include additional information that is not part of the standard usage information.
|
|
75
|
+
*/
|
|
76
|
+
raw?: any;
|
|
89
77
|
};
|
|
90
78
|
export type ModelMessageCostV4 = {
|
|
91
79
|
inputCost: number;
|