Member Junction
    Preparing search index...
    • Build a server-in-process agent invoker bound to the run-scoped provider + the run's context user. user is REQUIRED (pass ctx.User): the agent runs in-process via AgentRunner.RunAgent, so a null contextUser dies in BaseEngine.Load ("For server-side use of all engine classes..."). The contract is params.contextUser ?? user, else a REJECTED promise with a harness-attributed error — deliberately NO fallback to provider.CurrentUser (null on the CLI's SQL provider; the pre-#3251 code relied on it and failed every server-in-process run). Always returns an invoker (never undefined — the run always executes in-process).

      Parameters

      Returns AgentInvoker