|
46 | 46 |
|
47 | 47 | _logger = logging.getLogger(__name__) |
48 | 48 |
|
| 49 | +_SEER_STARTING_PROMPTS = [ |
| 50 | + { |
| 51 | + "title": "Summarize recent issues", |
| 52 | + "message": "What are the most important unresolved issues in my projects right now?", |
| 53 | + }, |
| 54 | + { |
| 55 | + "title": "Investigate an error", |
| 56 | + "message": "Help me investigate what's causing errors in my project.", |
| 57 | + }, |
| 58 | + { |
| 59 | + "title": "Explain a stack trace", |
| 60 | + "message": "Can you explain the root cause of this stack trace?", |
| 61 | + }, |
| 62 | + { |
| 63 | + "title": "Find performance bottlenecks", |
| 64 | + "message": "What are the slowest endpoints or pages in my projects?", |
| 65 | + }, |
| 66 | +] |
49 | 67 | _SEER_LOADING_MESSAGES = [ |
50 | 68 | "Digging through your errors...", |
51 | 69 | "Sifting through stack traces...", |
@@ -544,24 +562,7 @@ def on_assistant_thread_started(self, slack_request: SlackEventRequest) -> Respo |
544 | 562 | channel_id=channel_id, |
545 | 563 | thread_ts=thread_ts, |
546 | 564 | title="Hi there! I'm Seer, Sentry's AI assistant. How can I help?", |
547 | | - prompts=[ |
548 | | - { |
549 | | - "title": "Summarize recent issues", |
550 | | - "message": "What are the most important unresolved issues in my projects right now?", |
551 | | - }, |
552 | | - { |
553 | | - "title": "Investigate an error", |
554 | | - "message": "Help me investigate what's causing errors in my project.", |
555 | | - }, |
556 | | - { |
557 | | - "title": "Explain a stack trace", |
558 | | - "message": "Can you explain the root cause of this stack trace?", |
559 | | - }, |
560 | | - { |
561 | | - "title": "Find performance bottlenecks", |
562 | | - "message": "What are the slowest endpoints or pages in my projects?", |
563 | | - }, |
564 | | - ], |
| 565 | + prompts=_SEER_STARTING_PROMPTS, |
565 | 566 | ) |
566 | 567 | except Exception: |
567 | 568 | _logger.exception( |
|
0 commit comments