ModelOutput
A struct that represents the output provided by a model when calling Model.run()
.
Declaration
struct ModelOutput
Overview
This struct conforms to the Codable
protocol, which allows it to be encoded and decoded from external representations such as JSON or property lists.
Topics
Initializers
Creates a new ModelOutput
instance by decoding from the given decoder.
Instance Properties
The main output string returned by the model.
The time it took to run the model, measured in seconds.
The number of credits used for running the model.