remove planing_interval again add instructions
Browse files19 unmodified lines20212223242515 unmodified lines4142434445464719 unmodified lines# (Keep Constants as is)# --- Constants ---DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"rate_limiter = RateLimiter()15 unmodified lines],model=model,step_callbacks=[rate_limiter.increment_and_sleep_if_needed],planning_interval=3,)print("BasicAgent initialized.")19 unmodified lines202122232425262728293031323334353615 unmodified lines5253545556575819 unmodified lines# (Keep Constants as is)# --- Constants ---DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"CUSTOM_PROMPT = """You are a general AI assistant. I will ask you a question.Your final response must be ONLY the answer itself and nothing else.Do not include any explanations, reasoning, or prefixes like "FINAL ANSWER:".The answer should be a number OR as few words as possible OR a comma separated list.- If the answer is a number, do not use commas for thousands separators(e.g., write 1000 not 1,000) and do not include units like '$' or '%' unless specified.- If the answer is a string, do not use articles (a, an, the) or abbreviations.- If the answer is a list, apply these rules to each element."""rate_limiter = RateLimiter()15 unmodified lines],model=model,step_callbacks=[rate_limiter.increment_and_sleep_if_needed],instructions=CUSTOM_PROMPT,)print("BasicAgent initialized.")
app.py+12-1