GitHubCopilotHarness Class

public final class GitHubCopilotHarness
extends AgentHarness

The legacy GitHub Copilot managed harness retained for compatibility. Use `MicrosoftCopilotHarness` for new prompt agents.

Constructor Summary

Constructor Description
GitHubCopilotHarness()

Creates an instance of GitHubCopilotHarness class.

Method Summary

Modifier and Type Method and Description
static GitHubCopilotHarness fromJson(JsonReader jsonReader)

Reads an instance of GitHubCopilotHarness from the JsonReader.

String getType()

Get the type property: The type of managed harness.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from AgentHarness

Methods inherited from java.lang.Object

Constructor Details

GitHubCopilotHarness

public GitHubCopilotHarness()

Creates an instance of GitHubCopilotHarness class.

Method Details

fromJson

public static GitHubCopilotHarness fromJson(JsonReader jsonReader)

Reads an instance of GitHubCopilotHarness from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of GitHubCopilotHarness if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the GitHubCopilotHarness.

getType

public String getType()

Get the type property: The type of managed harness.

Overrides:

GitHubCopilotHarness.getType()

Returns:

the type value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

GitHubCopilotHarness.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to