@adonis-agora/agent
Version:
Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.
18 lines • 1.01 kB
TypeScript
import type { CompanyClient } from './company.js';
/** Where the Personal Agent's browser joins a Session (section 6), or an error without one. */
export declare function browserSessionEndpoint(company: CompanyClient): string;
/**
* Step 2: reads the one-time code from the HTML of the page the agent's OWN browser loaded in step
* 1 (section 6). Pass it nothing else: a code from anywhere else may come from someone else's
* browser, which would then join the User's Session (10.6). Keep the code out of model context.
*/
export declare function browserJoinCode(html: string): string;
/**
* Step 2: authorizes the code with the Session header and, if signed in, the access token, which
* never reaches the browser. The agent's browser then submits the form (step 3); after a failure,
* start again at step 1.
*/
export declare function authorizeBrowserJoin(company: CompanyClient, code: string, opts?: {
signedOut?: boolean | undefined;
}): Promise<void>;
//# sourceMappingURL=browser.d.ts.map