Package com.github.copilot.generated


package com.github.copilot.generated
Auto-generated session event types for the GitHub Copilot SDK.

This package contains Java classes generated from the Copilot CLI's session-events.schema.json. Each event type corresponds to a notification emitted during a CopilotSession interaction.

Key Classes

  • SessionEvent - Abstract sealed base class for all session events. Deserialized polymorphically via the type discriminator.
  • UnknownSessionEvent - Fallback for event types not yet known to this SDK version, preserving forward compatibility.

Example Usage

session.on(AssistantMessageEvent.class, msg -> {
    System.out.println(msg.getData().content());
});
See Also: