{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/chatCompletionTool", "title": "chatCompletionTool", "type": "object", "properties": { "type": { "$ref": "#/components/schemas/chatCompletionToolType" }, "function": { "type": "object", "properties": { "description": { "type": "string", "description": "A description of what the function does, used by the model to choose when and how to call the function." }, "name": { "type": "string", "description": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64." }, "parameters": { "$ref": "#/components/schemas/chatCompletionFunctionParameters" } }, "required": [ "name", "parameters" ] } }, "required": [ "type", "function" ] }