@rayane_911/agent
v0.1.1
Published
High-level Node and TypeScript agent API for CDP-attached browser automation through khadem-agentic-use.
Readme
@rayane_911/agent
High-level Node and TypeScript API for attaching to an already running browser via CDP and executing a task.
import { KhademAgent } from "@rayane_911/agent";
const agent = new KhademAgent();
const detail = await agent.runTask({
cdpUrl: process.env.CDP_URL!,
prompt: "If needed open example.com, then tell me the title and URL.",
onEvent(event) {
console.log(event.type, event.message, event.detail ?? "");
},
});
console.log(detail.run.status, detail.run.summary?.finalAssistantMessage);