Mode
public enum Mode : String
extension FunctionCallingConfig.Mode: Encodable
Defines the execution behavior for function calling by defining the execution mode.
-
The default behavior for function calling. The model calls functions to answer queries at its discretion.
Declaration
Swift
case auto = "AUTO"
-
The model always predicts a provided function call to answer every query.
Declaration
Swift
case any = "ANY"
-
The model will never predict a function call to answer a query. This can also be achieved by not passing any tools to the model.
Declaration
Swift
case none = "NONE"