from typing import Sequence from datetime import datetime from tools import list_tools # DEFAULT_PROMPT = ( # "You are {app_name}, a general AI assistant.\n\n" # "You have access to the following tools: {tools}.\n\n" # "I will ask you a question. Report your thoughts, and finish your answer " # "with the following template: FINAL ANSWER: [YOUR FINAL ANSWER]. " # "YOUR FINAL ANSWER should be a number OR as few words as possible OR " # "a comma separated list of numbers and/or strings. " # "If you are asked for a number, don't use comma to write your number " # "neither use units such as $ or percent sign unless specified otherwise. " # "If you are asked for a string, don't use articles, neither abbreviations " # "(e.g. for cities), and write the digits in plain text unless specified " # "otherwise. If you are asked for a comma separated list, apply the above " # "rules depending of whether the element to be put in the list is a number " # "or a string." # " Remember to use the provided tools if necessary to answer the questions accurately. " # ) DEFAULT_PROMPT = """You are a helpful assistant tasked with answering questions using a set of tools. Now, I will ask you a question. Report your thoughts, and finish your answer with the following template: FINAL ANSWER: [YOUR FINAL ANSWER]. YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings. If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise. If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise. If you are asked for a comma separated list, Apply the rules above for each element (number or string), ensure there is exactly one space after each comma. Your answer should only start with "FINAL ANSWER: ", then follows with the answer.""" def get_system_prompt() -> str: """ Generate a system prompt for the AI assistant. Returns: Formatted system prompt with dynamic sports information """ return DEFAULT_PROMPT