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

nia/capabilities

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.

Nia capabilities overview

Nia provides an API for indexing and searching technical documentation. It supports indexing docs, repos, PDFs, and datasets, then searching them with AI to provide grounded answers.

Nia tool integration options

Nia integrates with the AI SDK through three main integration methods: tools (passed to generateText or streamText), middleware (to enrich user messages before model execution), and direct streaming helpers (to consume raw Nia job events).

Individual Nia tool creation functions

The SDK exports `createTracerTool()`, `createOracleTool()`, and `createDocumentAgentTool()` functions for creating individual tools when only one service is needed instead of all three.

Nia middleware functions

Nia provides three middleware functions: `withOracleContext()`, `withTracerContext()`, and `withDocumentAgentContext()`. These enrich the last user message before the base model runs. Lower-level `createTracerMiddleware()`, `createOracleMiddleware()`, and `createDocumentAgentMiddleware()` exports return raw LanguageModelMiddleware objects for custom composition.

Nia direct streaming helper functions

The SDK provides direct streaming helpers for raw Nia job events: `streamTracer()`, `streamOracle()`, `streamOracleSessionChat()`, and `streamDocumentAgent()`. These return a session object with an events async iterable.

Give your agent this brain