Initializermacpaw.openai 0.3.2OpenAI
init(from:)
init(from decoder: any Decoder) throws
init(from decoder: any Decoder) throws
s6OpenAI16ChatStreamResultV6ChoiceV0F5DeltaV0fG8ToolCallV0fghI8FunctionV4fromAKs7Decoder_p_tKcfc
What are these?1Z7XN
import OpenAI
struct ChoiceDeltaToolCallFunction
struct ChatStreamResult
struct Choice
struct ChoiceDelta
struct ChoiceDeltaToolCall
protocol Decoder
A type that can decode values from a native format into in-memory representations.
init(arguments: String? = nil, name: String? = nil)
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.
let name: String?
The name of the function to call.