ChatCompletionsToolCall Class
- java.
lang. Object - com.
azure. ai. inference. models. ChatCompletionsToolCall
- com.
Implements
public class ChatCompletionsToolCall
implements JsonSerializable<ChatCompletionsToolCall>
A function tool call requested by the AI model.
Constructor Summary
| Constructor | Description |
|---|---|
| ChatCompletionsToolCall(String id, FunctionCall function) |
Creates an instance of Chat |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Chat |
fromJson(JsonReader jsonReader)
Reads an instance of Chat |
|
Function |
getFunction()
Get the function property: The details of the function call requested by the AI model. |
| String |
getId()
Get the id property: The ID of the tool call. |
| String |
getType()
Get the type property: The type of tool call. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
ChatCompletionsToolCall
public ChatCompletionsToolCall(String id, FunctionCall function)
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:
getFunction
public FunctionCall getFunction()
Get the function property: The details of the function call requested by the AI model.
Returns:
getId
public String getId()
Get the id property: The ID of the tool call.
Returns:
getType
public String getType()
Get the type property: The type of tool call. Currently, only `function` is supported.
Returns: