Skip to content

Commit b08f8e0

Browse files
committed
test adding server instructions for sorting
1 parent 3222903 commit b08f8e0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pkg/github/instructions.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ Tool selection guidance:
3636
3737
Context management:
3838
1. Use pagination whenever possible with batches of 5-10 items.
39-
2. Use minimal_output parameter set to true if the full information is not needed to accomplish a task.`
39+
2. Use minimal_output parameter set to true if the full information is not needed to accomplish a task.
40+
41+
For 'search_*' tools specifically:
42+
1. Use separate 'sort' and 'order' parameters for sorting results if available - do not include 'sort:' syntax in query strings.
43+
2. Query strings should contain only search criteria (e.g., 'org:google language:python'), not sorting instructions.
44+
3. For best results: use 'query' for what to find, 'sort' for how to order results, 'order' for direction.`
4045

4146
allInstructions := []string{baseInstruction}
4247
allInstructions = append(allInstructions, instructions...)

0 commit comments

Comments
 (0)