Skip to content

Commit 8810ee6

Browse files
committed
fix missing tool
1 parent 0d7102e commit 8810ee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/ai/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class GEN_AI_ALLOWED_MESSAGE_ROLES:
2121
GEN_AI_ALLOWED_MESSAGE_ROLES.SYSTEM: ["system"],
2222
GEN_AI_ALLOWED_MESSAGE_ROLES.USER: ["user"],
2323
GEN_AI_ALLOWED_MESSAGE_ROLES.ASSISTANT: ["assistant", "ai"],
24-
GEN_AI_ALLOWED_MESSAGE_ROLES.TOOL_CALL: ["tool_call"],
24+
GEN_AI_ALLOWED_MESSAGE_ROLES.TOOL_CALL: ["tool", "tool_call"],
2525
}
2626

2727
GEN_AI_MESSAGE_ROLE_MAPPING = {}

0 commit comments

Comments
 (0)