TextEditorCodeExecutionContent

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

Inheritors

Types

Link copied to clipboard
@JsonSerializable
@PolymorphicLabel(value = "text_editor_code_execution_create_result")
data class Created(val is_file_update: Boolean) : TextEditorCodeExecutionContent
Link copied to clipboard
@JsonSerializable
@PolymorphicLabel(value = "text_editor_code_execution_tool_result_error")
data class Failed(val error_code: ErrorCode, val error_message: String? = null) : TextEditorCodeExecutionContent
Link copied to clipboard
@JsonSerializable
@PolymorphicLabel(value = "text_editor_code_execution_str_replace_result")
data class Replaced(val lines: List<String> = emptyList(), val old_start: Int? = null, val old_lines: Int? = null, val new_start: Int? = null, val new_lines: Int? = null) : TextEditorCodeExecutionContent
Link copied to clipboard
@JsonSerializable
@PolymorphicLabel(value = "text_editor_code_execution_view_result")
data class Viewed(val content: String, val file_type: String? = null, val num_lines: Int? = null, val start_line: Int? = null, val total_lines: Int? = null) : TextEditorCodeExecutionContent