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:
101101 Example: ["Smith et al. 2020", "Jones 2019"]
102102 """
103103
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+
104110 AI_DOCUMENTS = "ai.documents"
105111 """
106112 Documents or content chunks used as context for the AI model.
@@ -172,6 +178,12 @@ class SPANDATA:
172178 Example: 0.5
173179 """
174180
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+
175187 AI_RAW_PROMPTING = "ai.raw_prompting"
176188 """
177189 Minimize pre-processing done to the prompt sent to the LLM.
@@ -259,6 +271,12 @@ class SPANDATA:
259271 For an AI model call, the functions that are available
260272 """
261273
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+
262280 AI_WARNINGS = "ai.warnings"
263281 """
264282 Warning messages generated during model execution.
You can’t perform that action at this time.
0 commit comments