Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2f846ed

Browse files
Add GitHub Docs toolset instructions and corresponding tests
1 parent145a874 commit2f846ed

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

‎pkg/github/instructions.go‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@ Check 'list_issue_types' first for organizations to use proper issue types. Use
6262
return`## Discussions
6363
6464
Use 'list_discussion_categories' to understand available categories before creating discussions. Filter by category for better organization.`
65+
case"github_docs":
66+
return`## GitHub Docs
67+
68+
When searching GitHub documentation:
69+
1. First, call 'search_github_docs' to find relevant documentation pages
70+
2. Then, present ALL relevant results as a list with clickable hyperlinks to the user
71+
3. Finally, use 'fetch_webpage' to retrieve the full content from one or more of the returned URLs to provide a detailed answer grounded in the documentation
72+
73+
Always show the search results before fetching and summarizing the content.`
6574
default:
6675
return""
6776
}

‎pkg/github/instructions_test.go‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ func TestGenerateInstructions(t *testing.T) {
3636
enabledToolsets: []string{"discussions"},
3737
expectedEmpty:false,
3838
},
39+
{
40+
name:"github_docs toolset",
41+
enabledToolsets: []string{"github_docs"},
42+
expectedEmpty:false,
43+
},
3944
{
4045
name:"multiple toolsets (context + pull_requests)",
4146
enabledToolsets: []string{"context","pull_requests"},
@@ -143,6 +148,10 @@ func TestGetToolsetInstructions(t *testing.T) {
143148
toolset:"discussions",
144149
expectedEmpty:false,
145150
},
151+
{
152+
toolset:"github_docs",
153+
expectedEmpty:false,
154+
},
146155
{
147156
toolset:"nonexistent",
148157
expectedEmpty:true,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp