Package com.github.copilot.sdk.events
Class CommandExecuteEvent
java.lang.Object
com.github.copilot.sdk.events.AbstractSessionEvent
com.github.copilot.sdk.events.CommandExecuteEvent
Event: command.execute
Broadcast when the user executes a slash command registered by this client.
Clients that have a matching command handler should respond via
session.commands.handlePendingCommand.
- Since:
- 1.0.0
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.github.copilot.sdk.events.AbstractSessionEvent
getEphemeral, getId, getParentId, getTimestamp, setEphemeral, setId, setParentId, setTimestamp
-
Constructor Details
-
CommandExecuteEvent
public CommandExecuteEvent()
-
-
Method Details
-
getType
Description copied from class:AbstractSessionEventGets the event type discriminator string.This corresponds to the event type in the JSON protocol (e.g., "assistant.message", "session.idle").
- Specified by:
getTypein classAbstractSessionEvent- Returns:
- the event type string
-
getData
-
setData
-