Module: Crimson::Agent::Events
- Defined in:
- lib/crimson/agent/events.rb
Overview
Event type constants for the agent pub/sub system.
Constant Summary collapse
- AGENT_START =
Emitted when the agent begins processing a user request.
:agent_start- TURN_START =
Emitted at the start of each agent turn.
:turn_start- MESSAGE_START =
Emitted when a new message is created.
:message_start- MESSAGE_UPDATE =
Emitted with streaming text deltas during message generation.
:message_update- MESSAGE_END =
Emitted when a message is fully received.
:message_end- TOOL_EXECUTION_START =
Emitted when a tool begins executing.
:tool_execution_start- TOOL_EXECUTION_UPDATE =
Emitted with partial results during tool execution (e.g. command output).
:tool_execution_update- TOOL_EXECUTION_END =
Emitted when a tool finishes execution.
:tool_execution_end- TURN_END =
Emitted at the end of each agent turn.
:turn_end- AGENT_END =
Emitted when the agent finishes processing.
:agent_end- ALL =
All known event types.
[ AGENT_START, TURN_START, MESSAGE_START, MESSAGE_UPDATE, MESSAGE_END, TOOL_EXECUTION_START, TOOL_EXECUTION_UPDATE, TOOL_EXECUTION_END, TURN_END, AGENT_END ].freeze