(t *testing.T)
| 444 | } |
| 445 | |
| 446 | func 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 | } |
nothing calls this directly
no test coverage detected