Skip to main content
Glama
by microsoft
classify.genai.mjs792 B
script({ files: "src/robots.jpg", }) import { classify } from "genaiscript/runtime" const qa = await classify( "The app crashes when I try to upload a file.", { bug: "a software defect", feat: "a feature request", qa: "an inquiry about how to use the software", }, { other: true } ) console.log(qa) const joke = await classify( "Why did the chicken cross the roard? To fry in the sun.", { yes: "funny", no: "not funny", }, { explanations: true } ) console.log(joke) const robots = await classify( (_) => _.defImages(env.files), { object: "Depicts objects, machines, robots, toys, ...", animal: "Animals, pets, monsters", }, { other: true, model: "vision" } ) console.log(robots)

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/microsoft/genaiscript'

If you have feedback or need assistance with the MCP directory API, please join our Discord server