Spaces:
Sleeping
Sleeping
Commit History
-
added automatic attack button in UI and improved roleplay
abd2333
-
Fix pipeline 0.0 scoring override, resolve test floating-point flakiness, and add readable CLI output for inference.py
9c67b20
-
added graders and rewards
dd3b701 -
add 59 tests for the LLM modules β all run offline, no API neededβ
Naman GuptaCovers everything: conversation memory, attack classifier, defense scorer, defender fallbacks, safety flags, multi-turn continuity, boundary values, and the episode grader. Mocked Groq calls so the test suite is fast and doesn't burn API quota.c7a9ff1 -
test(graders): add programmatic_grader tests β structure, score range, letter grade
30ab30f -
test(graders): add hard_grader tests β breakthrough bonus and repetitive penalty
dc89e10 -
test(graders): add medium_grader tests β diversity scores higher than uniform strategies
843ee19 -
test(graders): add easy_grader tests β empty, good, bad episode and range check
a5aa26d -
test(environment): add injection tests β custom reward_computer and llm_pipeline are called
613f214 -
test(environment): add framing sanitization tests for script and javascript injection
b81d32a -
test(environment): add guard tests β step without reset raises, step past max_turns raises
d512522 -
test(environment): add step() tests β turn increment, history append, result shape
fd32873 -
test(environment): add reset() tests β observation shape, history clear, unique ids
51dbc62 -
chore(tests): add tests package __init__.py
2bab08f