git.iko.soy/opencode-android
on f9ed438 help sign in
18 lines 437 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,