TransEdge

Capability Overview

Learn how TransEdge modules register safe AI-readable context, executable actions, query resources, and preview components.

TransEdge AI capabilities are the extension point for module-owned AI behavior.

Modules register capabilities so TransEdge AI can answer questions and preview actions without granting models arbitrary access to application data.

Think of capabilities as a contract between TransEdge AI and a module. The module decides what can be read, what can be previewed, what can be applied, and what permissions are required.

Capability types

TypeResponsibility
Context capabilityReturn safe context for a prompt
Action capabilityPreview and apply a confirmed action
Queryable resourceDeclare safe data fields, filters, aggregates, and spatial access
Preview componentRender a module-specific action card in the AI prompt

Example capability map

Fleet-Ops can expose operational questions such as driver online counts, order status breakdowns, route previews, and create-order drafts. Mutating actions should use preview-confirm-apply.

Ledger could expose wallet balance context, payment gateway status, journal summaries, and draft finance record previews. Payment capture or void actions should require explicit confirmation.

Storefront could expose order volume, store availability, product catalog context, and promotion draft previews. Catalog or order mutations should stay behind action previews.

Registration pattern

Register capabilities from the module service provider after TransEdge AI is available:

$this->callAfterResolving(\Fleetbase\Ai\Support\AiCapabilityRegistry::class, function ($registry) {
    $registry->register(new MyModuleContextCapability());
});

Frontend preview components are registered through the console registry service:

registryService.registerRenderableComponent(
    'ai:action-preview:my-module.create_resource',
    new ExtensionComponent('@fleetbase/my-module-engine', 'ai/create-resource-preview')
);

Design rule

Capabilities should return the smallest useful context for the prompt, not raw model records.

Do not register broad "database access" capabilities. TransEdge AI should receive specific, bounded context or a validated action preview, not unrestricted records.

Capability Overview | TransEdge