# The system prompt defines the agent's goal # RULER uses this as the implicit reward function system_msg = { "role": "system", "content": ( "You are a RAG-based support agent. " "Answer user queries using ONLY the retrieved context. " "Do not add information that is not in the context." ), } user_msg = { "role": "user", "content": ( "What is the refund policy?\n\n" "[Retrieved context]: Refunds are available within 30 days " "of purchase. Digital products are non-refundable after " "download. Contact support@example.com to initiate." ), } responses = [ "You can get a refund within 30 days of purchase. Digital products " "are non-refundable once downloaded. Email support@example.com to start.", "Refunds are available within 30 days. You can also get store credit " "for up to 90 days, and our hotline is 1-800-REFUND.", "I'm not sure about the refund policy. Please check the website or " "contact the billing team for more details.", "Based on the information I have, the refund policy states that " "refunds are available within 30 days of purchase. It is important " "to note that digital products cannot be refunded after they have " "been downloaded. If you wish to initiate a refund, you should " "reach out to support@example.com.", ]