celtrigger

package
v0.56.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package celtrigger compiles and evaluates agent trigger expressions: CEL booleans over a NormalizedEvent bound to the root variable event (ADR 0061). It has no fullsend dependencies, so both internal/config (an agents[].trigger entry) and internal/harness (a harness trigger: field) validate triggers the same way.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Evaluate

func Evaluate(expr string, event map[string]any) (bool, error)

Evaluate evaluates a trigger expression against event data (map form). An empty expression never matches.

func NewEnv

func NewEnv() (*cel.Env, error)

NewEnv creates a CEL environment with root variable event (dyn type).

func Validate

func Validate(expr string) error

Validate compiles a trigger expression and checks that it is a boolean. An empty expression is valid (no trigger).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL