Type Alias: BrowserRunRequest
@kortexya/reasoninglayer / BrowserRunRequest
Type Alias: BrowserRunRequest
Section titled “Type Alias: 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.
Remarks
Section titled “Remarks”start— start the run with its task in a browser session (run_idis the caller’s new run id);inspect— read the run;observe— report the page state at BrowserRun.revision; the answer may carry aproposal;authorize/discard— accept or drop the proposed command; only anauthorizeanswersauthorized;receipt— report how the authorized command ran;resolve— reconcile a pending action whose outcome is unknown;cancel— end the run.
Example
Section titled “Example”const start: BrowserRunRequest = { operation: 'start', task: 'Find the pricing page', browserSession: sessionId,};