Skip to main content

Module preprocess

Module preprocess 

Source
Expand description

Pre-processing Hook for Skills/Workflows Trigger Detection

This module implements the backend-side trigger detection that was previously described in the prompt. By moving this logic to code:

  • Eliminates ambiguity in pattern matching
  • Provides deterministic behavior
  • Reduces prompt token cost (~100 lines removed from prompt)
  • Enables easier testing and debugging

Structs§

PreProcessHook
Pre-processing hook for trigger detection
SkillPattern
Skill trigger pattern
WorkflowTrigger
Workflow trigger configuration

Enums§

ProcessResult
Trigger type detection result
TriggerType
Type of trigger detected

Functions§

global_preprocessor
Get the global preprocessor
preprocess
Process message with global preprocessor