Skip to content

Commit 119b3b8

Browse files
committed
Added some attributes from sentry conventions that where missing
1 parent 84adbb7 commit 119b3b8

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

sentry_sdk/consts.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,18 @@ class SPANDATA:
383383
Example: "qa-pipeline"
384384
"""
385385

386+
GEN_AI_RESPONSE_FINISH_REASONS = "gen_ai.response.finish_reasons"
387+
"""
388+
The reason why the model stopped generating.
389+
Example: "COMPLETE"
390+
"""
391+
392+
GEN_AI_RESPONSE_ID = "gen_ai.response.id"
393+
"""
394+
Unique identifier for the completion.
395+
Example: "gen_123abc"
396+
"""
397+
386398
GEN_AI_RESPONSE_MODEL = "gen_ai.response.model"
387399
"""
388400
Exact model identifier used to generate the response
@@ -443,12 +455,24 @@ class SPANDATA:
443455
Example: 0.1
444456
"""
445457

458+
GEN_AI_REQUEST_SEED = "gen_ai.request.seed"
459+
"""
460+
The seed, ideally models given the same seed and same other parameters will produce the exact same output.
461+
Example: "1234567890"
462+
"""
463+
446464
GEN_AI_REQUEST_TEMPERATURE = "gen_ai.request.temperature"
447465
"""
448466
The temperature parameter used to control randomness in the output.
449467
Example: 0.7
450468
"""
451469

470+
GEN_AI_REQUEST_TOP_K = "gen_ai.request.top_k"
471+
"""
472+
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).
473+
Example: 35
474+
"""
475+
452476
GEN_AI_REQUEST_TOP_P = "gen_ai.request.top_p"
453477
"""
454478
The top_p parameter used to control diversity via nucleus sampling.

0 commit comments

Comments
 (0)