@@ -124,172 +124,257 @@ class SPANDATA:
124124
125125 AI_CITATIONS = "ai.citations"
126126 """
127+ .. deprecated::
128+ This attribute is deprecated. Use GEN_AI_* attributes instead.
129+
127130 References or sources cited by the AI model in its response.
128131 Example: ["Smith et al. 2020", "Jones 2019"]
129132 """
130133
131134 AI_DOCUMENTS = "ai.documents"
132135 """
136+ .. deprecated::
137+ This attribute is deprecated. Use GEN_AI_* attributes instead.
138+
133139 Documents or content chunks used as context for the AI model.
134140 Example: ["doc1.txt", "doc2.pdf"]
135141 """
136142
137143 AI_FINISH_REASON = "ai.finish_reason"
138144 """
145+ .. deprecated::
146+ This attribute is deprecated. Use GEN_AI_RESPONSE_FINISH_REASONS instead.
147+
139148 The reason why the model stopped generating.
140149 Example: "length"
141150 """
142151
143152 AI_FREQUENCY_PENALTY = "ai.frequency_penalty"
144153 """
154+ .. deprecated::
155+ This attribute is deprecated. Use GEN_AI_REQUEST_FREQUENCY_PENALTY instead.
156+
145157 Used to reduce repetitiveness of generated tokens.
146158 Example: 0.5
147159 """
148160
149161 AI_FUNCTION_CALL = "ai.function_call"
150162 """
163+ .. deprecated::
164+ This attribute is deprecated. Use GEN_AI_RESPONSE_TOOL_CALLS instead.
165+
151166 For an AI model call, the function that was called. This is deprecated for OpenAI, and replaced by tool_calls
152167 """
153168
154169 AI_GENERATION_ID = "ai.generation_id"
155170 """
171+ .. deprecated::
172+ This attribute is deprecated. Use GEN_AI_RESPONSE_ID instead.
173+
156174 Unique identifier for the completion.
157175 Example: "gen_123abc"
158176 """
159177
160178 AI_INPUT_MESSAGES = "ai.input_messages"
161179 """
180+ .. deprecated::
181+ This attribute is deprecated. Use GEN_AI_REQUEST_MESSAGES instead.
182+
162183 The input messages to an LLM call.
163184 Example: [{"role": "user", "message": "hello"}]
164185 """
165186
166187 AI_LOGIT_BIAS = "ai.logit_bias"
167188 """
189+ .. deprecated::
190+ This attribute is deprecated. Use GEN_AI_* attributes instead.
191+
168192 For an AI model call, the logit bias
169193 """
170194
171195 AI_METADATA = "ai.metadata"
172196 """
197+ .. deprecated::
198+ This attribute is deprecated. Use GEN_AI_* attributes instead.
199+
173200 Extra metadata passed to an AI pipeline step.
174201 Example: {"executed_function": "add_integers"}
175202 """
176203
177204 AI_MODEL_ID = "ai.model_id"
178205 """
179- The unique descriptor of the model being execugted
206+ .. deprecated::
207+ This attribute is deprecated. Use GEN_AI_REQUEST_MODEL or GEN_AI_RESPONSE_MODEL instead.
208+
209+ The unique descriptor of the model being executed.
180210 Example: gpt-4
181211 """
182212
183213 AI_PIPELINE_NAME = "ai.pipeline.name"
184214 """
215+ .. deprecated::
216+ This attribute is deprecated. Use GEN_AI_PIPELINE_NAME instead.
217+
185218 Name of the AI pipeline or chain being executed.
186- DEPRECATED: Use GEN_AI_PIPELINE_NAME instead.
187219 Example: "qa-pipeline"
188220 """
189221
190222 AI_PREAMBLE = "ai.preamble"
191223 """
224+ .. deprecated::
225+ This attribute is deprecated. Use GEN_AI_* attributes instead.
226+
192227 For an AI model call, the preamble parameter.
193228 Preambles are a part of the prompt used to adjust the model's overall behavior and conversation style.
194229 Example: "You are now a clown."
195230 """
196231
197232 AI_PRESENCE_PENALTY = "ai.presence_penalty"
198233 """
234+ .. deprecated::
235+ This attribute is deprecated. Use GEN_AI_REQUEST_PRESENCE_PENALTY instead.
236+
199237 Used to reduce repetitiveness of generated tokens.
200238 Example: 0.5
201239 """
202240
203241 AI_RAW_PROMPTING = "ai.raw_prompting"
204242 """
243+ .. deprecated::
244+ This attribute is deprecated. Use GEN_AI_* attributes instead.
245+
205246 Minimize pre-processing done to the prompt sent to the LLM.
206247 Example: true
207248 """
208249
209250 AI_RESPONSE_FORMAT = "ai.response_format"
210251 """
252+ .. deprecated::
253+ This attribute is deprecated. Use GEN_AI_* attributes instead.
254+
211255 For an AI model call, the format of the response
212256 """
213257
214258 AI_RESPONSES = "ai.responses"
215259 """
260+ .. deprecated::
261+ This attribute is deprecated. Use GEN_AI_RESPONSE_TEXT instead.
262+
216263 The responses to an AI model call. Always as a list.
217264 Example: ["hello", "world"]
218265 """
219266
220267 AI_SEARCH_QUERIES = "ai.search_queries"
221268 """
269+ .. deprecated::
270+ This attribute is deprecated. Use GEN_AI_* attributes instead.
271+
222272 Queries used to search for relevant context or documents.
223273 Example: ["climate change effects", "renewable energy"]
224274 """
225275
226276 AI_SEARCH_REQUIRED = "ai.is_search_required"
227277 """
278+ .. deprecated::
279+ This attribute is deprecated. Use GEN_AI_* attributes instead.
280+
228281 Boolean indicating if the model needs to perform a search.
229282 Example: true
230283 """
231284
232285 AI_SEARCH_RESULTS = "ai.search_results"
233286 """
287+ .. deprecated::
288+ This attribute is deprecated. Use GEN_AI_* attributes instead.
289+
234290 Results returned from search queries for context.
235291 Example: ["Result 1", "Result 2"]
236292 """
237293
238294 AI_SEED = "ai.seed"
239295 """
296+ .. deprecated::
297+ This attribute is deprecated. Use GEN_AI_REQUEST_SEED instead.
298+
240299 The seed, ideally models given the same seed and same other parameters will produce the exact same output.
241300 Example: 123.45
242301 """
243302
244303 AI_STREAMING = "ai.streaming"
245304 """
305+ .. deprecated::
306+ This attribute is deprecated. Use GEN_AI_RESPONSE_STREAMING instead.
307+
246308 Whether or not the AI model call's response was streamed back asynchronously
247- DEPRECATED: Use GEN_AI_RESPONSE_STREAMING instead.
248309 Example: true
249310 """
250311
251312 AI_TAGS = "ai.tags"
252313 """
314+ .. deprecated::
315+ This attribute is deprecated. Use GEN_AI_* attributes instead.
316+
253317 Tags that describe an AI pipeline step.
254318 Example: {"executed_function": "add_integers"}
255319 """
256320
257321 AI_TEMPERATURE = "ai.temperature"
258322 """
323+ .. deprecated::
324+ This attribute is deprecated. Use GEN_AI_REQUEST_TEMPERATURE instead.
325+
259326 For an AI model call, the temperature parameter. Temperature essentially means how random the output will be.
260327 Example: 0.5
261328 """
262329
263330 AI_TEXTS = "ai.texts"
264331 """
332+ .. deprecated::
333+ This attribute is deprecated. Use GEN_AI_* attributes instead.
334+
265335 Raw text inputs provided to the model.
266336 Example: ["What is machine learning?"]
267337 """
268338
269339 AI_TOP_K = "ai.top_k"
270340 """
341+ .. deprecated::
342+ This attribute is deprecated. Use GEN_AI_REQUEST_TOP_K instead.
343+
271344 For an AI model call, the top_k parameter. Top_k essentially controls how random the output will be.
272345 Example: 35
273346 """
274347
275348 AI_TOP_P = "ai.top_p"
276349 """
350+ .. deprecated::
351+ This attribute is deprecated. Use GEN_AI_REQUEST_TOP_P instead.
352+
277353 For an AI model call, the top_p parameter. Top_p essentially controls how random the output will be.
278354 Example: 0.5
279355 """
280356
281357 AI_TOOL_CALLS = "ai.tool_calls"
282358 """
359+ .. deprecated::
360+ This attribute is deprecated. Use GEN_AI_RESPONSE_TOOL_CALLS instead.
361+
283362 For an AI model call, the function that was called. This is deprecated for OpenAI, and replaced by tool_calls
284363 """
285364
286365 AI_TOOLS = "ai.tools"
287366 """
367+ .. deprecated::
368+ This attribute is deprecated. Use GEN_AI_REQUEST_AVAILABLE_TOOLS instead.
369+
288370 For an AI model call, the functions that are available
289371 """
290372
291373 AI_WARNINGS = "ai.warnings"
292374 """
375+ .. deprecated::
376+ This attribute is deprecated. Use GEN_AI_* attributes instead.
377+
293378 Warning messages generated during model execution.
294379 Example: ["Token limit exceeded"]
295380 """
@@ -394,6 +479,18 @@ class SPANDATA:
394479 Example: "qa-pipeline"
395480 """
396481
482+ GEN_AI_RESPONSE_FINISH_REASONS = "gen_ai.response.finish_reasons"
483+ """
484+ The reason why the model stopped generating.
485+ Example: "COMPLETE"
486+ """
487+
488+ GEN_AI_RESPONSE_ID = "gen_ai.response.id"
489+ """
490+ Unique identifier for the completion.
491+ Example: "gen_123abc"
492+ """
493+
397494 GEN_AI_RESPONSE_MODEL = "gen_ai.response.model"
398495 """
399496 Exact model identifier used to generate the response
@@ -454,12 +551,24 @@ class SPANDATA:
454551 Example: 0.1
455552 """
456553
554+ GEN_AI_REQUEST_SEED = "gen_ai.request.seed"
555+ """
556+ The seed, ideally models given the same seed and same other parameters will produce the exact same output.
557+ Example: "1234567890"
558+ """
559+
457560 GEN_AI_REQUEST_TEMPERATURE = "gen_ai.request.temperature"
458561 """
459562 The temperature parameter used to control randomness in the output.
460563 Example: 0.7
461564 """
462565
566+ GEN_AI_REQUEST_TOP_K = "gen_ai.request.top_k"
567+ """
568+ Limits the model to only consider the K most likely next tokens, where K is an integer (e.g., top_k=20 means only the 20 highest probability tokens are considered).
569+ Example: 35
570+ """
571+
463572 GEN_AI_REQUEST_TOP_P = "gen_ai.request.top_p"
464573 """
465574 The top_p parameter used to control diversity via nucleus sampling.
0 commit comments