InputRequest

data class InputRequest(val id: String, val message: String, val schema: JsonObject? = null, val url: String? = null, val source: String? = null)(source)

A request for information only the user can give — the neutral form of an AG-UI interrupt with a responseSchema and of MCP elicitation.

Constructors

Link copied to clipboard
constructor(id: String, message: String, schema: JsonObject? = null, url: String? = null, source: String? = null)

Properties

Link copied to clipboard
val id: String
Link copied to clipboard

what is asked, for the user.

Link copied to clipboard
val schema: JsonObject?

a JSON Schema (type: object) of the answer; the UI renders it as a form. Null asks for a plain confirmation.

Link copied to clipboard

who asks, e.g. an MCP server's name.

Link copied to clipboard
val url: String?

for out-of-band input: the user completes it at this URL (MCP URL elicitation).