Instance Propertymacpaw.openai 0.3.2OpenAI
toolCallId
Tool call that this message is responding to.
let toolCallId: String
Tool call that this message is responding to.
let toolCallId: String
s6OpenAI9ChatQueryV0C22CompletionMessageParamO04ToolfG0V10toolCallIdSSvp
What are these?67AD4
import OpenAI
struct ToolMessageParam
struct ChatQuery
Creates a model response for the given chat conversation https://platform.openai.com/docs/guides/text-generation
enum ChatCompletionMessageParam
@frozen struct String
A Unicode string value that is a collection of characters.
init(content: String, toolCallId: String)
init(from decoder: any Decoder) throws
let content: String
The contents of the tool message.
let role: Self.Role
The role of the messages author, in this case tool.
enum CodingKeys
typealias Role = ChatQuery.ChatCompletionMessageParam.Role