MessageInputOptions
public struct MessageInputOptions : Codable, Equatable
Optional properties that control how the assistant responds.
-
Whether to restart dialog processing at the root of the dialog, regardless of any previously visited nodes. Note: This does not affect
turn_countor any other context variables.Declaration
Swift
public var restart: Bool? -
Whether to return more than one intent. Set to
trueto return all matching intents.Declaration
Swift
public var alternateIntents: Bool? -
Spelling correction options for the message. Any options specified on an individual message override the settings configured for the skill.
Declaration
Swift
public var spelling: MessageInputOptionsSpelling? -
Whether to return additional diagnostic information. Set to
trueto return additional information in theoutput.debugproperty. If you also specify return_context=true, the returned skill context includes thesystem.stateproperty.Declaration
Swift
public var debug: Bool? -
Whether to return session context with the response. If you specify
true, the response includes thecontextproperty. If you also specify debug=true, the returned skill context includes thesystem.stateproperty.Declaration
Swift
public var returnContext: Bool? -
Whether to return session context, including full conversation state. If you specify
true, the response includes thecontextproperty, and the skill context includes thesystem.stateproperty. Note: If export=true, the context is returned regardless of the value of return_context.Declaration
Swift
public var export: Bool? -
Initialize a
MessageInputOptionswith member variables.Declaration
Swift
public init( restart: Bool? = nil, alternateIntents: Bool? = nil, spelling: MessageInputOptionsSpelling? = nil, debug: Bool? = nil, returnContext: Bool? = nil, export: Bool? = nil )Parameters
restartWhether to restart dialog processing at the root of the dialog, regardless of any previously visited nodes. Note: This does not affect
turn_countor any other context variables.alternateIntentsWhether to return more than one intent. Set to
trueto return all matching intents.spellingSpelling correction options for the message. Any options specified on an individual message override the settings configured for the skill.
debugWhether to return additional diagnostic information. Set to
trueto return additional information in theoutput.debugproperty. If you also specify return_context=true, the returned skill context includes thesystem.stateproperty.returnContextWhether to return session context with the response. If you specify
true, the response includes thecontextproperty. If you also specify debug=true, the returned skill context includes thesystem.stateproperty.exportWhether to return session context, including full conversation state. If you specify
true, the response includes thecontextproperty, and the skill context includes thesystem.stateproperty. Note: If export=true, the context is returned regardless of the value of return_context.Return Value
An initialized
MessageInputOptions.
View on GitHub
MessageInputOptions Structure Reference