@@ -13,32 +13,32 @@ import (
1313type EventType string
1414
1515const (
16- // PreToolUse is triggered before a tool call executes.
16+ // EventPreToolUse is triggered before a tool call executes.
1717 // Can allow/deny/modify tool calls; can block with feedback.
1818 EventPreToolUse EventType = "pre_tool_use"
1919
20- // PostToolUse is triggered after a tool completes successfully.
20+ // EventPostToolUse is triggered after a tool completes successfully.
2121 // Can provide validation, feedback, or additional processing.
2222 EventPostToolUse EventType = "post_tool_use"
2323
24- // SessionStart is triggered when a session begins or resumes.
24+ // EventSessionStart is triggered when a session begins or resumes.
2525 // Can load context, setup environment, install dependencies.
2626 EventSessionStart EventType = "session_start"
2727
28- // SessionEnd is triggered when a session terminates.
28+ // EventSessionEnd is triggered when a session terminates.
2929 // Can perform cleanup, logging, persist session state.
3030 EventSessionEnd EventType = "session_end"
3131
32- // OnUserInput is triggered when the agent needs input from the user.
32+ // EventOnUserInput is triggered when the agent needs input from the user.
3333 // Can log, notify, or perform actions before user interaction.
3434 EventOnUserInput EventType = "on_user_input"
3535
36- // Stop is triggered when the model finishes its response and is about
36+ // EventStop is triggered when the model finishes its response and is about
3737 // to hand control back to the user. Can perform post-response validation,
3838 // logging, or cleanup.
3939 EventStop EventType = "stop"
4040
41- // Notification is triggered when the agent emits a notification to the user,
41+ // EventNotification is triggered when the agent emits a notification to the user,
4242 // such as errors or warnings. Can send external notifications or log events.
4343 EventNotification EventType = "notification"
4444)
0 commit comments