Usage #
// Import the typed helper
import { getLatestRelease } from "@hotglue/sdk/github";
const result = await client.execute({
...getLatestRelease({
owner: string,
repo: string,
}),
userId: "user_123",
});
// result is typed as GetLatestReleaseOutput
const result = await client.execute({
integration: "github",
tool: "get_latest_release",
userId: "user_123",
input: {
owner: string,
repo: 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 Get Latest Release tool");
Input Schema #
owner
string
required
Repository owner
repo
string
required
Repository name
Output Schema #
id
int
required
tag_name
string
required
name
string
body
string
draft
bool
prerelease
bool
html_url
string
required
published_at
string
This tool calls: #
GET
https://api.github.com/repos/{owner}/{repo}/releases/latest