20 lines · 681 B · TypeScript
RawDownload
import { randomUUID } from "node:crypto";import { createClient } from "@rivet-dev/agentos/client";import type { registry } from "./server"; const client = createClient<typeof registry>({ endpoint: "http://localhost:6420" }); // Creating one actor starts one durable workflow with immutable input.const handle = await client.bugFixer.create(randomUUID(), {	input: {		repo: "https://github.com/example/repo.git",		issue: "Fix the login redirect bug",	},}); let state = await handle.getState();while (state.status !== "complete") {	await new Promise((resolve) => setTimeout(resolve, 1_000));	state = await handle.getState();}console.log("Exit code:", state.exitCode);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t