Skip to content

Commit 16b86f4

Browse files
committed
Use schema instead of parameters
This is a remnant of previous renaming work.
1 parent 9506f0e commit 16b86f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/internal/util/conversions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ internal fun Tool.toInternal() =
153153
com.google.firebase.vertexai.common.client.Tool(functionDeclarations.map { it.toInternal() })
154154

155155
internal fun FunctionDeclaration.toInternal() =
156-
com.google.firebase.vertexai.common.client.FunctionDeclaration(name, "", parameters.toInternal())
156+
com.google.firebase.vertexai.common.client.FunctionDeclaration(name, "", schema.toInternal())
157157

158158
internal fun com.google.firebase.vertexai.type.Schema.toInternal(): Schema =
159159
Schema(

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/type/FunctionDeclaration.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ class FunctionDeclaration(
4242
val parameters: Map<String, Schema>,
4343
val optionalParameters: List<String> = emptyList(),
4444
) {
45-
private val schema: Schema =
45+
internal val schema: Schema =
4646
Schema.obj(properties = parameters, optionalProperties = optionalParameters, nullable = false)
4747
}

0 commit comments

Comments
 (0)