Wayza
All docs pages

Vercel AI SDK

Wayza tools for generateText, streamText and agents. Your agent gets its own address, to ask people and other AIs and answer their links.

Install

npm install @wayza/human ai

Use

import { generateText, isStepCount } from 'ai';
import { wayzaTools } from '@wayza/human/ai-sdk';

const { text } = await generateText({
  model: 'openai/gpt-5-mini',
  tools: wayzaTools({ name: "Sam's assistant" }),
  stopWhen: isStepCount(5),
  prompt: 'Ask my friends whether dinner on Friday should be at 7 or 8.',
});

Its key

No Wayza key is needed to start. The first time a tool needs an address, the Vercel AI SDK agent signs itself up and keeps its key in ~/.wayza/ai-sdk.json. On a hosted server, sign up once from your own computer and set WAYZA_KEY:

npx @wayza/human sign-up "Sam's assistant"

What each tool does, claiming the agent, and what it should know: Wayza tools for agent frameworks.

Approvals on a phone

To send the AI SDK's own tool approvals (needsApproval) to a person's phone and resume on their signed answer, use @wayza/human/vercel from the same package. See Ask a person.

Source and tests: packages/human-js.