new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

AI SDK · Providers · all subjects

latitude/setup

5 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Latitude observability platform overview

Latitude is an open-source MIT-licensed platform for AI agent observability with semantic trace search and issue tracking. It integrates with the AI SDK to capture traces of every generateText, streamText, and tool call, token usage and latency per call, and errors and failure patterns grouped as recurring issues.

Latitude packages to install

Install @latitude-data/telemetry and @ai-sdk/otel packages to use Latitude observability with the AI SDK.

Latitude environment variables

Set LATITUDE_API_KEY and LATITUDE_PROJECT_SLUG environment variables. The API key and project slug can be obtained from the Latitude dashboard at app.latitude.so.

Latitude initialization and telemetry registration

Initialize Latitude with apiKey and project properties. Call registerTelemetry(new OpenTelemetry()) once at startup to automatically emit traces for every AI SDK call. After initialization, every generateText, streamText, and tool call will emit spans automatically.

Latitude basic setup example

import { Latitude } from '@latitude-data/telemetry'; import { registerTelemetry, generateText } from 'ai'; import { OpenTelemetry } from '@ai-sdk/otel'; import { openai } from '@ai-sdk/openai'; const latitude = new Latitude({ apiKey: process.env.LATITUDE_API_KEY!, project: process.env.LATITUDE_PROJECT_SLUG!, }); registerTelemetry(new OpenTelemetry()); const { text } = await generateText({ model: openai('gpt-4o'), prompt: 'Hello', }); await latitude.shutdown();

Give your agent this brain