ChatCompletionsToolCall Class
- java.
lang. Object - com.
azure. ai. openai. models. ChatCompletionsToolCall
- com.
Implements
public class ChatCompletionsToolCall
implements JsonSerializable<ChatCompletionsToolCall>
An abstract representation of a tool call that must be resolved in a subsequent request to perform the requested chat completion.
Constructor Summary
Constructor | Description |
---|---|
ChatCompletionsToolCall(String id) |
Creates an instance of Chat |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Chat |
fromJson(JsonReader jsonReader)
Reads an instance of Chat |
String |
getId()
Get the id property: The ID of the tool call. |
String |
getType()
Get the type property: The object type. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
ChatCompletionsToolCall
public ChatCompletionsToolCall(String id)
Creates an instance of ChatCompletionsToolCall class.
Parameters:
Method Details
fromJson
public static ChatCompletionsToolCall fromJson(JsonReader jsonReader)
Reads an instance of ChatCompletionsToolCall from the JsonReader.
Parameters:
Returns:
Throws:
getId
public String getId()
Get the id property: The ID of the tool call.
Returns:
getType
public String getType()
Get the type property: The object type.
Returns:
toJson
Applies to
Azure SDK for Java