File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,12 @@ class SPANDATA:
101
101
Example: ["Smith et al. 2020", "Jones 2019"]
102
102
"""
103
103
104
+ AI_COMPLETION_TOKENS_USED = "ai.completion_tokens.used"
105
+ """
106
+ The number of output completion tokens used by the model.
107
+ Example: 10
108
+ """
109
+
104
110
AI_DOCUMENTS = "ai.documents"
105
111
"""
106
112
Documents or content chunks used as context for the AI model.
@@ -172,6 +178,12 @@ class SPANDATA:
172
178
Example: 0.5
173
179
"""
174
180
181
+ AI_PROMPT_TOKENS_USED = "ai.prompt_tokens.used"
182
+ """
183
+ The number of input prompt tokens used by the model.
184
+ Example: 10
185
+ """
186
+
175
187
AI_RAW_PROMPTING = "ai.raw_prompting"
176
188
"""
177
189
Minimize pre-processing done to the prompt sent to the LLM.
@@ -259,6 +271,12 @@ class SPANDATA:
259
271
For an AI model call, the functions that are available
260
272
"""
261
273
274
+ AI_TOTAL_TOKENS_USED = "ai.total_tokens.used"
275
+ """
276
+ The total number of tokens (input + output) used by the request to the model.
277
+ Example: 20
278
+ """
279
+
262
280
AI_WARNINGS = "ai.warnings"
263
281
"""
264
282
Warning messages generated during model execution.
You can’t perform that action at this time.
0 commit comments