From 5fa65bc7d3a309b43fc34d1fc6939de1d4e768ea Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 15 Aug 2026 07:53:54 +0000 Subject: [PATCH] Fix broken call reference in Anthropic engine example The code snippet in the 'Running with the Anthropic engine' section used call and text without importing or defining them, making the example non-runnable and misleading to users porting Claude dynamic workflows. Replace the bare top-level await call() with a complete, self-contained workflow({ body: async ({ call, input }) }) that demonstrates the correct per-call model override pattern inside a workflow body. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- skills/rig/references/claude-workflow-conversion.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/skills/rig/references/claude-workflow-conversion.md b/skills/rig/references/claude-workflow-conversion.md index 9541976..b1eb194 100644 --- a/skills/rig/references/claude-workflow-conversion.md +++ b/skills/rig/references/claude-workflow-conversion.md @@ -180,8 +180,14 @@ const classifier = agent({ instructions: "Classify the priority of the given text.", }); -// Per-call model override — equivalent to { model: "claude-opus-4-5" } in a dynamic workflow: -const result = await call(classifier, { text }, { model: "claude-opus-4-5" }); +// Workflow role: classify caller-supplied text with a per-call model override. +export default workflow({ + meta: { name: "triage", description: "Classify text priority" }, + input: s.object({ text: s.string }), + body: async ({ call, input }) => + // Per-call model override — equivalent to { model: "claude-opus-4-5" } in a dynamic workflow: + call(classifier, { text: input.text }, { model: "claude-opus-4-5" }), +}); ``` rig passes the model id string directly to the SDK without normalization, so