DecisionInputItem

@Serializable
sealed interface DecisionInputItem

A message, tool call or matching output in Decisions conversation history.

Inheritors

Types

Link copied to clipboard
@Serializable
@SerialName(value = "custom_tool_call")
data class CustomToolCall(val callId: String, val input: String, val name: String, val id: String? = null, val namespace: String? = null, val status: String? = null) : DecisionInputItem

Earlier custom tool call; supply a matching output with this call ID.

Link copied to clipboard
@Serializable
@SerialName(value = "custom_tool_call_output")
data class CustomToolCallOutput(val callId: String, val output: DecisionContent, val id: String? = null, val status: String? = null) : DecisionInputItem

Custom tool output containing text or input text/image parts.

Link copied to clipboard
@Serializable
@SerialName(value = "function_call")
data class FunctionCall(val arguments: String, val callId: String, val name: String, val id: String? = null, val namespace: String? = null, val status: String? = null) : DecisionInputItem

Earlier function call; supply a matching output with this call ID.

Link copied to clipboard
@Serializable
@SerialName(value = "function_call_output")
data class FunctionCallOutput(val callId: String, val output: DecisionContent, val id: String? = null, val status: String? = null) : DecisionInputItem

Function output used as evidence, containing text or input text/image parts.

Link copied to clipboard
@Serializable
@SerialName(value = "message")
data class Message(val content: DecisionContent, val role: DecisionRole = DecisionRole.User, val phase: String? = null) : DecisionInputItem

Conversation message; content kinds are validated for the chosen role.