PdfAI
Ask Method (String, Boolean)
|
Performs a question-answering task using AI.
Namespace:
Spire.Pdf.AI
Assembly:
Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public string Ask(
string question,
bool enableHistory
)
Public Function Ask (
question As String,
enableHistory As Boolean
) As String
public:
String^ Ask(
String^ question,
bool enableHistory
)
member Ask :
question : string *
enableHistory : bool -> string
Parameters
-
question
-
Type:
System
String
The question to be answered.
-
enableHistory
-
Type:
System
Boolean
Flag indicating whether to enable chat history.
Return Value
Type:
String
result contains the generated answer as a string.
See Also