Skip to content

Commit 2cf9768

Browse files
bug: tool should be a synonym for tools, not name
1 parent fd7e77d commit 2cf9768

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/parser/parser.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ func isParam(line string, tool *types.Tool) (_ bool, err error) {
7474
}
7575
value = strings.TrimSpace(value)
7676
switch normalize(key) {
77-
case "tool":
78-
fallthrough
7977
case "name":
8078
tool.Parameters.Name = strings.ToLower(value)
8179
case "model":
@@ -92,6 +90,8 @@ func isParam(line string, tool *types.Tool) (_ bool, err error) {
9290
tool.Parameters.InternalPrompt = &v
9391
case "export":
9492
tool.Parameters.Export = append(tool.Parameters.Export, csv(strings.ToLower(value))...)
93+
case "tool":
94+
fallthrough
9595
case "tools":
9696
tool.Parameters.Tools = append(tool.Parameters.Tools, csv(strings.ToLower(value))...)
9797
case "args":

0 commit comments

Comments
 (0)