Skip to content

Commit 5933a0a

Browse files
committed
fix(prompt): fix ktlint lambda argument formatting in GoogleLLMClient
1 parent 6f068db commit 5933a0a

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

  • prompt/prompt-executor/prompt-executor-clients/prompt-executor-google-client/src/commonMain/kotlin/ai/koog/prompt/executor/clients/google

prompt/prompt-executor/prompt-executor-clients/prompt-executor-google-client/src/commonMain/kotlin/ai/koog/prompt/executor/clients/google/GoogleLLMClient.kt

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -515,12 +515,15 @@ public open class GoogleLLMClient @JvmOverloads constructor(
515515
is GoogleGroundingConfig.GoogleSearchRetrieval -> GoogleTool(
516516
googleSearchRetrieval = buildJsonObject {
517517
if (config.dynamicThreshold != null) {
518-
put("dynamicRetrievalConfig", buildJsonObject {
519-
// MODE_DYNAMIC is required for the threshold to take effect;
520-
// without it the API uses MODE_UNSPECIFIED and ignores the threshold.
521-
put("mode", "MODE_DYNAMIC")
522-
put("dynamicThreshold", config.dynamicThreshold)
523-
})
518+
put(
519+
"dynamicRetrievalConfig",
520+
buildJsonObject {
521+
// MODE_DYNAMIC is required for the threshold to take effect;
522+
// without it the API uses MODE_UNSPECIFIED and ignores the threshold.
523+
put("mode", "MODE_DYNAMIC")
524+
put("dynamicThreshold", config.dynamicThreshold)
525+
}
526+
)
524527
}
525528
}
526529
)

0 commit comments

Comments
 (0)