Apps & Workflows¶
Apps are the top-level containers for workflows in the Virtualitics AI Platform.
What is an App?¶
An App represents a complete workflow that can:
- Contain multiple steps
- Process data through a pipeline
- Provide interactive UI
- Be shared with other users
- Execute on a schedule
Creating an App¶
from virtualitics_sdk import App
app = App(
name="My Application",
description="A workflow for data analysis",
is_shareable=True
)
App Structure¶
Apps consist of:
- Metadata: Name, description, image
- Steps: Ordered sequence of workflow steps
- Configuration: Settings and preferences
- Optional Features: LLM integration, scheduling, etc.
Adding Steps¶
Use the chain() method to add steps:
App Lifecycle¶
- Discovery: App is discovered and registered on platform
- Instantiation: User creates an instance of the app
- Execution: Steps run in sequence
- Completion: Results are saved and shared
Best Practices¶
- Give apps descriptive, user-friendly names
- Provide clear descriptions
- Organize steps logically
- Handle errors gracefully
- Test thoroughly before deploying