Skip to content

Commit e6c23dd

Browse files
chore: switch to share syntax
1 parent 272ca9b commit e6c23dd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/parser/parser.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,15 @@ func isParam(line string, tool *types.Tool) (_ bool, err error) {
100100
return false, err
101101
}
102102
tool.Parameters.Chat = v
103-
case "export", "exporttool", "exports", "exporttools":
103+
case "export", "exporttool", "exports", "exporttools", "sharetool", "sharetools":
104104
tool.Parameters.Export = append(tool.Parameters.Export, csv(value)...)
105105
case "tool", "tools":
106106
tool.Parameters.Tools = append(tool.Parameters.Tools, csv(value)...)
107107
case "agent", "agents":
108108
tool.Parameters.Agents = append(tool.Parameters.Agents, csv(value)...)
109109
case "globaltool", "globaltools":
110110
tool.Parameters.GlobalTools = append(tool.Parameters.GlobalTools, csv(value)...)
111-
case "exportcontext", "exportcontexts":
111+
case "exportcontext", "exportcontexts", "sharecontext", "sharecontexts":
112112
tool.Parameters.ExportContext = append(tool.Parameters.ExportContext, csv(value)...)
113113
case "context":
114114
tool.Parameters.Context = append(tool.Parameters.Context, csv(value)...)

pkg/types/tool.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,10 @@ func (t ToolDef) String() string {
251251
_, _ = fmt.Fprintf(buf, "Tools: %s\n", strings.Join(t.Parameters.Tools, ", "))
252252
}
253253
if len(t.Parameters.Export) != 0 {
254-
_, _ = fmt.Fprintf(buf, "Export Tools: %s\n", strings.Join(t.Parameters.Export, ", "))
254+
_, _ = fmt.Fprintf(buf, "Share Tools: %s\n", strings.Join(t.Parameters.Export, ", "))
255255
}
256256
if len(t.Parameters.ExportContext) != 0 {
257-
_, _ = fmt.Fprintf(buf, "Export Context: %s\n", strings.Join(t.Parameters.ExportContext, ", "))
257+
_, _ = fmt.Fprintf(buf, "Share Context: %s\n", strings.Join(t.Parameters.ExportContext, ", "))
258258
}
259259
if len(t.Parameters.Context) != 0 {
260260
_, _ = fmt.Fprintf(buf, "Context: %s\n", strings.Join(t.Parameters.Context, ", "))

0 commit comments

Comments
 (0)