Interface ExecutionResult<T>

Execution result with comprehensive tracking and metadata. Returned by all major operations (Shuriken, Kata, Shinobi) for consistent monitoring.

interface ExecutionResult<T> {
    result: T;
    tokenUsage?: TokenUsage;
    billingInfo?: BillingInfo;
    executionTime: number;
}

Type Parameters

  • T = any

    The type of the result data

Properties

result: T

The actual result/output of the operation

tokenUsage?: TokenUsage

Token usage information (if applicable)

billingInfo?: BillingInfo

Billing information (if applicable)

executionTime: number

Execution time in milliseconds