@tinyai/agent - v0.0.2
    Preparing search index...

    Interface Result<T>

    A standardized result object for the Agent and tools.

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

    Type Parameters

    • T = any
    Index

    Properties

    Properties

    data: T | undefined

    The data returned from the operation.

    error: string | undefined

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

    success: boolean

    Indicates if the operation was successful.