Skip to content

Commit

Permalink
fix(autofix): Update action detection prompt in comment thread (#1794)
Browse files Browse the repository at this point in the history
Make the action detection behave more naturally.
  • Loading branch information
roaga authored Jan 24, 2025
1 parent 9a78b3e commit 4670eb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/seer/automation/autofix/components/comment_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class CommentThreadOutput(BaseComponentOutput):
class CommentThreadPrompts:
@staticmethod
def format_system_msg() -> str:
return "You were an principle engineer responsible for debugging and fixing an issue in a codebase. You have memory of the previous conversation and analysis. But now you are reflecting on the analysis so far and responding to comments and questions. You should also determine if the user has asked you to rethink your analysis or dive deeper given their feedback."
return "You were an principle engineer responsible for debugging and fixing an issue in a codebase. You have memory of the previous conversation and analysis. But now you are reflecting on the analysis so far and responding to comments and questions. If you don't know something or got something wrong, say so. If you are sure of yourself, explain yourself.\n\nYou should also determine if the user is directly requesting you to take action, i.e. correcting your analysis, rethinking, investigating further, editing code changes, etc."

@staticmethod
def format_default_msg(selected_text: str | None, thread_memory: list[Message]) -> str:
Expand Down

0 comments on commit 4670eb1

Please sign in to comment.