Part
public protocol Part : PartsRepresentable, Decodable, Encodable, Equatable, SendableA discrete piece of data in a media format interpretable by an AI model.
Within a single value of Part, different data types may not mix.
-
Indicates whether this
Partis a summary of the model’s internal thinking process.When
includeThoughtsis set totrueinThinkingConfig, the model may return one or more “thought” parts that provide insight into how it reasoned through the prompt to arrive at the final answer. These parts will haveisThoughtset totrue.Declaration
Swift
var isThought: Bool { get } -
Extension methodpartsValue
Undocumented
Declaration
Swift
var partsValue: [any Part] { get }