Skip to content

Lll

mash.ai.lll · AI

Library for interacting with Large Language Models

NameTypeDescription
messagesCreate LLM chat messages
vectorsGet a vector store
lll.answer(vectorStore: VectorStore, embeddings: EmbeddingGeneratorInterface, chat: ChatInterface) → Answer

Create a semantic answer pipeline from a vector store.

lll.chat(config: AnthropicConfig) → MistralAIChat

Create a chat client from a provider config.

lll.config(provider?: string = "openai", options?: array = [])

Create a provider configuration (openai, anthropic, ollama, mistral).

lll.document() → Document

Create a new document for embedding or retrieval.

lll.embeddings(config: mixed) → EmbeddingGeneratorInterface

Create an embeddings generator from a provider config.

lll.message() → Message

Create a new chat message.

lll.parameter(name: mixed, type: mixed, description: mixed) → Parameter

Create a tool parameter definition.

lll.tool(blockName: mixed, description: mixed, args: mixed) → FunctionInfo

Create a tool definition for AI function calling.