v2.11.0 (#717)
Co-authored-by: Clément Drouin <clement.drouin@mistral.ai> Co-authored-by: Clément Sirieix <clement.sirieix@mistral.ai> Co-authored-by: Guillaume LE GOFF <guillaume.lgf@gmail.com> Co-authored-by: Mathias Gesbert <mathias.gesbert@mistral.ai> Co-authored-by: Michel Thomazo <51709227+michelTho@users.noreply.github.com> Co-authored-by: Pierre Rossinès <pierre.rossines@mistral.ai> Co-authored-by: Vincent G <10739306+VinceOPS@users.noreply.github.com> Co-authored-by: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
f71bfd3b8c
commit
adb1ca74ce
202 changed files with 5828 additions and 1968 deletions
|
|
@ -1,5 +1,6 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from datetime import date
|
||||
import sys
|
||||
|
||||
import pytest
|
||||
|
|
@ -123,3 +124,25 @@ def test_headless_section_absent_by_default() -> None:
|
|||
)
|
||||
|
||||
assert "Headless Mode" not in prompt
|
||||
|
||||
|
||||
def test_current_date_placeholder_substituted_in_prompt() -> None:
|
||||
config = build_test_vibe_config(
|
||||
system_prompt_id="cli",
|
||||
include_project_context=False,
|
||||
include_prompt_detail=False,
|
||||
include_model_info=False,
|
||||
include_commit_signature=False,
|
||||
)
|
||||
tool_manager = ToolManager(lambda: config)
|
||||
skill_manager = SkillManager(lambda: config)
|
||||
agent_manager = AgentManager(lambda: config)
|
||||
|
||||
prompt = get_universal_system_prompt(
|
||||
tool_manager, config, skill_manager, agent_manager
|
||||
)
|
||||
|
||||
today = date.today()
|
||||
expected = f"Today's date is {today.isoformat()} ({today.strftime('%A')})."
|
||||
assert expected in prompt
|
||||
assert "$current_date" not in prompt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue