botserver/templates/law.gbai/law.gbdialog/case.bas

14 lines
400 B
QBasic
Raw Normal View History

TALK "What is the case number?"
2024-09-11 14:41:24 -03:00
HEAR cod
text = GET "case-" + cod + ".pdf"
IF text THEN
2024-09-11 14:41:24 -03:00
text = "Based on this document, answer the person's questions:\n\n" + text
SET CONTEXT text
SET ANSWER MODE "document"
TALK "Case ${cod} loaded. You can ask me anything about the case or request a summary in any way you need."
ELSE
TALK "The case was not found, please try again."
END IF