We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 528a4b3 commit c805d09Copy full SHA for c805d09
1 file changed
pkg/agent/agent_test.go
@@ -75,6 +75,21 @@ func TestAgentTools(t *testing.T) {
75
wantToolCount: 0,
76
wantWarnings: 0,
77
},
78
+ {
79
+ name: "duplicate tool names are deduplicated",
80
+ toolsets: []tools.ToolSet{
81
+ newStubToolSet(nil, []tools.Tool{
82
+ {Name: "read_file", Parameters: map[string]any{}},
83
+ {Name: "write_file", Parameters: map[string]any{}},
84
+ }, nil),
85
86
87
+ {Name: "shell", Parameters: map[string]any{}},
88
89
+ },
90
+ wantToolCount: 3,
91
+ wantWarnings: 0,
92
93
}
94
95
for _, tt := range tests {
0 commit comments