Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion firebase-ai/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
model's internal reasoning process.
- [fixed] Fixed an issue causing the accessor methods in `GenerateContentResponse` to throw an
exception when the response contained no candidates.
- [changed] Added better description for requests which fail due to the Gemini API not being configured.
- [changed] Added better description for requests which fail due to the Gemini API not being
configured.

* [changed] Added a `dilation` parameter to `ImagenMaskReference.generateMaskAndPadForOutpainting`
(#7260)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ internal constructor(
}

/**
* Represents the code that is executed by the model.
* Represents the code that was executed by the model.
* @property language The programming language of the code.
* @property code The source code to be executed.
* @property isThought Indicates whether the response is a thought.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ internal constructor(
)
public companion object {

private val codeExecutionInstance = Tool(null, null, JsonObject(emptyMap()))

/**
* Creates a [Tool] instance that provides the model with access to the [functionDeclarations].
*
Expand All @@ -57,7 +59,7 @@ internal constructor(
/** Creates a [Tool] instance that allows the model to use Code Execution. */
@JvmStatic
public fun codeExecution(): Tool {
return Tool(null, null, JsonObject(emptyMap()))
return codeExecutionInstance
}

/**
Expand Down