The basic bot supporting the chat functionality. ALICE chat engine and Yahoo! Answers are used for chatting with a user.
More...
List of all members.
Public Member Functions |
| ControlledChatterBot (string inFirstName, string inLastName, string inPassword) |
| ControlledChatterBot (string inFirstName, string inLastName, string inPassword, string inRegion, bool inTeleport) |
override void | PerformCommand (string inCommand, Avatar inAvatar) |
| Given the string command perform the corresponding action.
|
Protected Member Functions |
String | GetChatResponse (String inUserInput, String inUserName) |
| Generate the chat response for the given user request. Alice chatter engine is used to produce the result. Before calling this method InitializeChatEngine() call is needed.
|
virtual void | SetUpChatterBotPersonality () |
| Override this method to set up some bot specific personality data.
|
String | GetYahooAnswer (String query) |
| Let the bot access the Yahoo! Answers site and try to find an answer to the given question there.
|
Protected Attributes |
Bot | m_chatterBot = new Bot() |
Detailed Description
The basic bot supporting the chat functionality. ALICE chat engine and Yahoo! Answers are used for chatting with a user.
Constructor & Destructor Documentation
VIAgents.ControlledChatterBot.ControlledChatterBot |
( |
string |
inFirstName, |
|
|
string |
inLastName, |
|
|
string |
inPassword | |
|
) |
| | |
VIAgents.ControlledChatterBot.ControlledChatterBot |
( |
string |
inFirstName, |
|
|
string |
inLastName, |
|
|
string |
inPassword, |
|
|
string |
inRegion, |
|
|
bool |
inTeleport | |
|
) |
| | |
Member Function Documentation
String VIAgents.ControlledChatterBot.GetChatResponse |
( |
String |
inUserInput, |
|
|
String |
inUserName | |
|
) |
| | [protected] |
Generate the chat response for the given user request. Alice chatter engine is used to produce the result. Before calling this method InitializeChatEngine() call is needed.
- Parameters:
-
| inUserInput | The incomming chat line from the userString |
| inUserName | User name in Second Life in the form "firstname lastname" String |
- Returns:
- The generated bot response String
String VIAgents.ControlledChatterBot.GetYahooAnswer |
( |
String |
query |
) |
[protected] |
Let the bot access the Yahoo! Answers site and try to find an answer to the given question there.
- Parameters:
-
| query | The query string with the user question |
- Returns:
- The most suitable answer from the Yahoo! Answers site or "" if no reasonable answer was found.
override void VIAgents.ControlledChatterBot.PerformCommand |
( |
string |
inCommand, |
|
|
Avatar |
inAvatar | |
|
) |
| | [virtual] |
virtual void VIAgents.ControlledChatterBot.SetUpChatterBotPersonality |
( |
|
) |
[protected, virtual] |
Override this method to set up some bot specific personality data.
Member Data Documentation
The documentation for this class was generated from the following file: