nemo-fabric-adapter-contract 0.4.0 → 0.5.0-beta.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.
|
@@ -72,6 +72,10 @@ export interface AgentArtifact {
|
|
|
72
72
|
* via the `definition` "AgentUsage".
|
|
73
73
|
*/
|
|
74
74
|
export interface AgentUsage {
|
|
75
|
+
/**
|
|
76
|
+
* Cached input tokens consumed by the invocation, when reported.
|
|
77
|
+
*/
|
|
78
|
+
cached_input_tokens?: number | null;
|
|
75
79
|
/**
|
|
76
80
|
* Invocation cost in US dollars when reported by the provider.
|
|
77
81
|
*/
|
|
@@ -84,6 +88,10 @@ export interface AgentUsage {
|
|
|
84
88
|
* Input tokens consumed by the invocation.
|
|
85
89
|
*/
|
|
86
90
|
input_tokens?: number | null;
|
|
91
|
+
/**
|
|
92
|
+
* Whether input_tokens already includes cached_input_tokens; absent means unknown.
|
|
93
|
+
*/
|
|
94
|
+
input_tokens_include_cache?: boolean | null;
|
|
87
95
|
/**
|
|
88
96
|
* Output tokens produced by the invocation.
|
|
89
97
|
*/
|
package/package.json
CHANGED
|
@@ -114,6 +114,16 @@
|
|
|
114
114
|
"additionalProperties": false,
|
|
115
115
|
"description": "Normalized model usage reported by an adapter target.",
|
|
116
116
|
"properties": {
|
|
117
|
+
"cached_input_tokens": {
|
|
118
|
+
"description": "Cached input tokens consumed by the invocation, when reported.",
|
|
119
|
+
"format": "uint64",
|
|
120
|
+
"maximum": 18446744073709551615,
|
|
121
|
+
"minimum": 0,
|
|
122
|
+
"type": [
|
|
123
|
+
"integer",
|
|
124
|
+
"null"
|
|
125
|
+
]
|
|
126
|
+
},
|
|
117
127
|
"cost_usd": {
|
|
118
128
|
"description": "Invocation cost in US dollars when reported by the provider.",
|
|
119
129
|
"format": "double",
|
|
@@ -138,6 +148,13 @@
|
|
|
138
148
|
"null"
|
|
139
149
|
]
|
|
140
150
|
},
|
|
151
|
+
"input_tokens_include_cache": {
|
|
152
|
+
"description": "Whether input_tokens already includes cached_input_tokens; absent means unknown.",
|
|
153
|
+
"type": [
|
|
154
|
+
"boolean",
|
|
155
|
+
"null"
|
|
156
|
+
]
|
|
157
|
+
},
|
|
141
158
|
"output_tokens": {
|
|
142
159
|
"description": "Output tokens produced by the invocation.",
|
|
143
160
|
"format": "uint64",
|