MCPcopy Create free account
hub / github.com/aurora-develop/aurora / TestBuildInstructionsForcedChoice

Function TestBuildInstructionsForcedChoice

internal/toolcall/parser_test.go:356–365  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

354}
355
356func TestBuildInstructionsForcedChoice(t *testing.T) {
357 tools := []official.Tool{
358 {Type: "function", Function: official.ToolFunction{Name: "bash"}},
359 }
360 choice := &official.ToolChoice{Type: "function", Function: &official.ToolChoiceFunction{Name: "bash"}}
361 got := BuildInstructions(tools, choice)
362 if !strings.Contains(got, `MUST call the tool "bash"`) {
363 t.Fatalf("missing forced-call line: %s", got)
364 }
365}
366
367func TestBuildInstructionsForcedNone(t *testing.T) {
368 tools := []official.Tool{

Callers

nothing calls this directly

Calls 1

BuildInstructionsFunction · 0.85

Tested by

no test coverage detected