harden agent builder render guidance
All checks were successful
build / build (push) Successful in 26s

This commit is contained in:
robert
2026-05-18 19:12:47 -03:00
parent 8af5384e6c
commit 45386a1f14
2 changed files with 52 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
from __future__ import annotations
import unittest
from agent_builder.builder import SYSTEM_PROMPT
class BuilderPromptTests(unittest.TestCase):
def test_prompt_requires_resource_mirror_for_heavy_agents(self) -> None:
self.assertIn("declare resources in BOTH places", SYSTEM_PROMPT)
self.assertIn("resources = Resources", SYSTEM_PROMPT)
self.assertIn("runtime:", SYSTEM_PROMPT)
self.assertIn("max_runtime_seconds", SYSTEM_PROMPT)
def test_prompt_requires_live_schema_check_and_manim_contract(self) -> None:
self.assertIn("live_skills[].input_schema", SYSTEM_PROMPT)
self.assertIn("class GeneratedDeck(Slide)", SYSTEM_PROMPT)
self.assertIn("manim-slides render --CE -ql", SYSTEM_PROMPT)
self.assertIn("render: bool = False", SYSTEM_PROMPT)