You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/search_issues.snap
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
"readOnlyHint": true,
5
5
"title": "Search issues"
6
6
},
7
-
"description": "Search for issues in GitHub repositories using issues search syntax already scoped to is:issue",
7
+
"description": "Search issues using natural-language semantic matching. Best for conceptual or paraphrased queries (e.g. \"login fails after password reset\"). Already scoped to is:issue.",
8
8
"inputSchema": {
9
9
"properties": {
10
10
"order": {
@@ -31,7 +31,7 @@
31
31
"type": "number"
32
32
},
33
33
"query": {
34
-
"description": "Search query using GitHub issues search syntax",
34
+
"description": "The search query. Write it as natural language. Avoid boolean OR operators, which fall back to lexical search.",
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/search_issues_ff_fields_param.snap
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
"readOnlyHint": true,
5
5
"title": "Search issues"
6
6
},
7
-
"description": "Search for issues in GitHub repositories using issues search syntax already scoped to is:issue",
7
+
"description": "Search issues using natural-language semantic matching. Best for conceptual or paraphrased queries (e.g. \"login fails after password reset\"). Already scoped to is:issue.",
8
8
"inputSchema": {
9
9
"properties": {
10
10
"fields": {
@@ -64,7 +64,7 @@
64
64
"type": "number"
65
65
},
66
66
"query": {
67
-
"description": "Search query using GitHub issues search syntax",
67
+
"description": "The search query. Write it as natural language. Avoid boolean OR operators, which fall back to lexical search.",
// The two search engines want opposite things from a caller, so steering advice
1622
+
// for one is counterproductive for the other: semantic rewards paraphrased
1623
+
// natural language and degrades on boolean operators, while lexical needs the
1624
+
// caller's literal keywords and handles OR fine. The description has to describe
1625
+
// the engine the host will actually use.
1626
+
const (
1627
+
searchIssuesSemanticDescription="Search issues using natural-language semantic matching. Best for conceptual or paraphrased queries (e.g. \"login fails after password reset\"). Already scoped to is:issue."
1628
+
searchIssuesLexicalDescription="Search for issues in GitHub repositories using issues search syntax already scoped to is:issue"
1629
+
1630
+
searchIssuesSemanticQueryDescription="The search query. Write it as natural language. Avoid boolean OR operators, which fall back to lexical search."
1631
+
searchIssuesLexicalQueryDescription="Search query using GitHub issues search syntax"
1632
+
)
1633
+
1621
1634
// searchIssuesTool builds the search_issues tool. When includeFields is true the
1622
1635
// tool advertises the optional `fields` parameter, filters each result to the
1623
1636
// requested subset, and emits fields telemetry. When false it is the original
1624
1637
// tool with no fields parameter and no filtering.
0 commit comments