RoutineAgent

class RoutineAgent(    messageSender: MessageSender,     contextManager: ContextManagerInterface,     directiveProcessor: DirectiveProcessorInterface,     directiveSequencer: DirectiveSequencerInterface,     directiveGroupProcessor: DirectiveGroupProcessorInterface,     seamlessFocusManager: SeamlessFocusManagerInterface,     startDirectiveHandleController: StartDirectiveHandler.HandleController? = null,     continueDirectiveHandleController: ContinueDirectiveHandler.HandleController? = null) : CapabilityAgent, RoutineAgentInterface, SupportedInterfaceContextProvider, StartDirectiveHandler.Controller, StopDirectiveHandler.Controller, ContinueDirectiveHandler.Controller, DisplayAgentInterface.Listener

Constructors

Link copied to clipboard
fun RoutineAgent(    messageSender: MessageSender,     contextManager: ContextManagerInterface,     directiveProcessor: DirectiveProcessorInterface,     directiveSequencer: DirectiveSequencerInterface,     directiveGroupProcessor: DirectiveGroupProcessorInterface,     seamlessFocusManager: SeamlessFocusManagerInterface,     startDirectiveHandleController: StartDirectiveHandler.HandleController? = null,     continueDirectiveHandleController: ContinueDirectiveHandler.HandleController? = null)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
interface RoutineRequestListener

Functions

Link copied to clipboard
open override fun addListener(listener: RoutineAgentInterface.RoutineListener)

Add listener for routine

Link copied to clipboard
open override fun doContinue(directive: ContinueDirectiveHandler.ContinueDirective): Boolean
Link copied to clipboard
open override fun failed(directive: ContinueDirectiveHandler.ContinueDirective, errorMessage: String)
open override fun failed(directive: StartDirectiveHandler.StartDirective, errorMessage: String)
Link copied to clipboard
open override fun getContext(): RoutineAgentInterface.Context

Returns a current context

Link copied to clipboard
open override fun getState(): RoutineAgentInterface.State
Link copied to clipboard
open override fun onCleared(    templateId: String,     dialogRequestId: String,     canceled: Boolean)
Link copied to clipboard
open override fun onRendered(templateId: String, dialogRequestId: String)
Link copied to clipboard
open override fun pause(directive: StartDirectiveHandler.StartDirective): Boolean

Pause a routine started by directive

Link copied to clipboard
open override fun provideState(    contextSetter: ContextSetterInterface,     namespaceAndName: NamespaceAndName,     contextType: ContextType,     stateRequestToken: Int)
Link copied to clipboard
open override fun removeListener(listener: RoutineAgentInterface.RoutineListener)

Remove listener for routine

Link copied to clipboard
open override fun resume(directive: StartDirectiveHandler.StartDirective): Boolean

Resume a routine started by directive

Link copied to clipboard
open override fun start(directive: StartDirectiveHandler.StartDirective): Boolean

Start a routine

Link copied to clipboard
open override fun stop(directive: StartDirectiveHandler.StartDirective): Boolean

Stop a routine started by directive

open override fun stop(directive: StopDirectiveHandler.StopDirective): Boolean

Properties

Link copied to clipboard
open override val namespaceAndName: NamespaceAndName
Link copied to clipboard
var textAgent: TextAgentInterface? = null