Usage #
// Import the typed helper
import { searchUsers } from "@hotglue/sdk/github";
const result = await client.execute({
...searchUsers({
q: string,
sort: string,
order: string,
// ...
}),
userId: "user_123",
});
// result is typed as SearchUsersOutput
const result = await client.execute({
integration: "github",
tool: "search_users",
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 Users tool");
Input Schema #
q
string
required
Search query
sort
string
Sort results
values:
followers, repositories, joined
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/users