/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ /** * Core classes for the GitHub Copilot SDK for Java. * *
* This package provides the main entry points for interacting with GitHub * Copilot programmatically. The SDK enables Java applications to leverage * Copilot's agentic capabilities, including multi-turn conversations, tool * execution, and AI-powered code generation. * *
{@code
* try (var client = new CopilotClient()) {
* client.start().get();
*
* var session = client.createSession(new SessionConfig().setModel("gpt-4.1")).get();
*
* session.on(evt -> {
* if (evt instanceof AssistantMessageEvent msg) {
* System.out.println(msg.getData().getContent());
* }
* });
*
* session.send(new MessageOptions().setPrompt("Hello, Copilot!")).get();
* }
* }
*
*