mirror of
https://github.com/esengine/DeepSeek-Reasonix.git
synced 2026-11-07 10:45:59 -10:00
The unavailable refusal carried the module and detail only inside a nested diagnostics list, so the window filled a generic sentence from a code alone. Flat module/detail params now cross the boundary and both languages use them.
18 lines
626 B
Go
18 lines
626 B
Go
package boot
|
|
|
|
import (
|
|
"errors"
|
|
"testing"
|
|
|
|
"reasonix/internal/contract/agentcomposition"
|
|
)
|
|
|
|
func TestAMissingSelectedModuleIsNamedByKindAndID(t *testing.T) {
|
|
sel := agentcomposition.Selection{Mode: agentcomposition.Select, Members: []agentcomposition.Module{{ID: "browser_act"}}}
|
|
err := verifySelected("tools", sel, []string{"read"}, func(v string) string { return v })
|
|
var diagnosed *agentcomposition.DiagnosticError
|
|
if !errors.As(err, &diagnosed) || len(diagnosed.Diagnostics) != 1 || diagnosed.Diagnostics[0].Module != "tools:browser_act" {
|
|
t.Fatalf("err = %#v, want a diagnostic for tools:browser_act", err)
|
|
}
|
|
}
|