Skip to content

Commit 9db12b2

Browse files
committed
update
1 parent 29941e2 commit 9db12b2

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

firebase-ai/api.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ package com.google.firebase.ai.type {
297297
}
298298

299299
public final class ExecutableCodePart implements com.google.firebase.ai.type.Part {
300-
ctor public ExecutableCodePart(String language, String code);
300+
ctor @Deprecated public ExecutableCodePart(String language, String code);
301301
method public String getCode();
302302
method public String getLanguage();
303303
method public boolean isThought();

firebase-ai/src/main/kotlin/com/google/firebase/ai/type/Part.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ internal constructor(
9898
internal val thoughtSignature: String?
9999
) : Part {
100100

101+
@Deprecated("Part of the model response. Do not instantiate directly.")
101102
public constructor(language: String, code: String) : this(language, code, false, null)
102103

103104
@Serializable

firebase-ai/src/main/kotlin/com/google/firebase/ai/type/Tool.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ internal constructor(
4444
)
4545
public companion object {
4646

47-
private val codeExecutionInstance = Tool(null, null, JsonObject(emptyMap()))
47+
private val codeExecutionInstance by lazy { Tool(null, null, JsonObject(emptyMap())) }
4848

4949
/**
5050
* Creates a [Tool] instance that provides the model with access to the [functionDeclarations].

0 commit comments

Comments
 (0)