lloyal-agents API Reference
    Preparing search index...

    Interface AgentTaskSpec

    Task specification for a single agent in useAgentPool

    Each task defines the agent's system prompt, user content, available tools, and parent branch to fork from. The parent branch determines the agent's KV prefix — fork from a shared root to amortize system prompt tokenization across agents.

    interface AgentTaskSpec {
        content: string;
        systemPrompt: string;
        parent?: Branch;
        seed?: number;
        tools?: string;
    }
    Index

    Properties

    content: string

    User message content — the agent's specific sub-question or task

    systemPrompt: string

    System prompt defining the agent's role and behavior

    parent?: Branch

    Parent branch to fork from (required by useAgentPool)

    seed?: number

    PRNG seed for sampler diversity — pass different seeds per agent

    tools?: string

    JSON-serialized tool schemas (from createToolkit)