What is an Event?
An event is a Python object that carries information between nodes, bridges, and the user.Basic Example
Built-in Event Types
For a full list of built-in events and their descriptions, see line/events.py.| Category | Events |
|---|---|
UserTranscriptionReceived, UserStartedSpeaking,UserStoppedSpeaking | |
AgentResponse, AgentStartedSpeaking,AgentStoppedSpeaking | |
ToolCall, ToolResult, AgentHandoff, EndCall |
Defining Custom Event Types
Any object can be an event. This is useful for passing arbitrary data between components.Messages
Messages are the wrappers around events. They contain the event, but also additional metadata:| Field | Description |
|---|---|
event | The event object |
source | The node that sent the event |
timestamp | The time the event was sent |