public sealed class CodeExecutionResult : IMessage<CodeExecutionResult>, IEquatable<CodeExecutionResult>, IDeepCloneable<CodeExecutionResult>, IBufferMessage, IMessage
Reference documentation and code samples for the Vertex AI v1beta1 API class CodeExecutionResult.
Result of executing the [ExecutableCode].
Always follows a part containing the [ExecutableCode].
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eCodeExecutionResult\u003c/code\u003e class in the Google.Cloud.AIPlatform.V1Beta1 namespace provides details about the outcome of executable code within the Vertex AI v1beta1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class represents the result of executing code and is always preceded by a \u003ccode\u003epart\u003c/code\u003e containing the \u003ccode\u003eExecutableCode\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing it to be used with other relevant objects and data structures.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCodeExecutionResult\u003c/code\u003e class has properties for \u003ccode\u003eOutcome\u003c/code\u003e, which is a required field detailing the success or failure of the code execution, and \u003ccode\u003eOutput\u003c/code\u003e, an optional string that may include standard output, standard error, or other descriptive information.\u003c/p\u003e\n"],["\u003cp\u003eThere are 2 versions available of the class, the latest being 1.0.0-beta21.\u003c/p\u003e\n"]]],[],null,["# Vertex AI v1beta1 API - Class CodeExecutionResult (1.0.0-beta47)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta47 (latest)](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CodeExecutionResult)\n- [1.0.0-beta46](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/1.0.0-beta46/Google.Cloud.AIPlatform.V1Beta1.CodeExecutionResult) \n\n public sealed class CodeExecutionResult : IMessage\u003cCodeExecutionResult\u003e, IEquatable\u003cCodeExecutionResult\u003e, IDeepCloneable\u003cCodeExecutionResult\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Vertex AI v1beta1 API class CodeExecutionResult.\n\nResult of executing the \\[ExecutableCode\\].\n\nAlways follows a `part` containing the \\[ExecutableCode\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CodeExecutionResult \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CodeExecutionResult](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CodeExecutionResult), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CodeExecutionResult](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CodeExecutionResult), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CodeExecutionResult](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CodeExecutionResult), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.AIPlatform.V1Beta1](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.AIPlatform.V1Beta1.dll\n\nConstructors\n------------\n\n### CodeExecutionResult()\n\n public CodeExecutionResult()\n\n### CodeExecutionResult(CodeExecutionResult)\n\n public CodeExecutionResult(CodeExecutionResult other)\n\nProperties\n----------\n\n### Outcome\n\n public CodeExecutionResult.Types.Outcome Outcome { get; set; }\n\nRequired. Outcome of the code execution.\n\n### Output\n\n public string Output { get; set; }\n\nOptional. Contains stdout when code execution is successful, stderr or\nother description otherwise."]]