@cubie-ai/tiny-ai - v0.0.14
    Preparing search index...

    Interface Result<T>

    A standardized result object for the TinyAgent and tools.

    interface Result<T = any> {
        data: undefined | T;
        error: undefined | string;
        success: boolean;
    }

    Type Parameters

    • T = any
    Index

    Properties

    Properties

    data: undefined | T

    The data returned from the operation.

    error: undefined | string

    The error message if the operation failed. Success will be false whenever error is set

    success: boolean

    Indicates if the operation was successful.