RequestInput

data class RequestInput(val interruptId: String = Uuid.random(), val message: String? = null, val payload: Any? = null, val responseSchema: Schema? = null)

A node's request for user input, which pauses the workflow until a matching response arrives.

Normalized into a long-running adk_request_input function call; the response is a com.google.adk.kt.types.FunctionResponse with matching interruptId.

Constructors

Link copied to clipboard
constructor(interruptId: String = Uuid.random(), message: String? = null, payload: Any? = null, responseSchema: Schema? = null)

Types

Link copied to clipboard
class Builder

Fluent builder for RequestInput, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Identifier for this request and its matching response.

Link copied to clipboard

Prompt message shown to the user.

Link copied to clipboard
val payload: Any?

Additional structured data for rendering the request.

Link copied to clipboard

Optional schema used to validate the user's response. Non-object responses are unwrapped from the result key and parsed from JSON unless the schema accepts a string.

Functions

Link copied to clipboard

Returns a Builder initialized with this instance's properties, primarily for Java callers. Prefer it over copy from Java: copy takes every property positionally, so its signature changes whenever a property is added.