We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
functionDeclarations
1 parent fb96a99 commit e678da6Copy full SHA for e678da6
firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/type/Tool.kt
@@ -24,6 +24,12 @@ package com.google.firebase.vertexai.type
24
*/
25
class Tool internal constructor(internal val functionDeclarations: List<FunctionDeclaration>?) {
26
companion object {
27
+
28
+ /**
29
+ * Creates a [Tool] instance that provides the model with access to the [functionDeclarations].
30
+ *
31
+ * @param functionDeclarations The list of functions that this tool allows the model access to.
32
+ */
33
@JvmStatic
34
fun functionDeclarations(functionDeclarations: List<FunctionDeclaration>): Tool {
35
return Tool(functionDeclarations)
0 commit comments