@rayane_911/client
v0.1.1
Published
HTTP client for starting, inspecting, stopping, and streaming khadem-agentic-use runner jobs.
Readme
@rayane_911/client
Node and TypeScript HTTP client for the khadem-agentic-use runner service.
import { KhademRunnerClient } from "@rayane_911/client";
const client = new KhademRunnerClient({
baseUrl: process.env.KHADEM_RUNNER_URL!,
});
const started = await client.startRun({
cdpUrl: process.env.CDP_URL!,
prompt: "If needed open example.com, then tell me the title and URL.",
});
for await (const event of client.streamEvents(started.eventStreamUrl)) {
console.log(event.type, event.message, event.detail ?? "");
}
const detail = await client.getRun(started.runId);
console.log(detail.run.status, detail.run.summary?.finalAssistantMessage);