Instance Propertymacpaw.openai 0.3.3OpenAI
name
The name of the function to call.
let name: String
The name of the function to call.
let name: String
import OpenAI
struct ChatFunctionCall
@frozen struct String
A Unicode string value that is a collection of characters.
init(from decoder: any Decoder) throws
init(name: String, arguments: String)
let arguments: String
The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.