Skip to main content

Module event_type

Module event_type 

Source
Expand description

Event type definitions for protocol-specific events

Each protocol defines a set of event types that can trigger LLM calls or script execution. Event types have unique IDs and associated actions that can be used to respond to the event.

Structs§

Event
Represents a specific event instance with type and data
EventType
Represents a type of event that a protocol can emit

Functions§

connect_event_data
The event data of a connect event (one declared EventType::raised_on_every_connection): how much the peer has sent, which is nothing, and which answer that calls for.
connect_event_parameters
The parameters connect_event_data fills, for a connect event’s declaration.
format_event_types_for_prompt
Format event types for inclusion in LLM prompts
format_script_template_for_prompt
Generate script template instructions for event types