AI Types
Element types that shape how the AI thinks and acts: the core primitives for building AI workflows.
Covers:
- Context — Background knowledge or grounding data that informs downstream steps. source/format/scope/content. Does not produce output itself.
- Rule — A constraint, policy or business rule the AI must enforce. enforcement is hard/soft/best-effort; rulePriority is critical/high/medium/low.
- Skill — An autonomous capability the AI can invoke when it judges the context appropriate. trigger describes when to apply it; examples shows input/output pairs.
- Tool — A callable function with a concrete implementation in code. language is python/javascript/typescript/shell/sql; returns describes the return value; typed params via dai:properties.
- Prompt — A reusable prompt template: systemPrompt, userPrompt ({{variable}} templating), outputFormat (text/json/markdown/code/list/table), temperature (0-1).