Skip to content

Code exec result

Defines the code execution result schema.

Authors

Henry Wicaksono (henry.wicaksono@gdplabs.id)

References

NONE

CodeExecResult

Bases: BaseModel

Defines a code execution result when a language model is configured to execute code.

Attributes:

Name Type Description
id str

The ID of the code execution. Defaults to an empty string.

code str

The executed code. Defaults to an empty string.

output list[str | Attachment]

The output of the executed code. Defaults to an empty list.