Click or drag to resize

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
)

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