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

Function TestFinalNudgeEmptyForOtherRole

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

Source from the content-addressed store, hash-verified

444}
445
446func TestFinalNudgeEmptyForOtherRole(t *testing.T) {
447 tools := []official.Tool{
448 {Type: "function", Function: official.ToolFunction{Name: "bash"}},
449 }
450 msgs := []official.APIMessage{
451 {Role: "assistant", Content: official.MessageContent{TextValue: "hi"}},
452 }
453 if got := FinalNudge(tools, msgs); got != "" {
454 t.Fatalf("got = %q, want empty for non-tool/user last role", got)
455 }
456}

Callers

nothing calls this directly

Calls 1

FinalNudgeFunction · 0.85

Tested by

no test coverage detected