Tela SDK for JavaScript
    Preparing search index...
    type CompletionRunResult<TOutput> = {
        compatibilityDate: string;
        createdAt: string;
        creditsUsed: number;
        deletedAt: any;
        id: string;
        inputContent: {
            files: any[];
            messages: any[];
            variables: Record<string, unknown>;
        };
        metadata: {
            promptVersion: {
                modelConfigurations: {
                    model: string;
                    structuredOutput: {
                        enabled: boolean;
                        schema: {
                            description: string;
                            properties: Record<string, unknown>;
                            required: string[];
                            title: string;
                            type: string;
                        };
                    };
                    temperature: number;
                    type: string;
                };
                variablesDefinitions: {
                    name: string;
                    processingOptions: { allowMultimodal: boolean };
                    required: boolean;
                    type: string;
                }[];
            };
        };
        outputContent: {
            content: TOutput;
            functionCall: any;
            role: string;
            toolCalls: any[];
        };
        promptApplicationId: any;
        promptId: string;
        promptVersionId: string;
        rawInput: {
            async: boolean;
            canvasId: string;
            tags: string[];
            variables: Record<string, unknown>;
        };
        rawOutput: {
            choices: {
                message: {
                    content: TOutput;
                    functionCall: any;
                    role: string;
                    toolCalls: any[];
                };
            }[];
            created: number;
            id: string;
            object: string;
            usage: {
                completionTokens: number;
                cost: { completionCost: number; promptCost: number; totalCost: number };
                promptTokens: number;
                totalTokens: number;
            };
        };
        status: string;
        tags: string[];
        updatedAt: string;
        workspaceId: string;
    }

    Type Parameters

    • TOutput
    Index

    Properties

    compatibilityDate: string
    createdAt: string
    creditsUsed: number
    deletedAt: any
    id: string
    inputContent: {
        files: any[];
        messages: any[];
        variables: Record<string, unknown>;
    }
    metadata: {
        promptVersion: {
            modelConfigurations: {
                model: string;
                structuredOutput: {
                    enabled: boolean;
                    schema: {
                        description: string;
                        properties: Record<string, unknown>;
                        required: string[];
                        title: string;
                        type: string;
                    };
                };
                temperature: number;
                type: string;
            };
            variablesDefinitions: {
                name: string;
                processingOptions: { allowMultimodal: boolean };
                required: boolean;
                type: string;
            }[];
        };
    }
    outputContent: {
        content: TOutput;
        functionCall: any;
        role: string;
        toolCalls: any[];
    }
    promptApplicationId: any
    promptId: string
    promptVersionId: string
    rawInput: {
        async: boolean;
        canvasId: string;
        tags: string[];
        variables: Record<string, unknown>;
    }
    rawOutput: {
        choices: {
            message: {
                content: TOutput;
                functionCall: any;
                role: string;
                toolCalls: any[];
            };
        }[];
        created: number;
        id: string;
        object: string;
        usage: {
            completionTokens: number;
            cost: { completionCost: number; promptCost: number; totalCost: number };
            promptTokens: number;
            totalTokens: number;
        };
    }
    status: string
    tags: string[]
    updatedAt: string
    workspaceId: string