Package com.github.copilot.sdk.events
Class SessionShutdownEvent
java.lang.Object
com.github.copilot.sdk.events.AbstractSessionEvent
com.github.copilot.sdk.events.SessionShutdownEvent
Event: session.shutdown
This event is emitted when a session is shutting down, either routinely or due to an error. It contains metrics about the session's usage.
- Since:
- 1.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCode changes made during the session.static classData for the session shutdown event.static enumType of session shutdown. -
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
-
SessionShutdownEvent
public SessionShutdownEvent()
-
-
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
-