ElicitResult

data class ElicitResult(val action: ElicitResult.Action, val content: JsonObject? = null, val meta: JsonObject? = null) : ClientResult(source)

The client's response to an ElicitRequest.

Represents the user's action and, if accepted, the submitted form data.

Throws

if content is provided with a non-accept action.

Constructors

Link copied to clipboard
constructor(action: ElicitResult.Action, content: JsonObject? = null, meta: JsonObject? = null)

Types

Link copied to clipboard

The user's response action to an elicitation request.

Properties

Link copied to clipboard
open val _meta: JsonObject
Link copied to clipboard

The user action in response to the elicitation prompt.

Link copied to clipboard

The submitted form data, only present when action is Action.Accept. Contains values matching the requested schema, where keys correspond to property names and values are primitives (string, number, or boolean).

Link copied to clipboard
@SerialName(value = "_meta")
open override val meta: JsonObject?

Optional metadata for this response.