DAFT - v1.0.0
    Preparing search index...

    Interface Spec

    A DAFT spec defines a declarative workflow for data transformation.

    const spec: Spec = {
    initial: { text: "Hello World" },
    steps: [
    {
    name: 'analyze',
    until: 'analyzeDone',
    maxIter: 5,
    tools: ['llm']
    }
    ],
    budget: { maxTime: 60000, maxTokens: 1000 }
    };
    interface Spec {
        initial: unknown;
        steps: Step[];
        budget?: Budget;
    }
    Index

    Properties

    Properties

    initial: unknown

    Initial data to start the workflow with. Can be any JSON-serializable value or object.

    steps: Step[]

    Ordered list of steps to execute. Steps are executed in topological order, respecting dependencies.

    budget?: Budget

    Optional budget constraints for the entire execution. If any budget limit is exceeded, execution will fail.