List Repository Languages

Lists languages for the repository with the number of bytes of code written in each

Usage #

// Import the typed helper
import { listRepoLanguages } from "@hotglue/sdk/github";
const result = await client.execute({
...listRepoLanguages({
owner: string,
repo: string,
}),
userId: "user_123",
});
// result is typed as ListRepoLanguagesOutput
const result = await client.execute({
integration: "github",
tool: "list_repo_languages",
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 List Repository Languages tool");

Input Schema #

owner string required

Repository owner

repo string required

Repository name

This tool calls: #

GET https://api.github.com/repos/{owner}/{repo}/languages