intellibrix v1.0.0
    Preparing search index...

    Type Alias DelegateToolOptions

    type DelegateToolOptions = {
        agents: Record<string, { agent: Delegate; description: string }>;
        maxSteps?: number;
        onResult?: (name: string, result: AskResult, ctx: ToolContext) => void;
        trusted?: boolean;
    }
    Index
    agents: Record<string, { agent: Delegate; description: string }>

    The sub-agents the model may hand work to, by name.

    maxSteps?: number

    Step budget for each delegated run. Defaults to the sub-agent's own.

    onResult?: (name: string, result: AskResult, ctx: ToolContext) => void

    Called when a delegated run finishes, e.g. to log or meter it.

    trusted?: boolean

    Tag the sub-agent's answer trusted. Leave this off unless the sub-agent never reads outside content: a sub-agent that read a hostile file can pass its instructions on in its answer.

    false