FunctionCallPart
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
public struct FunctionCallPart : PartA predicted function call returned from the model.
-
The name of the function to call.
Declaration
Swift
public var name: String { get } -
The function parameters and values.
Declaration
Swift
public var args: JSONObject { get } -
Declaration
Swift
public var isThought: Bool { get } -
Unique id of the function call.
If present, the returned
FunctionResponsePartshould have a matchingfunctionIdfield.Declaration
Swift
public var functionId: String? { get } -
Constructs a new function call part.
Note
A
FunctionCallPartis typically received from the model, rather than created manually.Declaration
Swift
public init(name: String, args: JSONObject)Parameters
nameThe name of the function to call.
argsThe function parameters and values.
-
Constructs a new function call part.
Note
A
FunctionCallPartis typically received from the model, rather than created manually.Declaration
Swift
public init(name: String, args: JSONObject, id: String? = nil)Parameters
nameThe name of the function to call.
argsThe function parameters and values.
idUnique id of the function call. If present, the returned
FunctionResponsePartshould have a matchingfunctionIdfield.