GenerativeModelUseCodeExecutionTool Property

Indicates whether the code execution tool is enabled. The code execution tool facilitates the integration of code execution capabilities for processing specific requests and enhancing model functionalities.

Definition

Namespace: GenerativeAI
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public bool UseCodeExecutionTool { get; set; }

Property Value

Boolean

Implements

IGenerativeModelUseCodeExecutionTool

Remarks

Use the Code Execution Tool for tasks requiring direct code evaluation or execution within the generative model. This feature is incompatible with JSON mode or cached content mode.

See Also