Install any skill in seconds. Free to start, no credit card required.
Get Started Free →growthxai/output-dev-agent-class
Use the Agent class for multi-step tool loops, conversation history, and reusable LLM agents.
Passed 22 of 23 test cases with the skill, and 12 of 23 without it.
and 11 more in the full report
11 fixed11 passed either way0 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 11 test cases the skill fixed. Same model, same prompt, with and without the skill.
In an Output LLM codebase, when creating a validation schema for agent variables, which package export path should `z` be imported from?
| Checked | Without skill | With skill |
|---|---|---|
| Specifies importing z from @outputai/core | Missed | Passed |
The instructions your model reads when the skill loads.
The Agent class uses an internal AI SDK ToolLoopAgent through composition with Output prompt files and the skills system. It does not inherit from ToolLoopAgent. Use it when you need multi-step tool execution, conversation history, or a reusable agent instance. For single-shot LLM calls without tools, generateText is simpler.
aiSdk.Output.object()messageStoreonChunkAgent and generateTextimport { Agent, aiSdk } from '@outputai/llm';
import type { MessageStore } from '@outputai/llm';
import { z } from '@outputai/core';
Agent comes from @outputai/llm. Use aiSdk.Output for structured output. Import z from @outputai/core (never from zod directly). MessageStore is the type for a pluggable getMessages / addMessages store; implement it yourself.
The prompt file is loaded and rendered at construction time. Variables and tools are fixed at construction. Skills and maxSteps come from the prompt file. The agent is ready to call generate(), generateWithStreaming(), or stream() immediately.
const agent = new Agent( {
prompt: 'writing_assistant@v1',
variables: {
content_type: input.contentType,
focus: input.focus,
content: input.content
},
output: aiSdk.Output.object( { schema: reviewSchema } )
} );
test cases passed, vs 12 / 23 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.