DAFT - v1.0.0
    Preparing search index...

    Interface Usage

    Resource usage statistics.

    Used to track and budget LLM tokens, cost, and execution time.

    const usage: Usage = {
    tokens: 1500,
    cost: 0.0023,
    duration: 5432
    };
    interface Usage {
        tokens: number;
        cost: number;
        duration: number;
    }
    Index

    Properties

    Properties

    tokens: number

    Total number of tokens used (input + output).

    cost: number

    Total cost in USD.

    duration: number

    Total duration in milliseconds.