SmythOS SDK
    Preparing search index...

    Building Agents

    This section covers everything about creating, configuring, and extending agents in the SmythOS SDK.

    Guide Description
    Creating Agents Agent creation, .smyth file imports, and model configuration
    Skills Adding capabilities to agents with skills and direct invocation
    Agent Modes Overview of execution modes (Default, Planner, Worker)
    Planner Mode Systematic planning, task tracking, and progress reporting
    Worker Mode Background task delegation to copy agents
    import { Agent, TAgentMode } from '@smythos/sdk';

    // Simple agent
    const agent = new Agent({
    name: 'My Agent',
    behavior: 'You are a helpful assistant.',
    model: 'gpt-4o',
    });

    // Agent with planner mode
    const planner = new Agent({
    name: 'Planner Agent',
    behavior: 'You are a systematic assistant.',
    model: 'gpt-4o',
    mode: TAgentMode.PLANNER,
    });

    // Agent with combined modes
    const powerAgent = new Agent({
    name: 'Power Agent',
    behavior: 'You are a research assistant.',
    model: 'gpt-4o',
    mode: [TAgentMode.PLANNER, TAgentMode.WORKER],
    });

    Start with Creating Agents to learn the fundamentals.