Spectral Docs
Language Reference
Complete reference for all Spectral keywords, constructs, and syntax.
Type System
Define custom data structures with types and enums
typeenuminterfaceAgents
Define autonomous agents with capabilities and skills
agentcapabilitiesskillsmodelWorkflows
Define state machines and transitions
workflowstatetransitioninitialfinalVisitors
Define hierarchical capability trees and user journeys
visitorcannested capabilitiesRoles & Permissions
Define roles with specific permissions
rolepermissionCapability Verbs
Modal verbs for agent capabilities
canmustshouldmaywillshallcannotControl Flow
Conditional and logical operators
ifwhenwhileforandornotAbout Spectral Keywords
Spectral is a declarative language designed for defining multi-agent systems, workflows, and capability hierarchies. Each keyword serves a specific purpose in describing system behavior and structure.
Click on any section above to explore the keywords in detail with examples and usage patterns.