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. Signature: ```typescript export interface CodeExecutionResult ``` ## Properties | Property | Type | Description | | --- | --- | --- | | [outcome](./ai.codeexecutionresult.md#codeexecutionresultoutcome) | [Outcome](./ai.md#outcome) | The result of the code execution. | | [output](./ai.codeexecutionresult.md#codeexecutionresultoutput) | string | The output from the code execution, or an error message if it failed. | ## CodeExecutionResult.outcome The result of the code execution. Signature: ```typescript outcome?: Outcome; ``` ## CodeExecutionResult.output The output from the code execution, or an error message if it failed. Signature: ```typescript output?: string; ```