ProtectedauthProtectedbrowserProtectedcancelledProtectedjudgeProtectednavigationProtectedtoolOptional metadata provider override. Callers should set
instance.Provider = providerToUse before invoking Run()
in multi-provider contexts. Falls back to the global default provider when unset.
ProtectedexecuteRoute controller prompt through MJ AIPromptRunner.
If a ControllerPromptRef was resolved to an entity, uses AIPromptRunner for full MJ integration (template rendering, model selection, prompt run logging, token tracking). Otherwise falls back to the base implementation (direct LLM call).
ProtectedexecuteRoute judge prompt through MJ AIPromptRunner.
If a JudgePromptRef was resolved to an entity, uses AIPromptRunner. Otherwise falls back to the base implementation.
ProtectedlogProtectedlogOptionalerror: unknownProtectedonHook for run completion. Currently logs completion status. Can be extended to update agent run records or trigger post-run workflows.
ProtectedonPersist step screenshot as AIPromptRunMedia entity.
Links the screenshot to the most recent prompt run (from the controller call in this step). Fire-and-forget — media persistence errors are logged but don't fail the run.
Execute a Computer Use run with MJ infrastructure integration.
Before calling the base Run():
Then delegates to super.Run() which handles the full execution loop.
Inject a pre-created browser adapter for shared session support. When set, the engine skips Launch()/Close() — the caller owns the lifecycle. Used by parallel test execution to share browser contexts across tests.
Request cancellation of a running run. The engine checks this flag at the top of each step. Cancellation is cooperative — the current step will finish.
Whether Stop() has been called — checked at the top of each step