lloyal-agents API Reference
    Preparing search index...

    Interface SourceContext

    Runtime context passed to Source.bind during pipeline setup

    Carries shared dependencies that are not available at source construction time — the reranker instance, reporter prompt/tool, and pipeline-level configuration. Each source receives the same context so research and grounding tools share a consistent environment.

    interface SourceContext {
        maxTurns: number;
        reporterPrompt: { system: string; user: string };
        reportTool: Tool;
        reranker: Reranker;
        trace: boolean;
    }
    Index

    Properties

    maxTurns: number

    Maximum tool-use turns for research sub-agents before forced termination

    reporterPrompt: { system: string; user: string }

    System/user prompt pair for the report-writing pass inside research tools

    reportTool: Tool

    Shared report tool instance injected into every source's research toolkit

    reranker: Reranker

    Reranker instance used by corpus sources to tokenize chunks and score results

    trace: boolean

    Whether to emit structured trace events during research execution