Performs a question-asking task using AI.
Namespace:
Spire.Xls.AI
Assembly:
Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public string Ask(
string question,
bool enableHistory = false
)
Public Function Ask (
question As String,
Optional enableHistory As Boolean = false
) As String
public:
String^ Ask(
String^ question,
bool enableHistory = false
)
member Ask :
question : string *
?enableHistory : bool
(* Defaults:
let _enableHistory = defaultArg enableHistory false
*)
-> string
Parameters
-
question
-
Type:
System
String
The question to be answered.
-
enableHistory
(Optional)
-
Type:
System
Boolean
Flag indicating whether to enable chat history.
Return Value
Type:
String
result contains the generated answer as a string.
See Also