init(from decoder: any Decoder) throws
s6OpenAI12ChatToolCallV4fromACs7Decoder_p_tKcfc
81Y2P
import OpenAI
struct ChatToolCall
protocol Decoder
A type that can decode values from a native format into in-memory representations.
init(id: String, type: ToolType = .function, function: ChatFunctionCall)
let function: ChatFunctionCall
let id: String
let type: ToolType
enum ToolType