mirror of
https://github.com/mistralai/mistral-vibe
synced 2026-04-25 17:14:55 +02:00
Co-authored-by: Bastien <bastien.baret@gmail.com> Co-authored-by: Clément Sirieix <clement.sirieix@mistral.ai> Co-authored-by: Julien Legrand <72564015+JulienLGRD@users.noreply.github.com> Co-authored-by: Kim-Adeline Miguel <51720070+kimadeline@users.noreply.github.com> Co-authored-by: Mathias Gesbert <mathias.gesbert@mistral.ai> Co-authored-by: Pierre Rossinès <pierre.rossines@mistral.ai> Co-authored-by: Quentin <quentin.torroba@mistral.ai> Co-authored-by: Vincent G <10739306+VinceOPS@users.noreply.github.com> Co-authored-by: Mistral Vibe <vibe@mistral.ai>
37 lines
729 B
Python
37 lines
729 B
Python
from __future__ import annotations
|
|
|
|
from enum import StrEnum, auto
|
|
from pathlib import Path
|
|
|
|
from vibe import VIBE_ROOT
|
|
from vibe.core.utils.io import read_safe
|
|
|
|
_PROMPTS_DIR = VIBE_ROOT / "core" / "prompts"
|
|
|
|
|
|
class Prompt(StrEnum):
|
|
@property
|
|
def path(self) -> Path:
|
|
return (_PROMPTS_DIR / self.value).with_suffix(".md")
|
|
|
|
def read(self) -> str:
|
|
return read_safe(self.path).text.strip()
|
|
|
|
|
|
class SystemPrompt(Prompt):
|
|
CLI = auto()
|
|
EXPLORE = auto()
|
|
TESTS = auto()
|
|
LEAN = auto()
|
|
|
|
|
|
class UtilityPrompt(Prompt):
|
|
AGENTS_DOC = auto()
|
|
COMPACT = auto()
|
|
DANGEROUS_DIRECTORY = auto()
|
|
PROJECT_CONTEXT = auto()
|
|
TURN_SUMMARY = auto()
|
|
|
|
|
|
__all__ = ["SystemPrompt", "UtilityPrompt"]
|