FirebaseVertexAI Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
FunctionCallPart
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
public struct FunctionCallPart : Part
A 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.
-
Constructs a new function call part.
Note
A FunctionCallPart
is typically received from the model, rather than created
manually.
Parameters
name
|
The name of the function to call.
|
args
|
The function parameters and values.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-21 UTC.
[null,null,["Last updated 2024-10-21 UTC."],[],[],null,["FunctionCallPart \n\n @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)\n public struct FunctionCallPart : ../Protocols/Part.html\n\nA predicted function call returned from the model.\n- `\n ``\n ``\n `\n\n [name](#/s:16FirebaseVertexAI16FunctionCallPartV4nameSSvp)`\n ` \n The name of the function to call. \n\n Declaration \n Swift \n\n public var name: String { get }\n\n- `\n ``\n ``\n `\n\n [args](#/s:16FirebaseVertexAI16FunctionCallPartV4argsSDySSAA9JSONValueOGvp)`\n ` \n The function parameters and values. \n\n Declaration \n Swift \n\n public var args: ../Typealiases.html#/s:16FirebaseVertexAI10JSONObjecta { get }\n\n- `\n ``\n ``\n `\n\n [init(name:args:)](#/s:16FirebaseVertexAI16FunctionCallPartV4name4argsACSS_SDySSAA9JSONValueOGtcfc)`\n ` \n Constructs a new function call part. \n Note\n\n A `FunctionCallPart` is typically received from the model, rather than created\n manually. \n\n Declaration \n Swift \n\n public init(name: String, args: ../Typealiases.html#/s:16FirebaseVertexAI10JSONObjecta)\n\n Parameters"]]