Usage #
// Import the typed helper
import { searchRepos } from "@hotglue/sdk/github";
const result = await client.execute({
...searchRepos({
q: string,
sort: string,
order: string,
// ...
}),
userId: "user_123",
});
// result is typed as SearchReposOutput
const result = await client.execute({
integration: "github",
tool: "search_repos",
userId: "user_123",
input: {
q: string,
sort: string,
order: string,
// ...
},
});
// The agent will automatically use this tool when needed
const agent = new Agent({
tools: () => hotglueTools({
integrations: ["github"],
userId: "user_123",
}),
});
await agent.generate("run the Search Repositories tool");
Input Schema #
q
string
required
Search query (see GitHub search syntax)
sort
string
Sort results
values:
stars, forks, help-wanted-issues, updated
order
string
default:
desc
values: asc, desc
per_page
int
default:
30
page
int
default:
1
This tool calls: #
GET
https://api.github.com/search/repositories