MemoryCommandToolCallOutput Class

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

Implements

public final class MemoryCommandToolCallOutput
implements JsonSerializable<MemoryCommandToolCallOutput>

The output of a memory command tool call.

Constructor Summary

Constructor Description
MemoryCommandToolCallOutput(String callId, ToolCallStatus status)

Creates an instance of MemoryCommandToolCallOutput class.

Method Summary

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

Reads an instance of MemoryCommandToolCallOutput from the JsonReader.

String getCallId()

Get the callId property: The unique ID of the tool call generated by the model.

ToolCallStatus getStatus()

Get the status property: The status of the tool call.

String getType()

Get the type property: The type property.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

MemoryCommandToolCallOutput

public MemoryCommandToolCallOutput(String callId, ToolCallStatus status)

Creates an instance of MemoryCommandToolCallOutput class.

Parameters:

callId - the callId value to set.
status - the status value to set.

Method Details

fromJson

public static MemoryCommandToolCallOutput fromJson(JsonReader jsonReader)

Reads an instance of MemoryCommandToolCallOutput from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getCallId

public String getCallId()

Get the callId property: The unique ID of the tool call generated by the model.

Returns:

the callId value.

getStatus

public ToolCallStatus getStatus()

Get the status property: The status of the tool call.

Returns:

the status value.

getType

public String getType()

Get the type property: The type property.

Returns:

the type value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to