git.iko.soy/opencode-android
on 0bc1eda help sign in
26 lines 614 B history raw
1package soy.iko.opencode.data.model
3import kotlinx.serialization.Serializable
5/** Body for `POST /session/:id/message`. */
6@Serializable
7data class PromptRequest(
8 val parts: List<PromptPart>,
9 val model: ModelRef? = null,
10 val agent: String? = null,
13/** Input parts are a small subset of [Part]; for the scaffold we send text. */
14@Serializable
15data class PromptPart(
16 val type: String = "text",
17 val text: String,
20/** Body for `POST /session/:id/command`. */
21@Serializable
22data class CommandRequest(
23 val command: String,
24 val arguments: String = "",
25 val agent: String? = null,