import { CodexAgent, createSmithers } from "smithers-orchestrator";
import { z } from "zod";
const { Workflow, Task, smithers, outputs } = createSmithers({
research: z.object({ findings: z.string() }),
});
const researcher = new CodexAgent({
model: "gpt-5.6-luna",
config: { model_reasoning_effort: "medium" },
instructions: "You are a research assistant.",
});
export default smithers((ctx) => (
<Workflow name="research-pipeline" cache>
<Task id="research" output={outputs.research} agent={researcher}>
{`Research: ${ctx.input.topic}`}
</Task>
</Workflow>
));