@eko-ai/eko-extension
Version:
Empowering language to transform human words into action.
30 lines • 1.08 kB
TypeScript
import { AgentContext, BaseBrowserLabelsAgent } from "@eko-ai/eko";
export default class BrowserAgent extends BaseBrowserLabelsAgent {
protected screenshot(agentContext: AgentContext): Promise<{
imageBase64: string;
imageType: "image/jpeg" | "image/png";
}>;
protected navigate_to(agentContext: AgentContext, url: string): Promise<{
url: string;
title?: string;
tabId?: number;
}>;
protected get_all_tabs(agentContext: AgentContext): Promise<Array<{
tabId: number;
url: string;
title: string;
}>>;
protected switch_tab(agentContext: AgentContext, tabId: number): Promise<{
tabId: number;
url: string;
title: string;
}>;
protected go_back(agentContext: AgentContext): Promise<any>;
protected execute_script(agentContext: AgentContext, func: (...args: any[]) => void, args: any[]): Promise<any>;
private getTabId;
private getWindowId;
private waitForTabComplete;
private sleep;
}
export { BrowserAgent };
//# sourceMappingURL=browser.d.ts.map