File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -199,7 +199,13 @@ func ToolMap(tools []Tool) map[string]Tool {
199199func ToolDescriptions (tools []Tool ) string {
200200 var sb strings.Builder
201201 sb .WriteString ("## Available tools\n \n " )
202- sb .WriteString ("Call tools using:\n ```tool\n {\" tool\" :\" name\" ,\" args\" :{\" key\" :\" value\" }}\n ```\n \n " )
202+ sb .WriteString ("IMPORTANT - How to call tools:\n " )
203+ sb .WriteString ("When you need to use a tool, you MUST use this EXACT format:\n \n " )
204+ sb .WriteString ("```tool\n " )
205+ sb .WriteString ("{\" tool\" :\" TOOL_NAME\" ,\" args\" :{\" arg1\" :\" value1\" }}\n " )
206+ sb .WriteString ("```\n \n " )
207+ sb .WriteString ("Replace TOOL_NAME with the tool name and provide arguments as JSON.\n \n " )
208+ sb .WriteString ("Available tools:\n \n " )
203209 for _ , t := range tools {
204210 sb .WriteString (fmt .Sprintf ("### %s\n %s\n \n " , t .Name , t .Description ))
205211 }
You can’t perform that action at this time.
0 commit comments