Skip to content

Secure, Fast, and Extensible Sandbox runtime for AI agents.

fix(kotlin): put @JvmOverloads on its own line per ktlint

高然db1653546a3f
diff --git a/sdks/sandbox/kotlin/sandbox-api/src/main/kotlin/com/alibaba/opensandbox/sandbox/api/models/execd/ExecutionModels.kt b/sdks/sandbox/kotlin/sandbox-api/src/main/kotlin/com/alibaba/opensandbox/sandbox/api/models/execd/ExecutionModels.kt
index c95c0eced..d4590b36a 100644
--- a/sdks/sandbox/kotlin/sandbox-api/src/main/kotlin/com/alibaba/opensandbox/sandbox/api/models/execd/ExecutionModels.kt
+++ b/sdks/sandbox/kotlin/sandbox-api/src/main/kotlin/com/alibaba/opensandbox/sandbox/api/models/execd/ExecutionModels.kt
@@ -23,22 +23,24 @@ import kotlinx.serialization.json.contentOrNull
import kotlinx.serialization.json.jsonPrimitive
@Serializable
-data class EventNode @JvmOverloads constructor(
- val type: String,
- val timestamp: Long,
- val text: String? = null,
- val results: ResultData? = null,
- @SerialName("execution_time")
- val executionTimeInMillis: Long? = null,
- @SerialName("execution_count")
- val executionCount: Long? = null,
- val error: ErrorData? = null,
- // Successful foreground POST /command exit status (0). Present only on
- // execution_complete after the process has exited; omitted for background
- // startup, code execution, and older servers. Non-zero exits use error.exit_code.
- @SerialName("exit_code")
- val exitCode: Long? = null,
-)
+data class EventNode
+ @JvmOverloads
+ constructor(
+ val type: String,
+ val timestamp: Long,
+ val text: String? = null,
+ val results: ResultData? = null,
+ @SerialName("execution_time")
+ val executionTimeInMillis: Long? = null,
+ @SerialName("execution_count")
+ val executionCount: Long? = null,
+ val error: ErrorData? = null,
+ // Successful foreground POST /command exit status (0). Present only on
+ // execution_complete after the process has exited; omitted for background
+ // startup, code execution, and older servers. Non-zero exits use error.exit_code.
+ @SerialName("exit_code")
+ val exitCode: Long? = null,
+ )
@Serializable
@JvmInline
@@ -51,16 +53,18 @@ value class ResultData(val raw: JsonObject) {
}
@Serializable
-data class ErrorData @JvmOverloads constructor(
- @SerialName("ename")
- val name: String? = null,
- @SerialName("evalue")
- val value: String? = null,
- @SerialName("traceback")
- val traceback: List<String> = emptyList(),
- // Exit status for CommandExecError when the command ran and finished
- // non-zero (-1 when terminated by a signal). Null when the process failed
- // to start, for non-command errors, and on servers that predate error.exit_code.
- @SerialName("exit_code")
- val exitCode: Long? = null,
-)
+data class ErrorData
+ @JvmOverloads
+ constructor(
+ @SerialName("ename")
+ val name: String? = null,
+ @SerialName("evalue")
+ val value: String? = null,
+ @SerialName("traceback")
+ val traceback: List<String> = emptyList(),
+ // Exit status for CommandExecError when the command ran and finished
+ // non-zero (-1 when terminated by a signal). Null when the process failed
+ // to start, for non-command errors, and on servers that predate error.exit_code.
+ @SerialName("exit_code")
+ val exitCode: Long? = null,
+ )