Lll
mash.ai.lll · AI
Library for interacting with Large Language Models
Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
messages | Create LLM chat messages | |
vectors | Get a vector store |
Methods
Section titled “Methods”answer
Section titled “answer”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.
config
Section titled “config”lll.config(provider?: string = "openai", options?: array = [])
Create a provider configuration (openai, anthropic, ollama, mistral).
document
Section titled “document”lll.document() → Document
Create a new document for embedding or retrieval.
embeddings
Section titled “embeddings”lll.embeddings(config: mixed) → EmbeddingGeneratorInterface
Create an embeddings generator from a provider config.
message
Section titled “message”lll.message() → Message
Create a new chat message.
parameter
Section titled “parameter”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.