Skip to content

Commit 1aecebe

Browse files
committed
update code execution support
1 parent 9e6e29c commit 1aecebe

File tree

1 file changed

+2
-2
lines changed
  • firebase-ai/src/main/kotlin/com/google/firebase/ai/type

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ internal fun Part.toInternal(): InternalPart {
365365
)
366366
is CodeExecutionResultPart ->
367367
CodeExecutionResultPart.Internal(
368-
CodeExecutionResultPart.Internal.CodeExecutionResult(outcome.toInternal(), output),
368+
CodeExecutionResultPart.Internal.CodeExecutionResult(outcome, output),
369369
isThought,
370370
thoughtSignature
371371
)
@@ -421,7 +421,7 @@ internal fun InternalPart.toPublic(): Part {
421421
)
422422
is CodeExecutionResultPart.Internal ->
423423
CodeExecutionResultPart(
424-
codeExecutionResult.outcome.toPublic(),
424+
codeExecutionResult.outcome,
425425
codeExecutionResult.output,
426426
thought ?: false,
427427
thoughtSignature

0 commit comments

Comments
 (0)