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
- Event
Type - 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_datafills, 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