Declarative Pipeline

Define pipelines as a series of declarative steps: tools, LLM calls, and nested pipelines.

Interactive Demo

Define steps as JSON and run the pipeline

Code Example

declarative-demo.ts
import {
  DeclarativePipeline, Brain, ToolRegistry, Orchestrator
} from "@shivamsharma11/agent-sdk";

const pipeline = new DeclarativePipeline(
  {
    name: "my-pipeline",
    steps: [
      {
        type: "tool",
        name: "greet",
        input: { name: "World" },
      },
      {
        type: "llm",
        model: "gpt-4o-mini",
        prompt: "Say hello",
      },
    ],
  },
  {
    brain,
    tools: toolRegistry,
    orchestrator,
  }
);

const result = await pipeline.run({ message: "hello" });