Documentation Index
Fetch the complete documentation index at: https://mintlify.com/MotiaDev/motia/llms.txt
Use this file to discover all available pages before exploring further.
Overview
TheMotia class is the core class for building AI-powered applications with Motia. It manages steps, streams, and handles the registration of triggers and handlers.
Exports
Main Class
Motia
The main class for managing Motia applications.
A dictionary of registered streams indexed by stream name.
Methods
Registers a step with its configuration and handler.
The step configuration defining name, triggers, and other settings.
The path identifier for the step.
The handler function that processes step executions.
The file path where the step is defined.
Initializes the Motia instance, registering all configured triggers and handlers.
Helper Functions
getInstance
initIII
generateStepId
The name of the step.
A unique step identifier.