createElicitation
suspend fun createElicitation(sessionId: String, message: String, requestedSchema: ElicitRequestParams.RequestedSchema, options: RequestOptions? = null): ElicitResult(source)
Triggers ClientConnection.createElicitation request for session by provided sessionId.
Return
The created elicitation result.
Parameters
sessionId
The session ID to create elicitation for.
message
The elicitation message.
requestedSchema
The requested schema for the elicitation.
options
Optional request options.
Throws
If the server does not support elicitation or if the request fails.
suspend fun createElicitation(sessionId: String, message: String, elicitationId: String, url: String, options: RequestOptions? = null): ElicitResult(source)
Triggers URL mode ClientConnection.createElicitation request for session by provided sessionId.
Return
The created elicitation result.
Parameters
sessionId
The session ID to create elicitation for.
message
The message explaining why the interaction is needed.
elicitationId
A unique identifier for the elicitation.
url
The URL that the user should navigate to.
options
Optional request options.
Throws
If the server does not support elicitation or if the request fails.