nexus-agents - v2.80.0
    Preparing search index...

    Interface RunAgentArgs

    Arguments to runAgent.

    onToolCall is the harness's tool-router; the adapter awaits its Promise<ToolResult> so synchronous and async harness execution both work. Per-tool timeouts are the harness's responsibility (the adapter doesn't impose one — see #2529 design notes).

    onTurn (optional) fires once after each turn completes, giving operators incremental progress visibility.

    signal (optional) propagates external cancellation as stopReason: 'cancelled'.

    interface RunAgentArgs {
        systemPrompt: string;
        userPrompt: string;
        tools: readonly ToolDefinition[];
        turnBudget?: number;
        onToolCall: (call: AgenticToolCall) => Promise<AgenticToolResult>;
        onTurn?: (turn: AgentTurn) => void;
        signal?: AbortSignal;
        temperature?: number;
        maxTokens?: number;
    }
    Index

    Properties

    systemPrompt: string
    userPrompt: string
    tools: readonly ToolDefinition[]
    turnBudget?: number

    Maximum agent turns. When omitted, the adapter uses the resolved model's profile.maxRecommendedTurnBudget (claude-opus = 20, o-reasoning = 25, claude-haiku / gemini-flash = 8, defaults to 10).

    onToolCall: (call: AgenticToolCall) => Promise<AgenticToolResult>
    onTurn?: (turn: AgentTurn) => void
    signal?: AbortSignal
    temperature?: number

    Sampling temperature passed through to IModelAdapter.complete.

    maxTokens?: number

    Per-turn maxTokens passed through to IModelAdapter.complete.