lloyal-agents API Reference
    Preparing search index...

    Interface AgentResult

    Result for a single completed agent

    interface AgentResult {
        agentId: number;
        branch: Branch;
        findings: string;
        parentAgentId: number;
        ppl: number;
        samplingPpl: number;
        tokenCount: number;
        toolCallCount: number;
        trace?: TraceToken[];
    }
    Index

    Properties

    agentId: number

    Stable agent identifier (branch handle at creation time)

    branch: Branch

    The agent's branch — still alive when returned from useAgentPool

    findings: string

    Agent's research findings (from terminal tool or final output), or null

    parentAgentId: number

    Parent branch handle — shared root for top-level agents, parent agentId for sub-agents

    ppl: number

    Model-level perplexity at completion (exp of mean NLL from raw logits)

    samplingPpl: number

    Sampling-level perplexity at completion (from filtered distribution)

    tokenCount: number

    Total tokens generated by this agent

    toolCallCount: number

    Number of tool calls the agent made

    trace?: TraceToken[]

    Per-token trace data (present only when AgentPoolOptions.trace is true)