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

14 lines
472 B
QBasic
Raw Normal View History

PARAM cod AS STRING LIKE "12345" DESCRIPTION "Case number to load and query"
2025-11-21 10:44:29 -03:00
DESCRIPTION "Load a legal case document by case number for Q&A and analysis"
2025-11-21 10:44:29 -03:00
text = GET "case-" + cod + ".pdf"
2025-11-21 10:44:29 -03:00
IF text THEN
SET CONTEXT "Based on this document, answer the person's questions:\n\n" + text
SET ANSWER MODE "document"
TALK "Case ${cod} loaded. Ask me anything about the case or request a summary."
2025-11-21 10:44:29 -03:00
ELSE
TALK "Case not found. Please check the case number."
END IF