Class CodeExecutionResult
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
Result of executing the ExecutableCode. Only generated when using the CodeExecutionTool, and always follows a Part containing the ExecutableCode.
public class CodeExecutionResult
- Inheritance
-
CodeExecutionResult
- Inherited Members
- Extension Methods
Properties
Id
Identifier of the ExecutableCode this result belongs to.
[JsonPropertyName("id")]
public string? Id { get; set; }
Property Value
Outcome
Required. Outcome of the code execution.
[JsonPropertyName("outcome")]
public Outcome Outcome { get; set; }
Property Value
Output
Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
[JsonPropertyName("output")]
public string? Output { get; set; }