lloyal-agents API Reference
    Preparing search index...

    Interface ToolContext

    Execution context passed to Tool.execute

    Provides callbacks for reporting progress during long-running tool operations (e.g. reranker scoring chunks).

    interface ToolContext {
        agentId: number;
        onProgress?: (p: { filled: number; total: number }) => void;
    }
    Index

    Properties

    Properties

    agentId: number

    Stable agent identifier — branch handle at creation time

    onProgress?: (p: { filled: number; total: number }) => void

    Progress callback for long-running operations