output
    Preparing search index...

    Class Agent<OutputSpec>

    Agent extends AI SDK's ToolLoopAgent with Output.ai prompt file rendering and the skill system.

    const reviewer = new Agent({
    prompt: 'reviewer@v1',
    output: Output.object({ schema: z.object({ summary: z.string() }) }),
    maxSteps: 5
    });
    const result = await reviewer.generate();
    const chatbot = new Agent({
    prompt: 'chatbot@v1',
    conversationStore: createMemoryConversationStore()
    });
    const r1 = await chatbot.generate({ messages: [{ role: 'user', content: 'Hello' }] });

    Type Parameters

    • OutputSpec extends AnyAiOutput = AnyAiOutput

    Hierarchy

    Index

    Constructors

    Methods

    Constructors

    Methods