Documentation Index
Fetch the complete documentation index at: https://smithers.sh/llms.txt
Use this file to discover all available pages before exploring further.
// Props
import { ContentPipeline } from "smithers-orchestrator";
type ContentPipelineProps = {
id?: string;
stages: ContentPipelineStage[];
skipIf?: boolean;
children: string | ReactNode; // initial prompt for stage[0]
};
type ContentPipelineStage = {
id: string;
agent: AgentLike;
output: OutputTarget;
label?: string;
};
export default smithers(() => (
<Workflow name="blog-pipeline">
<ContentPipeline
stages={[
{ id: "outline", agent: outliner, output: outputs.outline, label: "Create outline" },
{ id: "draft", agent: writer, output: outputs.draft, label: "Write draft" },
{ id: "edit", agent: editor, output: outputs.edited, label: "Edit and polish" },
]}
>
Write a blog post about building AI workflows with React components.
</ContentPipeline>
</Workflow>
));
Notes
- Each stage after the first depends on the previous via
needs.
- Stage
id values must be unique within the workflow.