Create a new conversation
the response handler
a callback to call when the conversation completed exceptionally
A flag indicating that the conversation is closed
A callback to call when the conversation completed exceptionally
The response handler
If defined, the conversation is pending to be discarded and this property contains the reason for discarding it.
A flag inticating a reserved state to prevent recursive discards
Close the conversation
Discard the conversation unless it is already finished.
the conversation ID to discard
why the conversation was discarded
Close the conversation and notify the handler
the conversation ID to close
why the conversation was closed
Open the conversation
the conversation ID
Send a response to the handler.
the conversation ID
the response
the result code indicating how the response has been handled
Copyright © 2025 DiffusionData Ltd. All Rights Reserved.
Internal Conversation implementation. Maintains state for a provided conversation handler to ensure recursive operations remain in-order.
the conversation handler to dispatch events to.