Class SessionContextChangedEvent

java.lang.Object
com.github.copilot.sdk.events.AbstractSessionEvent
com.github.copilot.sdk.events.SessionContextChangedEvent

public final class SessionContextChangedEvent extends AbstractSessionEvent
Event: session.context_changed

Fired when the working directory context changes between turns. Contains the updated context information including cwd, git root, repository, and branch.

Since:
1.0.0
  • Constructor Details

    • SessionContextChangedEvent

      public SessionContextChangedEvent()
  • Method Details

    • getType

      public String getType()
      Description copied from class: AbstractSessionEvent
      Gets the event type discriminator string.

      This corresponds to the event type in the JSON protocol (e.g., "assistant.message", "session.idle").

      Specified by:
      getType in class AbstractSessionEvent
      Returns:
      the event type string
    • getData

      public SessionContext getData()
    • setData

      public void setData(SessionContext data)