Back to Firebase Js Sdk

CodeExecutionResult interface

docs-devsite/ai.codeexecutionresult.md

12.12.11.1 KB
Original Source

Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference

{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}

CodeExecutionResult interface

The results of code execution run by the model.

<b>Signature:</b>

typescript
export interface CodeExecutionResult 

Properties

PropertyTypeDescription
outcomeOutcomeThe result of the code execution.
outputstringThe output from the code execution, or an error message if it failed.

CodeExecutionResult.outcome

The result of the code execution.

<b>Signature:</b>

typescript
outcome?: Outcome;

CodeExecutionResult.output

The output from the code execution, or an error message if it failed.

<b>Signature:</b>

typescript
output?: string;