Overview
Install Dependency
npm install alith
# Or use pnpm
pnpm install alith
# Or use yarn
yarn install alithnpm i --save-dev @types/json-schema
# Or use pnpm
pnpm install --save-dev @types/json-schema
# Or use yarn
yarn install --save-dev @types/json-schemaWrite the Code
import { Agent } from "alith";
const agent = new Agent({
model: "gpt-4",
preamble: "You are a comedian here to entertain the user using humour and jokes.",
});
console.log(await agent.prompt("Entertain me!"));Model Provider Settings
Run the Code
Last updated

