UNPKG

@clearcompass-ai/llm-spec

Version:

A Vercel AI SDK provider for the LARS agent-based backend.

31 lines (30 loc) 1.14 kB
"use strict"; /** * @file src/index.ts * * This file is the main entry point for the @clearcompass-ai/llm-spec package. * It exports the necessary functions and types for consumers to interact with * the LARS (Legal Agent Reasoning System) provider. * * By convention, developers will import from this file, e.g.: * `import { lars, createLars } from '@clearcompass-ai/llm-spec';` */ Object.defineProperty(exports, "__esModule", { value: true }); exports.createLars = exports.lars = void 0; const lars_provider_1 = require("./lars-provider"); Object.defineProperty(exports, "createLars", { enumerable: true, get: function () { return lars_provider_1.createLars; } }); /** * A default, singleton instance of the LARS provider. * This is the easiest way for applications to get started, as it uses * default settings (reading the API URL from environment variables). * * @example * import { lars } from '@clearcompass-ai/llm-spec'; * import { streamText } from 'ai'; * * const { textStream } = await streamText({ * model: lars.languageModel('caselaw'), * // ... * }); */ exports.lars = (0, lars_provider_1.createLars)();