Interface ExecutableCode

Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the [CodeExecution] tool, in which the code will be automatically executed, and a corresponding [CodeExecutionResult] will also be generated.

interface ExecutableCode {
    code?: string;
    language?: Language;
}

Properties

Properties

code?: string

Required. The code to be executed.

language?: Language

Required. Programming language of the code.