Praman — AI-First SAP UI5 Test Automation Platform - v1.0.1
    Preparing search index...

    Interface IntentResult<T>

    Standard result envelope for all SAP intent domain operations.

    Return a consistent result shape from every intent function.

    Carry execution metadata (duration, steps, SAP module) alongside business data.

    import type { IntentResult } from '#intents/types.js';

    const result: IntentResult<string> = {
    status: 'success',
    data: 'PO-1000012345',
    metadata: {
    duration: 1234,
    retryable: false,
    suggestions: [],
    intentName: 'createPurchaseOrder',
    sapModule: 'MM',
    stepsExecuted: ['navigate', 'fillVendor', 'fillMaterial', 'save'],
    },
    };
    interface IntentResult<T = void> {
        data?: T;
        error?: { code: string; message: string };
        metadata: {
            duration: number;
            intentName: string;
            model?: string;
            retryable: boolean;
            sapModule: string;
            stepsExecuted: string[];
            suggestions: string[];
            tokens?: number;
        };
        status: "success"
        | "error"
        | "partial";
    }

    Type Parameters

    • T = void

      Payload type for the data field (defaults to void).

    Index

    Properties

    data?: T
    error?: { code: string; message: string }
    metadata: {
        duration: number;
        intentName: string;
        model?: string;
        retryable: boolean;
        sapModule: string;
        stepsExecuted: string[];
        suggestions: string[];
        tokens?: number;
    }
    status: "success" | "error" | "partial"