Skip to main content

Module event_handler_executor

Module event_handler_executor 

Source
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§

ClientEventHandlerResult
Result from checking a client’s event handlers.
EventHandlerResult
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