Skip to content

Quick Start

Installation

npm install @johannes.latzel/llm-chat-task

Quick setup

import { TaskPool, TaskToolPackage } from '@johannes.latzel/llm-chat-task';

const pool = await TaskPool.create();
const pkg = new TaskToolPackage(pool);
service.tools().add(pkg);

Persistence is store-backed: every TaskPool is backed by an ObjectStore. Without a configured dir that is an in-memory store; set dir (option or LLM_CHAT_TASK_DIR env var) to persist to a directory and pre-load any stored tasks:

import { TaskConfiguration, TaskPool } from '@johannes.latzel/llm-chat-task';

const pool = await TaskPool.create(new TaskConfiguration({ dir: './tasks' }));
// createTask/updateTask auto-persist; existing tasks are loaded on create

Next steps

See the API Reference for full tool documentation and Architecture for design details.