ElicitRequestBuilder

DSL builder for constructing ElicitRequest instances.

This builder is used to create requests that prompt users for structured input through forms or dialogs presented by the client.

Required

  • message - The message to present to the user explaining what is being requested

  • requestedSchema - Schema defining the structure of the data to collect

Optional

  • meta - Metadata for the request

See also

Properties

Link copied to clipboard

The message to present to the user. This should clearly explain what information is being requested and why. This is a required field.

Functions

Link copied to clipboard
fun meta(builderAction: RequestMetaBuilder.() -> Unit)

Sets request metadata using a DSL builder.

Link copied to clipboard

Sets the requested schema directly.

Sets the requested schema using a DSL builder.