https://docs.uselemma.ai/llms.txt and each page’s .md URL). Run a folder, ask a question, then open Traces and confirm one root with nested tools and generations.
Package-level snippets in
packages/ts/tracing/examples and packages/py/tracing/examples are SDK API samples. Use this directory when you want a complete agent.Pick a stack
Pass the framework adapter (callback, processor, exporter, or telemetry helper). Uselemma.trace() only when you are not on one of those frameworks.
TypeScript
Python
Vercel AI SDK and Mastra are TypeScript-only.
Run
Copyexamples/.env.example to examples/.env and set LEMMA_API_KEY, LEMMA_PROJECT_ID, and OPENAI_API_KEY.
TypeScript, from the repo root after pnpm install:
uv sync:
threadId / thread_id. See Instrumenting multi-turn agents.
What a ready trace looks like
LEMMA_DEBUG=1 and follow Common issues.