diff --git a/src/ai_ticket/__init__.py b/src/ai_ticket/__init__.py index 37756e8..e0f23ce 100644 --- a/src/ai_ticket/__init__.py +++ b/src/ai_ticket/__init__.py @@ -1,7 +1,13 @@ +""" +This is a simple function to look for the role name in the message of autogpt +yes it is very specific and will have to be more generalized. +""" import re + pattern = r'(```)?\s*{\s*"messages"\s*:\s*\[\s*\{\s*"role"\s*:\s*"system"\s*,\s*\"content"\s*:\s*"You\s+are\s+(?P[^,]+),.*' + def find_name(text): if not text: return False