public sealed class Tool.Types.CodeExecution : IMessage<Tool.Types.CodeExecution>, IEquatable<Tool.Types.CodeExecution>, IDeepCloneable<Tool.Types.CodeExecution>, IBufferMessage, IMessage
Reference documentation and code samples for the Vertex AI v1beta1 API class Tool.Types.CodeExecution.
Tool that executes code generated by the model, and automatically returns
the result to the model.
See also [ExecutableCode]and [CodeExecutionResult] which are input and
output to this tool.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eTool.Types.CodeExecution\u003c/code\u003e class within the Vertex AI v1beta1 API.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTool.Types.CodeExecution\u003c/code\u003e is a tool that executes code generated by a model and automatically returns the result to the model.\u003c/p\u003e\n"],["\u003cp\u003eThe class 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.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this class is 1.0.0-beta21, and it inherits members from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eTwo constructors are available for \u003ccode\u003eCodeExecution\u003c/code\u003e, one being a default constructor and the other accepting another \u003ccode\u003eCodeExecution\u003c/code\u003e object as a parameter for cloning.\u003c/p\u003e\n"]]],[],null,[]]