StreamingChatResponseToolCallUpdate Class

  • java.lang.Object
    • com.azure.ai.inference.models.StreamingChatResponseToolCallUpdate

Implements

public final class StreamingChatResponseToolCallUpdate
implements JsonSerializable<StreamingChatResponseToolCallUpdate>

An update to the function tool call information requested by the AI model.

Method Summary

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

Reads an instance of StreamingChatResponseToolCallUpdate from the JsonReader.

FunctionCall getFunction()

Get the function property: Updates to the function call requested by the AI model.

String getId()

Get the id property: The ID of the tool call.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static StreamingChatResponseToolCallUpdate fromJson(JsonReader jsonReader)

Reads an instance of StreamingChatResponseToolCallUpdate from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getFunction

public FunctionCall getFunction()

Get the function property: Updates to the function call requested by the AI model.

Returns:

the function value.

getId

public String getId()

Get the id property: The ID of the tool call.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to