DAFT - v1.0.0
    Preparing search index...

    Interface Result

    The result of executing a DAFT spec.

    Contains the final data, per-step results, usage statistics, and status.

    const result = await executor.execute(spec);
    if (result.success) {
    console.log('Final data:', result.data);
    console.log('Total tokens:', result.usage?.tokens);
    }
    interface Result {
        success: boolean;
        data?: unknown;
        error?: string;
        steps: StepResult[];
        usage?: Usage;
        message: string;
    }
    Index

    Properties

    success: boolean

    Whether the entire spec execution succeeded. All steps must succeed for this to be true.

    data?: unknown

    The final data after all steps completed. Only present if execution was successful.

    error?: string

    Error message if execution failed. Only present if success is false.

    steps: StepResult[]

    Results for each step in the spec. Ordered by execution order (topological sort).

    usage?: Usage

    Total usage statistics across all steps. Only present if at least one tool reported usage.

    message: string

    Human-readable summary message. Includes iteration count, step count, and failure details.