Interface ExecutableCode

Model-generated code executed server-side, results returned to the model.

Only 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;
    id?: string;
    language?: Language;
}

Properties

Properties

code?: string

Required. The code to be executed.

id?: string

Unique identifier of the ExecutableCode part. The server returns the CodeExecutionResult with the matching id.

language?: Language

Required. Programming language of the code.