AgentHarness Class

  • java.lang.Object
    • com.azure.ai.agents.models.AgentHarness

Implements

public class AgentHarness
implements JsonSerializable<AgentHarness>

A managed runtime and agent loop used to execute a prompt agent.

Constructor Summary

Modifier Constructor Description
protected AgentHarness()

Creates an instance of AgentHarness class.

Method Summary

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

Reads an instance of AgentHarness from the JsonReader.

String getType()

Get the type property: The type of managed harness.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

AgentHarness

protected AgentHarness()

Creates an instance of AgentHarness class.

Method Details

fromJson

public static AgentHarness fromJson(JsonReader jsonReader)

Reads an instance of AgentHarness from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AgentHarness 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 AgentHarness.

getType

public String getType()

Get the type property: The type of managed harness.

Returns:

the type value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to