Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.32 KB

File metadata and controls

31 lines (22 loc) · 1.32 KB

ChatCompletionMessageToolCall

Properties

Name Type Description Notes
id object The ID of the tool call.
function ChatCompletionMessageToolCallFunction The function that the model called.
type object The type of the tool. Currently, only `function` is supported.

Example

from wallet.models.chat_completion_message_tool_call import ChatCompletionMessageToolCall

# TODO update the JSON string below
json = "{}"
# create an instance of ChatCompletionMessageToolCall from a JSON string
chat_completion_message_tool_call_instance = ChatCompletionMessageToolCall.from_json(json)
# print the JSON string representation of the object
print ChatCompletionMessageToolCall.to_json()

# convert the object into a dict
chat_completion_message_tool_call_dict = chat_completion_message_tool_call_instance.to_dict()
# create an instance of ChatCompletionMessageToolCall from a dict
chat_completion_message_tool_call_form_dict = chat_completion_message_tool_call.from_dict(chat_completion_message_tool_call_dict)

[Back to Model list] [Back to API list] [Back to README]