/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: c31b8ef752cc */ import dotenv from "dotenv"; dotenv.config(); /** * Example usage of the @gleanwork/api-client SDK * * To run this example from the examples directory: * npm run build && npx tsx clientChatCreate.example.ts */ import { Glean } from "@gleanwork/api-client"; const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", }); async function main() { const result = await glean.client.chat.create({ messages: [ { fragments: [ { text: "What are the company holidays this year?", }, ], }, ], }); console.log(result); } main().catch(console.error);