(t *testing.T)
| 365 | } |
| 366 | |
| 367 | func TestBuildInstructionsForcedNone(t *testing.T) { |
| 368 | tools := []official.Tool{ |
| 369 | {Type: "function", Function: official.ToolFunction{Name: "bash"}}, |
| 370 | } |
| 371 | choice := &official.ToolChoice{Type: "none"} |
| 372 | got := BuildInstructions(tools, choice) |
| 373 | if !strings.Contains(got, "DISABLED tool calling") { |
| 374 | t.Fatalf("missing none-warning: %s", got) |
| 375 | } |
| 376 | } |
| 377 | |
| 378 | func TestFirstToolCallExamplePicksBash(t *testing.T) { |
| 379 | tools := []official.Tool{ |
nothing calls this directly
no test coverage detected