Skip to content

Type Alias: BrowserRunRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / BrowserRunRequest

BrowserRunRequest = { browserSession: string; operation: "start"; task: string; } | { operation: "inspect"; } | { observation: BrowserStepRequest; operation: "observe"; revision: string; } | { command: string; operation: "authorize"; revision: string; } | { command: string; operation: "discard"; revision: string; } | { command: string; operation: "receipt"; outcome: BrowserRunReceipt; } | { command: string; operation: "resolve"; outcome: BrowserRunResolution; } | { operation: "cancel"; revision: string; }

Defined in: src/types/browser-agent.ts:293

One operation on a browser run, discriminated by operation.

  • start — start the run with its task in a browser session (run_id is the caller’s new run id);
  • inspect — read the run;
  • observe — report the page state at BrowserRun.revision; the answer may carry a proposal;
  • authorize / discard — accept or drop the proposed command; only an authorize answers authorized;
  • receipt — report how the authorized command ran;
  • resolve — reconcile a pending action whose outcome is unknown;
  • cancel — end the run.
const start: BrowserRunRequest = {
operation: 'start',
task: 'Find the pricing page',
browserSession: sessionId,
};