Expand description
Event handler executor - executes configured event handlers (script/static/llm)
This module checks if an event has a configured handler and executes it accordingly. Supports three handler types:
- Script: Execute inline script code
- Static: Execute predefined actions
- LLM: Delegate to LLM (fallback/default)
Enums§
- Client
Event Handler Result - Result from checking a client’s event handlers.
- Event
Handler Result - Result from checking event handlers
Constants§
- HANDLER_
INSTRUCTION_ HEADER - Heading under which a
{"type":"llm","instruction":"…"}handler’s instruction is added to the event trigger message.
Functions§
- try_
execute_ client_ event_ handler - Check and execute the configured event handler for a client event.
- try_
execute_ client_ event_ handler_ with_ privacy - The shared client dispatcher with a request-local credential logging policy.
- try_
execute_ event_ handler - Check and execute event handler for the given event