Usage #
// Import the typed helper
import { getAuthenticatedUser } from "@hotglue/sdk/github";
const result = await client.execute({
...getAuthenticatedUser(),
userId: "user_123",
});
// result is typed as GetAuthenticatedUserOutput
const result = await client.execute({
integration: "github",
tool: "get_authenticated_user",
userId: "user_123",
input: {},
});
// 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 Get Authenticated User tool");
Required Permissions #
read:user
Output Schema #
id
int
required
login
string
required
Username
name
string
Display name
email
string
avatar_url
string
bio
string
company
string
location
string
blog
string
public_repos
int
followers
int
following
int
created_at
string
This tool calls: #
GET
https://api.github.com/user