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

letta/setup

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

Letta provider installation

Install the Letta provider with the package @letta-ai/vercel-ai-sdk-provider.

Letta provider instances

The Letta provider offers two pre-configured instances: lettaCloud for cloud users and lettaLocal for self-hosted users. Both are imported from @letta-ai/vercel-ai-sdk-provider. For custom configuration, use createLetta() with baseUrl and token parameters.

Letta API key configuration

Get your API key from the Letta dashboard at https://app.letta.com/api-keys. Configure it using the LETTA_API_KEY environment variable.

Letta basic usage example with generateText

Example showing basic Letta usage: import { lettaCloud } from '@letta-ai/vercel-ai-sdk-provider'; import { generateText } from 'ai'; const result = await generateText({ model: lettaCloud(), providerOptions: { letta: { agent: { id: 'your-agent-id' } } }, prompt: 'Write a vegetarian lasagna recipe for 4 people.' }); console.log(result.text);

Give your agent this brain