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.
CodeExecution
CodeExecutionResult
Optional
Required. The code to be executed.
Unique identifier of the ExecutableCode part. The server returns the CodeExecutionResult with the matching id.
ExecutableCode
id
Required. Programming language of the code.
code
Model-generated code executed server-side, results returned to the model.
Only generated when using the
CodeExecutiontool, in which the code will be automatically executed, and a correspondingCodeExecutionResultwill also be generated.