mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-04 12:07:09 +00:00
feat(runner): append spec instructions to llm system prompt
This commit is contained in:
1 parent
d9d206ee00
commit
637f89ab08
3 files changed
+35
-8
No files matched your search
@@ -141,6 +141,19 @@ func TestParseRanked(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestSystemPromptAppendsInstructions(t *testing.T) {
|
||||
if got := (&llmSource{}).systemPrompt(); got != llmSystemPrompt {
|
||||
t.Error("empty instructions should yield the base prompt unchanged")
|
||||
}
|
||||
withInstr := (&llmSource{instructions: "hunt for double submits"}).systemPrompt()
|
||||
if !strings.Contains(withInstr, llmSystemPrompt) {
|
||||
t.Error("system prompt must retain the base framing")
|
||||
}
|
||||
if !strings.Contains(withInstr, "hunt for double submits") {
|
||||
t.Error("system prompt must include the spec instructions")
|
||||
}
|
||||
}
|
||||
|
||||
// fakeOpenRouter is a configurable in-process OpenRouter server. Set ranked /
|
||||
// reasoning before each call; it echoes them as a json_schema content body.
|
||||
type fakeOpenRouter struct {
|
||||
|
||||
Reference in new issue
Block a user