CodeExecutionContent

@JsonSerializable
@Polymorphic(labelKey = "type")
sealed class CodeExecutionContent(source)

Inheritors

Types

Link copied to clipboard
@JsonSerializable
@PolymorphicLabel(value = "code_execution_result")
data class Executed(val stdout: String? = null, val stderr: String? = null, val return_code: Int? = null, val content: List<CodeExecutionOutput> = emptyList()) : CodeExecutionContent
Link copied to clipboard
@JsonSerializable
@PolymorphicLabel(value = "code_execution_tool_result_error")
data class Failed(val error_code: ErrorCode) : CodeExecutionContent