Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Methods available on a started run.
MargoviaRun
margovia.startRun(...)
complete
await run.complete({ outcome: "reply_generated" });
fail
await run.fail({ error: "Provider timed out" });
trackCost
await run.trackCost({ provider: "openai", model: "gpt-5-mini", inputTokens: 1200, outputTokens: 300 });
step
await run.step("openai_reply", () => openai.chat.completions.create({ model: "gpt-5-mini", messages }) );