class MAGES::Experimental::EmbodimentJARIA::QuestionGenerationBehavior¶
Overview¶
Class to handle question generation behavior. More…
class QuestionGenerationBehavior: public MAGES::Experimental::EmbodimentJARIA::IBehavior { public: // properties bool ExecuteOnStartup; // methods QuestionGenerationBehavior(); QuestionGenerationBehavior(int numberOfConversations, bool referToContext); async Task ExecuteAsync( string input, string agentID, AgentConfiguration agentConfig, Agent.FilterMessageDelegate filterMessageDelegate = null ); object RetrievePayload(AgentConfiguration agentConfig); };
Inherited Members¶
public: // properties bool ExecuteOnStartup; // methods Task ExecuteAsync( string input, string agentID, AgentConfiguration agentConfig, Agent.FilterMessageDelegate filterMessageDelegate = null ); object RetrievePayload(AgentConfiguration agentConfig);
Detailed Documentation¶
Class to handle question generation behavior.
Properties¶
bool ExecuteOnStartup
Gets a value indicating whether the behavior should execute on startup.
Methods¶
QuestionGenerationBehavior()
Initializes a new instance of the QuestionGenerationBehavior class. Default constructor.
QuestionGenerationBehavior(int numberOfConversations, bool referToContext)
Initializes a new instance of the QuestionGenerationBehavior class. Constructor with number of conversations and refer to context.
Parameters:
numberOfConversations |
Number of conversations. |
referToContext |
Whether to refer to context. |
async Task ExecuteAsync( string input, string agentID, AgentConfiguration agentConfig, Agent.FilterMessageDelegate filterMessageDelegate = null )
Task to execute the behavior.
Parameters:
input |
User input. |
agentID |
The agent’s ID. |
agentConfig |
The agent’s configuration. |
filterMessageDelegate |
The filter message delegate function. |
Returns:
The task that will run in parallel.
object RetrievePayload(AgentConfiguration agentConfig)
Compile and retrieve the necessary information for this behavior.
Parameters:
agentConfig |
The agent’s configuration. |
Returns:
An object containing the payload required for this behavior.