Colang Standard Library (CSL)
Colang Standard Library (CSL)
The Colang Standard Library (CSL) provides an abstraction from the underlying event and action layer and offers a semantic interface to design interaction patterns between the bot and the user. Currently, there are the following library files available under nemoguardrails/colang/v2_x/library/ (GitHub link):
Core Flows
Core user, bot, wait, and notification flows.
Timing Flows
Wait, timer, and silence detection flows.
LLM Flows
LLM continuation and utility flows.
Avatar Flows
Gesture, posture, and avatar-related flows.
Guardrail Flows
Standard guardrail flow definitions.
Attention Flows
User attention tracking and checks.
To use the flows defined in these libraries you have two options:
- [Recommended] Import the standard library files using the import statement: e.g.
import llm - Copy the corresponding
*.cofile directly inside your Colang script directory.
Note that the import <library> statement will import all available flows of the corresponding library.